diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2013-04-25 15:19:58 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2013-05-02 16:34:33 +0200 |
commit | 3b8a8e462ee3ed33a95c784b6c77c33377210ca3 (patch) | |
tree | d240b79a4b1a49f56fa17453c158ac1ec0e35d1d | |
parent | cf813753e8738c781e33de955f9733a27c65229f (diff) | |
download | libmnl-3b8a8e462ee3ed33a95c784b6c77c33377210ca3.tar.gz libmnl-3b8a8e462ee3ed33a95c784b6c77c33377210ca3.zip |
examples: rtnl-route-add: fix typo in IPv6 support
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
-rw-r--r-- | examples/rtnl/rtnl-route-add.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/rtnl/rtnl-route-add.c b/examples/rtnl/rtnl-route-add.c index dd810c9..6d070b8 100644 --- a/examples/rtnl/rtnl-route-add.c +++ b/examples/rtnl/rtnl-route-add.c @@ -87,7 +87,7 @@ int main(int argc, char *argv[]) if (family == AF_INET) mnl_attr_put_u32(nlh, RTA_GATEWAY, gw.ip); else { - mnl_attr_put(nlh, RTA_DST, sizeof(struct in6_addr), + mnl_attr_put(nlh, RTA_GATEWAY, sizeof(struct in6_addr), &gw.ip6); } } |