1
0
mirror of https://github.com/mfontanini/libtins synced 2026-01-23 02:35:57 +01:00

Fixed compilation error in OSX. Fixed bug when sending IP PDUs in BSD.

This commit is contained in:
Matias Fontanini
2012-12-04 16:15:08 -03:00
parent 647ba1f46e
commit 356fe00aad
4 changed files with 16 additions and 21 deletions

View File

@@ -260,12 +260,7 @@ namespace Tins {
* \return The total length of this IP PDU.
*/
uint16_t tot_len() const {
// FreeBSD wants this in host byte order............
#ifdef __FreeBSD__
return _ip.tot_len;
#else
return Endian::be_to_host(_ip.tot_len);
#endif
}
/**