diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2013-04-24 01:03:33 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2013-04-24 01:11:33 +0200 |
commit | efcfbadb265ced5289f64c76bff777f20565a13e (patch) | |
tree | 534c70e21a01bef04f3f1e56989b8f7f49206ae3 /src | |
parent | 260759dfdebe774aba6866bf49c2928b2242bb7e (diff) | |
download | libmnl-efcfbadb265ced5289f64c76bff777f20565a13e.tar.gz libmnl-efcfbadb265ced5289f64c76bff777f20565a13e.zip |
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 'src')
0 files changed, 0 insertions, 0 deletions