summaryrefslogtreecommitdiff
path: root/accel-pppd/libnetlink/iputils.c
diff options
context:
space:
mode:
authorDmitry Kozlov <xeb@mail.ru>2014-05-26 10:55:57 +0400
committerDmitry Kozlov <xeb@mail.ru>2014-05-26 10:55:57 +0400
commit30397cca6a4472f3087d1071ecc43438e39f705f (patch)
tree79d5efb808e1b8c04d6587c876e474158a44d813 /accel-pppd/libnetlink/iputils.c
parent33ca7f48ec3369301c1f0ce4aa1abe306151af76 (diff)
downloadaccel-ppp-30397cca6a4472f3087d1071ecc43438e39f705f.tar.gz
accel-ppp-30397cca6a4472f3087d1071ecc43438e39f705f.zip
ipoe: introduced "ip-unnumbered" option
Before this time accel-ppp always worked in "ip unnumbered" mode. This option may turn this mode off (default is on)
Diffstat (limited to 'accel-pppd/libnetlink/iputils.c')
-rw-r--r--accel-pppd/libnetlink/iputils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/accel-pppd/libnetlink/iputils.c b/accel-pppd/libnetlink/iputils.c
index fbb32c6..060fbab 100644
--- a/accel-pppd/libnetlink/iputils.c
+++ b/accel-pppd/libnetlink/iputils.c
@@ -274,7 +274,7 @@ int __export ipaddr_add(int ifindex, in_addr_t addr, int mask)
return 0;
}
-int __export ipaddr_del(int ifindex, in_addr_t addr)
+int __export ipaddr_del(int ifindex, in_addr_t addr, int mask)
{
struct ipaddr_req {
struct nlmsghdr n;
@@ -295,7 +295,7 @@ int __export ipaddr_del(int ifindex, in_addr_t addr)
req.n.nlmsg_type = RTM_DELADDR;
req.i.ifa_family = AF_INET;
req.i.ifa_index = ifindex;
- req.i.ifa_prefixlen = 32;
+ req.i.ifa_prefixlen = mask;
addattr32(&req.n, sizeof(req), IFA_LOCAL, addr);