summaryrefslogtreecommitdiff
path: root/accel-pppd
diff options
context:
space:
mode:
authorKozlov Dmitry <xeb@mail.ru>2013-01-25 20:13:07 +0400
committerKozlov Dmitry <xeb@mail.ru>2013-01-25 20:13:07 +0400
commit00c02647fa787df0b84a57f669c0656b7e5a9591 (patch)
treeb53d1c5ba18af087f3a9fdd723716f0f17a0d194 /accel-pppd
parent2b9c6812f4558b74843c6e3740ee5319dc1df48d (diff)
downloadaccel-ppp-00c02647fa787df0b84a57f669c0656b7e5a9591.tar.gz
accel-ppp-00c02647fa787df0b84a57f669c0656b7e5a9591.zip
Revert "ipoe: assign giaddr to interface only if mode=L3"
This reverts commit 2b9c6812f4558b74843c6e3740ee5319dc1df48d.
Diffstat (limited to 'accel-pppd')
-rw-r--r--accel-pppd/ctrl/ipoe/ipoe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/accel-pppd/ctrl/ipoe/ipoe.c b/accel-pppd/ctrl/ipoe/ipoe.c
index 03cba1a6..74d2f90a 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 && opt_mode == MODE_L3)
+ if (opt_ifcfg)
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);
}