Symbol: l2vpn
usr.sbin/ldpd/l2vpn.c
103
l2vpn_if_new(struct l2vpn *l2vpn, struct kif *kif)
usr.sbin/ldpd/l2vpn.c
110
lif->l2vpn = l2vpn;
usr.sbin/ldpd/l2vpn.c
120
l2vpn_if_find(struct l2vpn *l2vpn, unsigned int ifindex)
usr.sbin/ldpd/l2vpn.c
124
LIST_FOREACH(lif, &l2vpn->if_list, entry)
usr.sbin/ldpd/l2vpn.c
134
struct l2vpn *l2vpn = lif->l2vpn;
usr.sbin/ldpd/l2vpn.c
142
LIST_FOREACH(pw, &l2vpn->pw_list, entry) {
usr.sbin/ldpd/l2vpn.c
149
fec.fec.pwid.type = l2vpn->pw_type;
usr.sbin/ldpd/l2vpn.c
159
l2vpn_pw_new(struct l2vpn *l2vpn, struct kif *kif)
usr.sbin/ldpd/l2vpn.c
166
pw->l2vpn = l2vpn;
usr.sbin/ldpd/l2vpn.c
174
l2vpn_pw_find(struct l2vpn *l2vpn, unsigned int ifindex)
usr.sbin/ldpd/l2vpn.c
178
LIST_FOREACH(pw, &l2vpn->pw_list, entry)
usr.sbin/ldpd/l2vpn.c
211
fec->u.pwid.type = pw->l2vpn->pw_type;
usr.sbin/ldpd/l2vpn.c
245
if (pw->l2vpn->mtu != pw->remote_mtu)
usr.sbin/ldpd/l2vpn.c
34
struct l2vpn *
usr.sbin/ldpd/l2vpn.c
37
struct l2vpn *l2vpn;
usr.sbin/ldpd/l2vpn.c
39
if ((l2vpn = calloc(1, sizeof(*l2vpn))) == NULL)
usr.sbin/ldpd/l2vpn.c
42
strlcpy(l2vpn->name, name, sizeof(l2vpn->name));
usr.sbin/ldpd/l2vpn.c
45
l2vpn->mtu = DEFAULT_L2VPN_MTU;
usr.sbin/ldpd/l2vpn.c
46
l2vpn->pw_type = DEFAULT_PW_TYPE;
usr.sbin/ldpd/l2vpn.c
460
struct l2vpn *l2vpn;
usr.sbin/ldpd/l2vpn.c
466
LIST_FOREACH(l2vpn, &ldeconf->l2vpn_list, entry) {
usr.sbin/ldpd/l2vpn.c
467
LIST_FOREACH(pw, &l2vpn->pw_list, entry) {
usr.sbin/ldpd/l2vpn.c
48
LIST_INIT(&l2vpn->if_list);
usr.sbin/ldpd/l2vpn.c
49
LIST_INIT(&l2vpn->pw_list);
usr.sbin/ldpd/l2vpn.c
491
struct l2vpn *l2vpn;
usr.sbin/ldpd/l2vpn.c
495
LIST_FOREACH(l2vpn, &ldeconf->l2vpn_list, entry)
usr.sbin/ldpd/l2vpn.c
496
LIST_FOREACH(pw, &l2vpn->pw_list, entry) {
usr.sbin/ldpd/l2vpn.c
51
return (l2vpn);
usr.sbin/ldpd/l2vpn.c
536
pwctl.local_ifmtu = pw->l2vpn->mtu;
usr.sbin/ldpd/l2vpn.c
54
struct l2vpn *
usr.sbin/ldpd/l2vpn.c
564
ldpe_l2vpn_init(struct l2vpn *l2vpn)
usr.sbin/ldpd/l2vpn.c
568
LIST_FOREACH(pw, &l2vpn->pw_list, entry)
usr.sbin/ldpd/l2vpn.c
57
struct l2vpn *l2vpn;
usr.sbin/ldpd/l2vpn.c
573
ldpe_l2vpn_exit(struct l2vpn *l2vpn)
usr.sbin/ldpd/l2vpn.c
577
LIST_FOREACH(pw, &l2vpn->pw_list, entry)
usr.sbin/ldpd/l2vpn.c
59
LIST_FOREACH(l2vpn, &xconf->l2vpn_list, entry)
usr.sbin/ldpd/l2vpn.c
60
if (strcmp(l2vpn->name, name) == 0)
usr.sbin/ldpd/l2vpn.c
61
return (l2vpn);
usr.sbin/ldpd/l2vpn.c
67
l2vpn_del(struct l2vpn *l2vpn)
usr.sbin/ldpd/l2vpn.c
72
while ((lif = LIST_FIRST(&l2vpn->if_list)) != NULL) {
usr.sbin/ldpd/l2vpn.c
76
while ((pw = LIST_FIRST(&l2vpn->pw_list)) != NULL) {
usr.sbin/ldpd/l2vpn.c
81
free(l2vpn);
usr.sbin/ldpd/l2vpn.c
85
l2vpn_init(struct l2vpn *l2vpn)
usr.sbin/ldpd/l2vpn.c
89
LIST_FOREACH(pw, &l2vpn->pw_list, entry)
usr.sbin/ldpd/l2vpn.c
94
l2vpn_exit(struct l2vpn *l2vpn)
usr.sbin/ldpd/l2vpn.c
98
LIST_FOREACH(pw, &l2vpn->pw_list, entry)
usr.sbin/ldpd/lde.c
388
static struct l2vpn *nl2vpn;
usr.sbin/ldpd/lde.c
517
if ((nl2vpn = malloc(sizeof(struct l2vpn))) == NULL)
usr.sbin/ldpd/lde.c
519
memcpy(nl2vpn, imsg.data, sizeof(struct l2vpn));
usr.sbin/ldpd/lde.c
531
nlif->l2vpn = nl2vpn;
usr.sbin/ldpd/lde.c
539
npw->l2vpn = nl2vpn;
usr.sbin/ldpd/lde.c
803
map.fec.pwid.ifmtu = pw->l2vpn->mtu;
usr.sbin/ldpd/lde.h
194
struct l2vpn *l2vpn_new(const char *);
usr.sbin/ldpd/lde.h
195
struct l2vpn *l2vpn_find(struct ldpd_conf *, const char *);
usr.sbin/ldpd/lde.h
196
void l2vpn_del(struct l2vpn *);
usr.sbin/ldpd/lde.h
197
void l2vpn_init(struct l2vpn *);
usr.sbin/ldpd/lde.h
198
void l2vpn_exit(struct l2vpn *);
usr.sbin/ldpd/lde.h
199
struct l2vpn_if *l2vpn_if_new(struct l2vpn *, struct kif *);
usr.sbin/ldpd/lde.h
200
struct l2vpn_if *l2vpn_if_find(struct l2vpn *, unsigned int);
usr.sbin/ldpd/lde.h
202
struct l2vpn_pw *l2vpn_pw_new(struct l2vpn *, struct kif *);
usr.sbin/ldpd/lde.h
203
struct l2vpn_pw *l2vpn_pw_find(struct l2vpn *, unsigned int);
usr.sbin/ldpd/ldpd.c
1042
struct l2vpn *l2vpn, *ltmp, *xl;
usr.sbin/ldpd/ldpd.c
1044
LIST_FOREACH_SAFE(l2vpn, &conf->l2vpn_list, entry, ltmp) {
usr.sbin/ldpd/ldpd.c
1046
if ((xl = l2vpn_find(xconf, l2vpn->name)) == NULL) {
usr.sbin/ldpd/ldpd.c
1047
LIST_REMOVE(l2vpn, entry);
usr.sbin/ldpd/ldpd.c
1051
l2vpn_exit(l2vpn);
usr.sbin/ldpd/ldpd.c
1054
ldpe_l2vpn_exit(l2vpn);
usr.sbin/ldpd/ldpd.c
1059
l2vpn_del(l2vpn);
usr.sbin/ldpd/ldpd.c
1064
if ((l2vpn = l2vpn_find(conf, xl->name)) == NULL) {
usr.sbin/ldpd/ldpd.c
1082
merge_l2vpn(conf, l2vpn, xl);
usr.sbin/ldpd/ldpd.c
1089
merge_l2vpn(struct ldpd_conf *xconf, struct l2vpn *l2vpn, struct l2vpn *xl)
usr.sbin/ldpd/ldpd.c
1097
previous_pw_type = l2vpn->pw_type;
usr.sbin/ldpd/ldpd.c
1098
previous_mtu = l2vpn->mtu;
usr.sbin/ldpd/ldpd.c
1101
LIST_FOREACH_SAFE(lif, &l2vpn->if_list, entry, ftmp) {
usr.sbin/ldpd/ldpd.c
1110
if ((lif = l2vpn_if_find(l2vpn, xf->ifindex)) == NULL) {
usr.sbin/ldpd/ldpd.c
1112
LIST_INSERT_HEAD(&l2vpn->if_list, xf, entry);
usr.sbin/ldpd/ldpd.c
1113
xf->l2vpn = l2vpn;
usr.sbin/ldpd/ldpd.c
1122
LIST_FOREACH_SAFE(pw, &l2vpn->pw_list, entry, ptmp) {
usr.sbin/ldpd/ldpd.c
1142
if ((pw = l2vpn_pw_find(l2vpn, xp->ifindex)) == NULL) {
usr.sbin/ldpd/ldpd.c
1144
LIST_INSERT_HEAD(&l2vpn->pw_list, xp, entry);
usr.sbin/ldpd/ldpd.c
1145
xp->l2vpn = l2vpn;
usr.sbin/ldpd/ldpd.c
1174
if (l2vpn->pw_type != xl->pw_type || l2vpn->mtu != xl->mtu ||
usr.sbin/ldpd/ldpd.c
1211
l2vpn->pw_type = xl->pw_type;
usr.sbin/ldpd/ldpd.c
1212
l2vpn->mtu = xl->mtu;
usr.sbin/ldpd/ldpd.c
1214
l2vpn->pw_type = previous_pw_type;
usr.sbin/ldpd/ldpd.c
1215
l2vpn->mtu = previous_mtu;
usr.sbin/ldpd/ldpd.c
1222
l2vpn->pw_type = xl->pw_type;
usr.sbin/ldpd/ldpd.c
1223
l2vpn->mtu = xl->mtu;
usr.sbin/ldpd/ldpd.c
1224
strlcpy(l2vpn->br_ifname, xl->br_ifname, sizeof(l2vpn->br_ifname));
usr.sbin/ldpd/ldpd.c
1225
l2vpn->br_ifindex = xl->br_ifindex;
usr.sbin/ldpd/ldpd.c
62
static void merge_l2vpn(struct ldpd_conf *, struct l2vpn *,
usr.sbin/ldpd/ldpd.c
63
struct l2vpn *);
usr.sbin/ldpd/ldpd.c
699
struct l2vpn *l2vpn;
usr.sbin/ldpd/ldpd.c
732
LIST_FOREACH(l2vpn, &xconf->l2vpn_list, entry) {
usr.sbin/ldpd/ldpd.c
733
if (main_imsg_compose_both(IMSG_RECONF_L2VPN, l2vpn,
usr.sbin/ldpd/ldpd.c
734
sizeof(*l2vpn)) == -1)
usr.sbin/ldpd/ldpd.c
737
LIST_FOREACH(lif, &l2vpn->if_list, entry) {
usr.sbin/ldpd/ldpd.c
742
LIST_FOREACH(pw, &l2vpn->pw_list, entry) {
usr.sbin/ldpd/ldpd.h
320
struct l2vpn *l2vpn;
usr.sbin/ldpd/ldpd.h
330
struct l2vpn *l2vpn;
usr.sbin/ldpd/ldpd.h
349
LIST_ENTRY(l2vpn) entry;
usr.sbin/ldpd/ldpd.h
411
LIST_HEAD(, l2vpn) l2vpn_list;
usr.sbin/ldpd/ldpe.c
219
static struct l2vpn *l2vpn, *nl2vpn;
usr.sbin/ldpd/ldpe.c
271
LIST_FOREACH(l2vpn, &leconf->l2vpn_list, entry) {
usr.sbin/ldpd/ldpe.c
272
lif = l2vpn_if_find(l2vpn, kif->ifindex);
usr.sbin/ldpd/ldpe.c
426
if ((nl2vpn = malloc(sizeof(struct l2vpn))) == NULL)
usr.sbin/ldpd/ldpe.c
428
memcpy(nl2vpn, imsg.data, sizeof(struct l2vpn));
usr.sbin/ldpd/ldpe.c
440
nlif->l2vpn = nl2vpn;
usr.sbin/ldpd/ldpe.c
448
npw->l2vpn = nl2vpn;
usr.sbin/ldpd/ldpe.h
286
void ldpe_l2vpn_init(struct l2vpn *);
usr.sbin/ldpd/ldpe.h
287
void ldpe_l2vpn_exit(struct l2vpn *);
usr.sbin/ldpd/parse.y
108
static struct l2vpn *conf_get_l2vpn(char *);
usr.sbin/ldpd/parse.y
109
static struct l2vpn_if *conf_get_l2vpn_if(struct l2vpn *, struct kif *);
usr.sbin/ldpd/parse.y
110
static struct l2vpn_pw *conf_get_l2vpn_pw(struct l2vpn *, struct kif *);
usr.sbin/ldpd/parse.y
130
static struct l2vpn *l2vpn;
usr.sbin/ldpd/parse.y
1442
struct l2vpn *l;
usr.sbin/ldpd/parse.y
1505
static struct l2vpn *
usr.sbin/ldpd/parse.y
1508
struct l2vpn *l;
usr.sbin/ldpd/parse.y
1521
conf_get_l2vpn_if(struct l2vpn *l, struct kif *kif)
usr.sbin/ldpd/parse.y
1524
struct l2vpn *ltmp;
usr.sbin/ldpd/parse.y
1552
LIST_INSERT_HEAD(&l2vpn->if_list, f, entry);
usr.sbin/ldpd/parse.y
1557
conf_get_l2vpn_pw(struct l2vpn *l, struct kif *kif)
usr.sbin/ldpd/parse.y
1559
struct l2vpn *ltmp;
usr.sbin/ldpd/parse.y
1571
LIST_INSERT_HEAD(&l2vpn->pw_list, p, entry);
usr.sbin/ldpd/parse.y
1598
struct l2vpn *l;
usr.sbin/ldpd/parse.y
172
| grammar l2vpn '\n'
usr.sbin/ldpd/parse.y
625
pw = conf_get_l2vpn_pw(l2vpn, kif);
usr.sbin/ldpd/parse.y
632
struct l2vpn *l;
usr.sbin/ldpd/parse.y
683
l2vpn->pw_type = $2;
usr.sbin/ldpd/parse.y
692
l2vpn->mtu = $2;
usr.sbin/ldpd/parse.y
696
struct l2vpn *l;
usr.sbin/ldpd/parse.y
706
if (l2vpn->br_ifindex != 0) {
usr.sbin/ldpd/parse.y
708
"redefined on l2vpn %s", l2vpn->name);
usr.sbin/ldpd/parse.y
727
l2vpn->br_ifindex = kif->ifindex;
usr.sbin/ldpd/parse.y
728
strlcpy(l2vpn->br_ifname, kif->ifname,
usr.sbin/ldpd/parse.y
729
sizeof(l2vpn->br_ifname));
usr.sbin/ldpd/parse.y
742
lif = conf_get_l2vpn_if(l2vpn, kif);
usr.sbin/ldpd/parse.y
860
l2vpn : L2VPN STRING TYPE l2vpn_type {
usr.sbin/ldpd/parse.y
861
l2vpn = conf_get_l2vpn($2);
usr.sbin/ldpd/parse.y
862
if (l2vpn == NULL)
usr.sbin/ldpd/parse.y
864
l2vpn->type = $4;
usr.sbin/ldpd/parse.y
866
l2vpn = NULL;
usr.sbin/ldpd/printconf.c
142
print_l2vpn(struct l2vpn *l2vpn)
usr.sbin/ldpd/printconf.c
147
printf("\nl2vpn %s type vpls {\n", l2vpn->name);
usr.sbin/ldpd/printconf.c
149
if (l2vpn->pw_type == PW_TYPE_ETHERNET)
usr.sbin/ldpd/printconf.c
154
printf("\tmtu %u\n", l2vpn->mtu);
usr.sbin/ldpd/printconf.c
155
if (l2vpn->br_ifindex != 0)
usr.sbin/ldpd/printconf.c
156
printf("\tbridge %s\n", l2vpn->br_ifname);
usr.sbin/ldpd/printconf.c
157
LIST_FOREACH(lif, &l2vpn->if_list, entry)
usr.sbin/ldpd/printconf.c
159
LIST_FOREACH(pw, &l2vpn->pw_list, entry)
usr.sbin/ldpd/printconf.c
216
struct l2vpn *l2vpn;
usr.sbin/ldpd/printconf.c
231
LIST_FOREACH(l2vpn, &conf->l2vpn_list, entry)
usr.sbin/ldpd/printconf.c
232
print_l2vpn(l2vpn);
usr.sbin/ldpd/printconf.c
37
static void print_l2vpn(struct l2vpn *);