pellegre / libcrafter

A high level C++ network packet sniffing and crafting library.
298 stars 88 forks source link

Revert "No need to set a different IP length on apple" #36

Closed oliviertilmans closed 9 years ago

oliviertilmans commented 9 years ago

This reverts commit c5224884b56d41c999b9c7da19a6f3dcf325612c.

raw socket handling in osx kernel happen here: https://github.com/opensource-apple/xnu/blob/10.10/bsd/netinet/raw_ip.c#L429 The kernel performs additional checks on the IP datagram before sending it, hence it needs to be in host order (and will be converted later on).

This is related to https://github.com/tracebox/tracebox/issues/34

oliviertilmans commented 9 years ago

Thanks for the quick reaction!