summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2013-04-25 15:19:58 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2013-05-02 16:34:33 +0200
commit3b8a8e462ee3ed33a95c784b6c77c33377210ca3 (patch)
treed240b79a4b1a49f56fa17453c158ac1ec0e35d1d
parentcf813753e8738c781e33de955f9733a27c65229f (diff)
downloadlibmnl-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.c2
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);
}
}