summaryrefslogtreecommitdiffstats
path: root/examples/kobject
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2013-04-24 01:03:33 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2013-04-24 01:11:33 +0200
commitefcfbadb265ced5289f64c76bff777f20565a13e (patch)
tree534c70e21a01bef04f3f1e56989b8f7f49206ae3 /examples/kobject
parent260759dfdebe774aba6866bf49c2928b2242bb7e (diff)
examples: rtnl-route-add improvements (including IPv6 support)
Now, both IPv4 and IPv6 are supported simultaneously in one single file. While at it: * I moved the declarations to the beginning of the main function. * Renamed mask by prefix, which seems more appropriate to me. * Use RTPROTO_STATIC, as the route has been added by the administrator. * Set NLM_F_ACK, so we get a report from the kernel about our query and treat reply from the kernel. * Stricter argc checking. * Use perror instead of printf for error reporting. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'examples/kobject')
0 files changed, 0 insertions, 0 deletions