Lines Matching defs:l2vpn
108 static struct l2vpn *conf_get_l2vpn(char *);
109 static struct l2vpn_if *conf_get_l2vpn_if(struct l2vpn *, struct kif *);
110 static struct l2vpn_pw *conf_get_l2vpn_pw(struct l2vpn *, struct kif *);
130 static struct l2vpn *l2vpn;
172 | grammar l2vpn '\n'
625 pw = conf_get_l2vpn_pw(l2vpn, kif);
632 struct l2vpn *l;
683 l2vpn->pw_type = $2;
688 yyerror("l2vpn mtu out of range (%d-%d)",
692 l2vpn->mtu = $2;
696 struct l2vpn *l;
706 if (l2vpn->br_ifindex != 0) {
708 "redefined on l2vpn %s", l2vpn->name);
721 "used by l2vpn %s", kif->ifname,
727 l2vpn->br_ifindex = kif->ifindex;
728 strlcpy(l2vpn->br_ifname, kif->ifname,
729 sizeof(l2vpn->br_ifname));
742 lif = conf_get_l2vpn_if(l2vpn, kif);
860 l2vpn : L2VPN STRING TYPE l2vpn_type {
861 l2vpn = conf_get_l2vpn($2);
862 if (l2vpn == NULL)
864 l2vpn->type = $4;
866 l2vpn = NULL;
931 {"l2vpn", L2VPN},
1442 struct l2vpn *l;
1456 "l2vpn %s", kif->ifname, l->name);
1505 static struct l2vpn *
1508 struct l2vpn *l;
1511 yyerror("l2vpn %s already configured", name);
1521 conf_get_l2vpn_if(struct l2vpn *l, struct kif *kif)
1524 struct l2vpn *ltmp;
1539 "l2vpn %s", kif->ifname, ltmp->name);
1552 LIST_INSERT_HEAD(&l2vpn->if_list, f, entry);
1557 conf_get_l2vpn_pw(struct l2vpn *l, struct kif *kif)
1559 struct l2vpn *ltmp;
1565 "used by l2vpn %s", kif->ifname, ltmp->name);
1571 LIST_INSERT_HEAD(&l2vpn->pw_list, p, entry);
1598 struct l2vpn *l;