[PATCH 00/26] Implemented basic protocol specific decoding of NETLINK_ROUTE
chenjingpiao at gmail.com
Sat Aug 12 15:13:11 UTC 2017
On Sat, Aug 12, 2017 at 03:22:24AM +0300, Dmitry V. Levin wrote:
> On Thu, Aug 10, 2017 at 09:03:22AM +0800, JingPiao Chen wrote:
> > Note:
> > rule:
> > Before v2.6.18-284-g14c0b97, rule carry struct rtmsg,
> > now carry struct fib_rule_hdr.
> > $ man 7 rtnetlink # or read the old kernel
> > RTM_NEWRULE, RTM_DELRULE, RTM_GETRULE
> > Add, delete or retrieve a routing rule. Carries a struct rtmsg
> > Read linux kernel source code
> > linux/net/core/fib_rules.c: fib_nl_delrule(), fib_nl_delrule();
> > know rule carry struct fib_rule_hdr.
> struct rtmsg and struct fib_rule_hdr are essentially the same structure,
> iproute2 uses the former.
You means I no need decode struct fib_rule_hdr?
struct rtmsg and struct fib_rule_hdr are essentially the same structure,
but netlink attribute are different.
More information about the Strace-devel