rtnl: replace obsolete RTMGRP_LINK with RTNLGRP_LINK for nl groups

Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
master
Hangbin Liu 2017-07-10 15:39:28 +08:00 committed by Richard Cochran
parent 46cc187e82
commit 17aa750a49
1 changed files with 1 additions and 1 deletions

2
rtnl.c
View File

@ -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) {