summaryrefslogtreecommitdiff
path: root/accel-pppd/libnetlink/iputils.c
diff options
context:
space:
mode:
authorDmitry Kozlov <xeb@mail.ru>2013-06-13 22:21:32 +0400
committerDmitry Kozlov <xeb@mail.ru>2013-06-13 22:21:32 +0400
commitf94444646b54259c11dc7e8dbebdcf834a0250cc (patch)
tree87c3098b4a5d843de445228d0725adadfe2b0eb5 /accel-pppd/libnetlink/iputils.c
parent338e86560f0bb991852f977ff5376a2d9fb71b20 (diff)
downloadaccel-ppp-f94444646b54259c11dc7e8dbebdcf834a0250cc.tar.gz
accel-ppp-f94444646b54259c11dc7e8dbebdcf834a0250cc.zip
ipoe: introduced 'proto' option that will be used for inserted routes
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 17f40f3a..0e80b89c 100644
--- a/accel-pppd/libnetlink/iputils.c
+++ b/accel-pppd/libnetlink/iputils.c
@@ -224,7 +224,7 @@ int __export ipaddr_del(int ifindex, in_addr_t addr)
return 0;
}
-int __export iproute_add(int ifindex, in_addr_t src, in_addr_t dst)
+int __export iproute_add(int ifindex, in_addr_t src, in_addr_t dst, int proto)
{
struct ipaddr_req {
struct nlmsghdr n;
@@ -246,7 +246,7 @@ int __export iproute_add(int ifindex, in_addr_t src, 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;