diff options
author | Dmitry Kozlov <xeb@mail.ru> | 2013-06-13 22:21:32 +0400 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2013-06-13 22:21:32 +0400 |
commit | f94444646b54259c11dc7e8dbebdcf834a0250cc (patch) | |
tree | 87c3098b4a5d843de445228d0725adadfe2b0eb5 /accel-pppd/libnetlink/iputils.c | |
parent | 338e86560f0bb991852f977ff5376a2d9fb71b20 (diff) | |
download | accel-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.c | 4 |
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; |