diff options
author | Kozlov Dmitry <xeb@mail.ru> | 2013-01-25 20:09:24 +0400 |
---|---|---|
committer | Kozlov Dmitry <xeb@mail.ru> | 2013-01-25 20:09:24 +0400 |
commit | 2b9c6812f4558b74843c6e3740ee5319dc1df48d (patch) | |
tree | 32bca356052f787eae32b54ef8c8153c58bfc7bc /accel-pppd/ctrl/ipoe/ipoe.c | |
parent | 31e4b6ae1348c6ae6bcc4c3470608d9479ae22e3 (diff) | |
download | accel-ppp-2b9c6812f4558b74843c6e3740ee5319dc1df48d.tar.gz accel-ppp-2b9c6812f4558b74843c6e3740ee5319dc1df48d.zip |
ipoe: assign giaddr to interface only if mode=L3
Diffstat (limited to 'accel-pppd/ctrl/ipoe/ipoe.c')
-rw-r--r-- | accel-pppd/ctrl/ipoe/ipoe.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/accel-pppd/ctrl/ipoe/ipoe.c b/accel-pppd/ctrl/ipoe/ipoe.c index 74d2f90..03cba1a 100644 --- a/accel-pppd/ctrl/ipoe/ipoe.c +++ b/accel-pppd/ctrl/ipoe/ipoe.c @@ -1369,7 +1369,7 @@ static void add_interface(const char *ifname, int ifindex, const char *opt) } if (serv->opt_dhcpv4 && opt_relay && opt_giaddr) { - if (opt_ifcfg) + if (opt_ifcfg && opt_mode == MODE_L3) ipoe_serv_add_addr(serv, giaddr); serv->dhcpv4_relay = dhcpv4_relay_create(opt_relay, opt_giaddr, &serv->ctx, (triton_event_func)ipoe_recv_dhcpv4_relay); } |