]> granicus.if.org Git - strace/commit
nlattr: provide common AF_INET{,6} address decoders
authorEugene Syromyatnikov <evgsyr@gmail.com>
Sun, 19 Aug 2018 12:37:12 +0000 (14:37 +0200)
committerDmitry V. Levin <ldv@altlinux.org>
Sat, 1 Sep 2018 13:02:04 +0000 (13:02 +0000)
commit288b87226673627837a729a0e72cbf396efc4dca
tree1b56377c6364d9ee4040afa560b21ea2ce893205
parent1d7b8edda9837572e9ef53cac88d928f07cefacc
nlattr: provide common AF_INET{,6} address decoders

Rename decode_ifla_inet6_token to decode_nla_in6_addr,
add a sister function decode_nla_in_addr for future use.

* nlattr.c (decode_nla_in_addr, decode_nla_in6_addr): New functions.
* nlattr.h (DECL_NLA(in_addr), DECL_NLA(in6_addr)): New declarations.
* rtnl_link.c (decode_ifla_inet6_token): Remove.
(ifla_inet6_nla_decoders) <[IFLA_INET6_TOKEN]>: Use decode_nla_in6_addr.
nlattr.c
nlattr.h
rtnl_link.c