]> git.ipfire.org Git - thirdparty/ipset.git/commit
netlink: implement nla_put_in_addr and nla_put_in6_addr
authorJiri Benc <jbenc@redhat.com>
Sat, 13 Jun 2015 19:46:47 +0000 (21:46 +0200)
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Sat, 13 Jun 2015 19:46:47 +0000 (21:46 +0200)
commit01a13aa4fe0cb668fc535d38d6f9383433923874
treec173f64894115c330c0b2468835ff05a1158218a
parent5e1734cedd68725dbcda83626c25a15c812e4eb4
netlink: implement nla_put_in_addr and nla_put_in6_addr

IP addresses are often stored in netlink attributes. Add generic functions
to do that.

For nla_put_in_addr, it would be nicer to pass struct in_addr but this is
not used universally throughout the kernel, in way too many places __be32 is
used to store IPv4 address.

Signed-off-by: Jiri Benc <jbenc@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Compatibility part added.

Signed-off-by: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>
configure.ac
kernel/include/linux/netfilter/ipset/ip_set.h
kernel/include/linux/netfilter/ipset/ip_set_compat.h.in