]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'nla_in_addr'
authorDavid S. Miller <davem@davemloft.net>
Tue, 31 Mar 2015 17:58:36 +0000 (13:58 -0400)
committerDavid S. Miller <davem@davemloft.net>
Tue, 31 Mar 2015 17:58:36 +0000 (13:58 -0400)
commit5fe66dec691b2b2b9f5581a5a33799e72c31c19d
tree2a4deef870f2c01f36a27cfb7501e726d833880c
parent42ca18c723a85e7464e50e79c095da107d9c4c25
parentf642e066f1f1dceb74fcb95082584e8d47ced880
Merge branch 'nla_in_addr'

Jiri Benc says:

====================
netlink: access functions for IP address attributes

There are many places that read or write IP addresses to netlink attributes.
With IPv6 addresses, every such place currently has to use generic nla_put
and nla_memcpy. Implementing IPv6 address access functions simplify things
and makes the code more intelligible. IPv4 address access functions has
lesser value but it would be better to be consistent between IPv6 and IPv4
and they still serve as documentation.

The conversion is straightforward and the resulting patches are not that
large, thus I kept all the changes in the patches that introduce the access
functions. If anyone prefers to split the definition of access functions and
the conversion and/or break it out by network protocols, please let me know.

While doing the conversion, I came across ugly typecasting in
inetpeer_addr_base and xfrm_address_t when dealing with IPv6 addresses.
Instead of introducing more of this, I cleaned it up. Those are the first
two patches, serving as a prerequisite to the latter two.
====================

Signed-off-by: David S. Miller <davem@davemloft.net>