diff options
author | Dmitry Kozlov <xeb@mail.ru> | 2018-01-09 21:49:25 +0300 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2018-01-09 21:49:25 +0300 |
commit | 109e23ab396db599911deaba2dd06bcc3081f5ea (patch) | |
tree | 929478fdfb37f32fee89a96d7b15c9de51361a81 /accel-pppd/ctrl/ipoe/ipoe_netlink.c | |
parent | 775d49924cc3a0b479a01bb5dde402dfbfc96782 (diff) | |
download | accel-ppp-109e23ab396db599911deaba2dd06bcc3081f5ea.tar.gz accel-ppp-109e23ab396db599911deaba2dd06bcc3081f5ea.zip |
ipoe: do not create ipoe interface with server's ifindex
Diffstat (limited to 'accel-pppd/ctrl/ipoe/ipoe_netlink.c')
-rw-r--r-- | accel-pppd/ctrl/ipoe/ipoe_netlink.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/accel-pppd/ctrl/ipoe/ipoe_netlink.c b/accel-pppd/ctrl/ipoe/ipoe_netlink.c index 45020727..363ff35e 100644 --- a/accel-pppd/ctrl/ipoe/ipoe_netlink.c +++ b/accel-pppd/ctrl/ipoe/ipoe_netlink.c @@ -236,7 +236,7 @@ void ipoe_nl_delete_interfaces(void) ipoe_nl_del_interface(-1); } -int ipoe_nl_create(int ifindex) +int ipoe_nl_create() { struct rtnl_handle rth; struct nlmsghdr *nlh; @@ -263,8 +263,6 @@ int ipoe_nl_create(int ifindex) ghdr = NLMSG_DATA(&req.n); ghdr->cmd = IPOE_CMD_CREATE; - addattr32(nlh, 1024, IPOE_ATTR_IFINDEX, ifindex); - if (rtnl_talk(&rth, nlh, 0, 0, nlh, NULL, NULL, 0) < 0 ) { log_ppp_error("ipoe: nl_create: %s\n", strerror(errno)); goto out; |