diff options
Diffstat (limited to 'accel-pppd/ctrl/ipoe/ipoe.c')
-rw-r--r-- | accel-pppd/ctrl/ipoe/ipoe.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/accel-pppd/ctrl/ipoe/ipoe.c b/accel-pppd/ctrl/ipoe/ipoe.c index f6cda6b..4a04fcb 100644 --- a/accel-pppd/ctrl/ipoe/ipoe.c +++ b/accel-pppd/ctrl/ipoe/ipoe.c @@ -2730,6 +2730,7 @@ static void add_interface(const char *ifname, int ifindex, const char *opt, int serv->opt_lua_username_func = opt_lua_username_func; #endif serv->parent_ifindex = parent_ifindex; + serv->parent_vid = parent_ifindex ? iplink_vlan_get_vid(parent_ifindex, NULL) : 0; serv->vid = vid; serv->active = 1; INIT_LIST_HEAD(&serv->sessions); |