logoalt Hacker News

N_Lenstoday at 7:50 AM1 replyview on HN

The Linux vs macOS behavioral differences in ICMP sockets documented by the article are critical:

- Linux overwrites identifier and checksum fields

- macOS requires correct checksum calculation

- macOS includes IP header in response, Linux doesn't

I think this is the kind of subtle difference that would trip up even experienced programmers


Replies

badmonstertoday at 9:07 AM

Do these behavioral differences have performance implications? Which approach is more efficient in practice?