diff options
author | Kozlov Dmitry <xeb@mail.ru> | 2013-01-25 00:08:43 +0400 |
---|---|---|
committer | Kozlov Dmitry <xeb@mail.ru> | 2013-01-25 00:08:43 +0400 |
commit | 012aeee1880ebaf26fb996b818d7cf783eb86526 (patch) | |
tree | 64cc74403113edc54d36fc3efe768c0378840b97 /accel-pppd/ctrl/ipoe | |
parent | 13d53286fa35678696c8acccfa2f64fee3925b24 (diff) | |
download | accel-ppp-012aeee1880ebaf26fb996b818d7cf783eb86526.tar.gz accel-ppp-012aeee1880ebaf26fb996b818d7cf783eb86526.zip |
ipoe: fix giaddr reload
Diffstat (limited to 'accel-pppd/ctrl/ipoe')
-rw-r--r-- | accel-pppd/ctrl/ipoe/ipoe.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/accel-pppd/ctrl/ipoe/ipoe.c b/accel-pppd/ctrl/ipoe/ipoe.c index a871f0f..a830240 100644 --- a/accel-pppd/ctrl/ipoe/ipoe.c +++ b/accel-pppd/ctrl/ipoe/ipoe.c @@ -1362,10 +1362,11 @@ static void add_interface(const char *ifname, int ifindex, const char *opt) serv->dhcpv4_relay = NULL; } - if (serv->opt_dhcpv4 && opt_relay && opt_giaddr) + if (serv->opt_dhcpv4 && opt_relay && opt_giaddr) { if (opt_ifcfg) - ipoe_serv_add_addr(serv, serv->dhcpv4_relay->giaddr); + 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); + } serv->opt_up = opt_up; serv->opt_mode = opt_mode; |