From 17aa750a49ebaecfc7b063c770aa8d36f5078b2c Mon Sep 17 00:00:00 2001 From: Hangbin Liu Date: Mon, 10 Jul 2017 15:39:28 +0800 Subject: [PATCH] rtnl: replace obsolete RTMGRP_LINK with RTNLGRP_LINK for nl groups Signed-off-by: Hangbin Liu --- rtnl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rtnl.c b/rtnl.c index 5cddc4b..d7a430d 100644 --- a/rtnl.c +++ b/rtnl.c @@ -151,7 +151,7 @@ int rtnl_open(void) memset(&sa, 0, sizeof(sa)); sa.nl_family = AF_NETLINK; - sa.nl_groups = RTMGRP_LINK; + sa.nl_groups = RTNLGRP_LINK; fd = socket(AF_NETLINK, SOCK_RAW, NETLINK_ROUTE); if (fd < 0) {