]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Use IN_foo() macros from sys/netinet/in.h inplace of handcrafted code
authorRodney W. Grimes <rgrimes@FreeBSD.org>
Thu, 4 Apr 2019 19:01:13 +0000 (19:01 +0000)
committerRodney W. Grimes <rgrimes@FreeBSD.org>
Thu, 4 Apr 2019 19:01:13 +0000 (19:01 +0000)
commit6c1c6ae53768685c53955cd0d120a827479e7dc7
tree0ad095dc89611ee14b0f26fc7dc843873916fcb7
parent00ef9f43b3d3e0f9512323a0ca2c2253cdff1d1d
Use IN_foo() macros from sys/netinet/in.h inplace of handcrafted code

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.

Reviewed by: karels, kristof
Approved by: bde (mentor)
MFC after: 3 weeks
Sponsored by: John Gilmore
Differential Revision: https://reviews.freebsd.org/D19317
lib/libc/net/getnameinfo.c
sys/fs/nfsclient/nfs_clport.c
sys/netinet/in.c
sys/netinet/ip_input.c
sys/netinet/ip_output.c
sys/netinet/netdump/netdump_client.c
sys/netpfil/ipfw/nat64/nat64_translate.h
sys/netpfil/pf/pf.c