]> git.baikalelectronics.ru Git - kernel.git/commit
net: Refactor inetpeer address struct
authorDavid Ahern <dsa@cumulusnetworks.com>
Thu, 27 Aug 2015 23:07:02 +0000 (16:07 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 28 Aug 2015 20:32:36 +0000 (13:32 -0700)
commit07bdbd0845fe18be1b3ac10fd05aae8dff6d1438
tree65e011d6d82252a935a93044dc7bc99beb32bf90
parentba27000b3d3e44381a8475ad12372c54bfa74fba
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>
include/net/inetpeer.h