]> git.proxmox.com Git - mirror_iproute2.git/commit
Merge branch 'get_addr_rta' into iproute2-next
authorDavid Ahern <dsahern@gmail.com>
Thu, 25 Jan 2018 17:32:27 +0000 (09:32 -0800)
committerDavid Ahern <dsahern@gmail.com>
Thu, 25 Jan 2018 17:32:27 +0000 (09:32 -0800)
commitdb9fd71038461985104608a04a2fcc1ee014645e
treeba330d3cfa7f9ce4743324799710a6a97abc6167
parent68944e6f93296231c5ad4e4b06a9a619760b4754
parentb761fc41132a6a9fb5ebc45a400ffc7a8ffafaed
Merge branch 'get_addr_rta' into iproute2-next

Serhey Popovych  says:

====================

Now we enhance get_addr() to return additional information about address
(e.g. if it unspecified or multicast) we want to have same functionality
for attributes in netlink message.

Introduce and use get_addr_rta() that parses given netlink attribute
into @inet_prefix data structure in the same way similar get_addr()
parses address from it's string representation.

Use attribute length to guess address family: force it by giving non
AF_UNSPEC @family to get_addr_rta() to ensure address is of expected
family.

Introduce and use inet_addr_match_rta() to further simplify and unify
code where get_addr_rta() intended to be used together with
inet_addr_match().

This is next step in ipv4 and ipv6 modules unification to prepare for
merge in the future.

====================

Signed-off-by: David Ahern <dsahern@gmail.com>