From 2b9c6812f4558b74843c6e3740ee5319dc1df48d Mon Sep 17 00:00:00 2001 From: Kozlov Dmitry Date: Fri, 25 Jan 2013 20:09:24 +0400 Subject: ipoe: assign giaddr to interface only if mode=L3 --- accel-pppd/ctrl/ipoe/ipoe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- cgit v1.2.3