On Wed, Dec 09, 2015 at 01:26:41PM -0500, Jaroslav Skarvada wrote:
I think correct portable implementation should use macros and bitmasks, maybe something to consider for future updates
IP headers and TCP headers are always defined as bit filds, look at the netinet/ip.h and netinet/tcp.h. We're in the best of traditions here ;)