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:
@@ -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
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user