On Thu, Dec 10, 2015 at 09:51:14AM +0100, Harald Welte wrote:
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 ;)
...not that it would win a code beauty contest though :)
Maybe a consolation prize for the most widely used redundancy...
~Neels