]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Use IN_foo() macros from sys/netinet/in.h inplace of handcrafted code
authorrgrimes <rgrimes@FreeBSD.org>
Thu, 4 Apr 2019 19:01:13 +0000 (19:01 +0000)
committerrgrimes <rgrimes@FreeBSD.org>
Thu, 4 Apr 2019 19:01:13 +0000 (19:01 +0000)
commitcda8035706041a99d8f6ec0fcba8ef672f2d4f0d
tree0ad095dc89611ee14b0f26fc7dc843873916fcb7
parent93f6aa9203ae1c5fda561c6888b82443e82818ce
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