summaryrefslogtreecommitdiff
path: root/accel-pppd
diff options
context:
space:
mode:
authorDmitriyEshenko <snooppy@mail.ua>2019-01-27 12:10:41 +0300
committerDmitriyEshenko <snooppy@mail.ua>2019-01-27 12:10:41 +0300
commit0fad26e294b897fa398c30378d63225fa98d5c5b (patch)
treeedc7275a9f4a4aebd67479bc2619c9f22a862491 /accel-pppd
parent6538ee3289b39c2c978a9a7c6d82a4e9f7dbfd7f (diff)
downloadaccel-ppp-0fad26e294b897fa398c30378d63225fa98d5c5b.tar.gz
accel-ppp-0fad26e294b897fa398c30378d63225fa98d5c5b.zip
ipoe: fix start=up not work if set not per-interface
Diffstat (limited to 'accel-pppd')
-rw-r--r--accel-pppd/ctrl/ipoe/ipoe.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/accel-pppd/ctrl/ipoe/ipoe.c b/accel-pppd/ctrl/ipoe/ipoe.c
index 6fd850da..b8082a64 100644
--- a/accel-pppd/ctrl/ipoe/ipoe.c
+++ b/accel-pppd/ctrl/ipoe/ipoe.c
@@ -2910,15 +2910,15 @@ static void add_interface(const char *ifname, int ifindex, const char *opt, int
}
}
- if (!opt_arp && opt_up && opt_mode == MODE_L2)
- opt_arp = 1;
-
if (!opt_up && !opt_dhcpv4 && !opt_auto) {
opt_up = conf_up;
opt_dhcpv4 = conf_dhcpv4;
opt_auto = conf_auto;
}
+ if (!opt_arp && opt_up && opt_mode == MODE_L2)
+ opt_arp = 1;
+
opt_auto &= !opt_shared;
if (opt_relay && !opt_giaddr && opt_dhcpv4) {