Searched refs:rt_mpls (Results 1 – 7 of 7) sorted by relevance
/openbsd/sys/netmpls/ |
H A D | mpls_shim.c | 60 mpls_shim_swap(struct mbuf *m, struct rt_mpls *rt_mpls) in mpls_shim_swap() argument 72 shim->shim_label |= rt_mpls->mpls_label & MPLS_LABEL_MASK; in mpls_shim_swap() 79 t = rt_mpls->mpls_exp << MPLS_EXP_OFFSET; in mpls_shim_swap() 87 mpls_shim_push(struct mbuf *m, struct rt_mpls *rt_mpls) in mpls_shim_push() argument 98 return (mpls_shim_swap(m, rt_mpls)); in mpls_shim_push()
|
H A D | mpls_output.c | 51 struct rt_mpls *rt_mpls; in mpls_output() local 76 rt_mpls = (struct rt_mpls *)rt->rt_llinfo; in mpls_output() 77 if (rt_mpls == NULL || (rt->rt_flags & RTF_MPLS) == 0) { in mpls_output() 91 switch (rt_mpls->mpls_operation) { in mpls_output() 93 m = mpls_shim_push(m, rt_mpls); in mpls_output() 99 m = mpls_shim_swap(m, rt_mpls); in mpls_output() 124 MPLS_LABEL_GET(rt_mpls->mpls_label)); in mpls_output()
|
H A D | mpls_input.c | 56 struct rt_mpls *rt_mpls; in mpls_input() local 177 rt_mpls = (struct rt_mpls *)rt->rt_llinfo; in mpls_input() 178 if (rt_mpls == NULL || (rt->rt_flags & RTF_MPLS) == 0) { in mpls_input() 186 switch (rt_mpls->mpls_operation) { in mpls_input() 235 m = mpls_shim_push(m, rt_mpls); in mpls_input() 238 m = mpls_shim_swap(m, rt_mpls); in mpls_input() 261 MPLS_LABEL_GET(rt_mpls->mpls_label)); in mpls_input()
|
H A D | mpls.h | 92 struct rt_mpls { struct 154 struct mbuf *mpls_shim_swap(struct mbuf *, struct rt_mpls *); 155 struct mbuf *mpls_shim_push(struct mbuf *, struct rt_mpls *);
|
/openbsd/sys/net/ |
H A D | route.c | 1708 struct rt_mpls *rt_mpls; in rt_mpls_set() local 1717 rt->rt_llinfo = malloc(sizeof(struct rt_mpls), M_TEMP, M_NOWAIT|M_ZERO); in rt_mpls_set() 1721 rt_mpls = (struct rt_mpls *)rt->rt_llinfo; in rt_mpls_set() 1723 rt_mpls->mpls_label = psa_mpls->smpls_label; in rt_mpls_set() 1724 rt_mpls->mpls_operation = op; in rt_mpls_set() 1735 free(rt->rt_llinfo, M_TEMP, sizeof(struct rt_mpls)); in rt_mpls_clear()
|
H A D | if_mpe.c | 225 struct rt_mpls *rtmpls; in mpe_output() 252 rtmpls = (struct rt_mpls *)rt->rt_llinfo; in mpe_output()
|
H A D | rtsock.c | 655 sa_mpls.smpls_label = ((struct rt_mpls *) in rtm_report() 658 info.rti_mpls = ((struct rt_mpls *) in rtm_report() 2017 sa_mpls.smpls_label = ((struct rt_mpls *) in sysctl_dumpentry() 2020 info.rti_mpls = ((struct rt_mpls *) in sysctl_dumpentry()
|