aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/ip_fragment.c
diff options
context:
space:
mode:
authorDavid Ahern <dsa@cumulusnetworks.com>2015-08-27 16:07:02 -0700
committerDavid S. Miller <davem@davemloft.net>2015-08-28 13:32:36 -0700
commit5345c2e12d41f815c1009c9dee72f3d5fcfd4282 (patch)
tree65e011d6d82252a935a93044dc7bc99beb32bf90 /net/ipv4/ip_fragment.c
parentnet: Add helper function to compare inetpeer addresses (diff)
downloadlinux-dev-5345c2e12d41f815c1009c9dee72f3d5fcfd4282.tar.xz
linux-dev-5345c2e12d41f815c1009c9dee72f3d5fcfd4282.zip
net: Refactor inetpeer address struct
Move the inetpeer_addr_base union to inetpeer_addr and drop inetpeer_addr_base. Both the a6 and in6_addr overlays are not needed; drop the __be32 version and rename in6 to a6 for consistency with ipv4. Add a new u32 array to the union which removes the need for the typecast in the compare function and the use of a consistent arg for both ipv4 and ipv6 addresses which makes the compare function more readable. Signed-off-by: David Ahern <dsa@cumulusnetworks.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions