summaryrefslogtreecommitdiff
path: root/accel-pppd/libnetlink/iputils.c
diff options
context:
space:
mode:
authorKozlov Dmitry <xeb@mail.ru>2013-07-26 10:46:34 +0400
committerKozlov Dmitry <xeb@mail.ru>2013-07-26 10:46:34 +0400
commit8f8b893405d2e2b792885c4875eb8bdc77ce9d2f (patch)
treee47c0fbcf797e938c13f771651629a33cb359678 /accel-pppd/libnetlink/iputils.c
parenta7ab20b5ff328aadcc20e84d740958c5a1127dc8 (diff)
downloadaccel-ppp-8f8b893405d2e2b792885c4875eb8bdc77ce9d2f.tar.gz
accel-ppp-8f8b893405d2e2b792885c4875eb8bdc77ce9d2f.zip
ipoe: fixed route deletion (pass proper proto)
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 0e80b89c..029d09a6 100644
--- a/accel-pppd/libnetlink/iputils.c
+++ b/accel-pppd/libnetlink/iputils.c
@@ -261,7 +261,7 @@ int __export iproute_add(int ifindex, in_addr_t src, in_addr_t dst, int proto)
return 0;
}
-int __export iproute_del(int ifindex, in_addr_t dst)
+int __export iproute_del(int ifindex, in_addr_t dst, int proto)
{
struct ipaddr_req {
struct nlmsghdr n;
@@ -283,7 +283,7 @@ int __export iproute_del(int ifindex, in_addr_t dst)
req.i.rtm_family = AF_INET;
req.i.rtm_table = RT_TABLE_MAIN;
req.i.rtm_scope = RT_SCOPE_LINK;
- req.i.rtm_protocol = RTPROT_BOOT;
+ req.i.rtm_protocol = proto;
req.i.rtm_type = RTN_UNICAST;
req.i.rtm_dst_len = 32;