summaryrefslogtreecommitdiff
path: root/accel-pppd/ctrl/ipoe/ipoe.c
diff options
context:
space:
mode:
authorKozlov Dmitry <xeb@mail.ru>2013-04-19 13:27:21 +0400
committerKozlov Dmitry <xeb@mail.ru>2013-04-19 13:27:21 +0400
commitbff0ea1c99ff68ca6f1ab58dcdfa0054caf42fca (patch)
tree646e24f78ae4e3dc78118a3447ae8707d2a205f4 /accel-pppd/ctrl/ipoe/ipoe.c
parente003275f092bdbe8b64b3da301886d5e02218d6e (diff)
downloadaccel-ppp-bff0ea1c99ff68ca6f1ab58dcdfa0054caf42fca.tar.gz
accel-ppp-bff0ea1c99ff68ca6f1ab58dcdfa0054caf42fca.zip
ipoe: accept packets only from specified interfaces
Diffstat (limited to 'accel-pppd/ctrl/ipoe/ipoe.c')
-rw-r--r--accel-pppd/ctrl/ipoe/ipoe.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/accel-pppd/ctrl/ipoe/ipoe.c b/accel-pppd/ctrl/ipoe/ipoe.c
index aae1cd1..116e83c 100644
--- a/accel-pppd/ctrl/ipoe/ipoe.c
+++ b/accel-pppd/ctrl/ipoe/ipoe.c
@@ -1417,6 +1417,9 @@ static void add_interface(const char *ifname, int ifindex, const char *opt)
opt_dhcpv4 = conf_dhcpv4;
}
+ if (opt_up)
+ ipoe_nl_add_interface(ifindex);
+
list_for_each_entry(serv, &serv_list, entry) {
if (strcmp(ifname, serv->ifname))
continue;
@@ -1574,6 +1577,8 @@ static void load_interfaces(struct conf_sect_t *sect)
struct conf_option_t *opt;
struct list_head *pos, *n;
+ ipoe_nl_delete_interfaces();
+
list_for_each_entry(serv, &serv_list, entry)
serv->active = 0;