There are a few places that use hand crafted versions of the macros from sys/netinet/in.h making it difficult to actually alter the values in use by these macros.
Correct that by replacing handcrafted code with proper macro usage.
Differential D19317
Use IN_foo() macros from sys/netinet/in.h inplace of handcrafted code rgrimes on Feb 24 2019, 5:36 AM. Authored by Tags None Referenced Files
Subscribers
Details There are a few places that use hand crafted versions of the macros from sys/netinet/in.h making it difficult to actually alter the values in use by these macros. Correct that by replacing handcrafted code with proper macro usage. An external document shall be referenced in the future describing the testing being done.
Diff Detail
Event TimelineComment Actions Add some more places that hand crafted macros are used, ip_input, ip_output, netdump code.
Comment Actions The pf bit is good. Comment Actions Convert nat64_check_ip4 in sys/netpfil/ipfw/nat64/nat64_translate.h to use IN_foo macros rather than hand rolled code.
Comment Actions Although I have a couple of inline comments, I wouldn't object to committing this as-is. Touching up would be fine too.
|