diff options
Diffstat (limited to 'examples/rtnl')
-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); } } |