]> git.ipfire.org Git - thirdparty/iproute2.git/commit
ip: Use the `struct fib_rule_hdr` for rules
authorDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 28 Feb 2018 23:43:58 +0000 (18:43 -0500)
committerDavid Ahern <dsahern@gmail.com>
Thu, 1 Mar 2018 03:32:21 +0000 (19:32 -0800)
commit5baaf07cb3130847ea1fa97d3f077951321c7662
treed190c37e0d2e0a45f2b58283cef54ffc994c158b
parent7c6e942e844e8281e7fce5c54969f5383428c92e
ip: Use the `struct fib_rule_hdr` for rules

The iprule.c code was using `struct rtmsg` as the data
type to pass into the kernel for the netlink message.
While 'struct rtmsg' and `struct fib_rule_hdr` are
the same size and mostly the same, we should use
the correct data structure.  This commit translates
the data structures to have iprule.c use the correct
one.

Additionally copy over the modified fib_rules.h file

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Signed-off-by: David Ahern <dsahern@gmail.com>
ip/iprule.c