Lines Matching refs:mpls_shim

92 static struct mbuf *mpls_label_inet(struct mbuf *, union mpls_shim *, uint);
97 static struct mbuf *mpls_label_inet6(struct mbuf *, union mpls_shim *, uint);
100 static struct mbuf *mpls_prepend_shim(struct mbuf *, union mpls_shim *);
152 sc->sc_if.if_hdrlen = sizeof(union mpls_shim); in mpls_clone_create()
217 union mpls_shim mh, *pms; in mpls_output()
325 mpls_trim_label(struct mbuf *m, union mpls_shim *sh) in mpls_trim_label()
327 m_adj(m, sizeof(union mpls_shim)); in mpls_trim_label()
329 if (m->m_len < sizeof(union mpls_shim) && in mpls_trim_label()
330 (m = m_pullup(m, sizeof(union mpls_shim))) == NULL) in mpls_trim_label()
333 sh->s_addr = ntohl(mtod(m, union mpls_shim *)->s_addr); in mpls_trim_label()
345 union mpls_shim tshim, *htag; in mpls_lse()
357 if (m->m_len < sizeof(union mpls_shim) && in mpls_lse()
358 (m = m_pullup(m, sizeof(union mpls_shim))) == NULL) in mpls_lse()
363 dst.smpls_addr.s_addr = ntohl(mtod(m, union mpls_shim *)->s_addr); in mpls_lse()
442 if ((m->m_len < sizeof(union mpls_shim)) && in mpls_lse()
443 (m = m_pullup(m, sizeof(union mpls_shim))) == 0) { in mpls_lse()
449 htag = mtod(m, union mpls_shim *); in mpls_lse()
502 union mpls_shim msh; in mpls_send_frame()
508 m_adj(m, sizeof(union mpls_shim)); in mpls_send_frame()
535 union mpls_shim ms; in mpls_unlabel_inet()
540 ms.s_addr = ntohl(mtod(m, union mpls_shim *)->s_addr); in mpls_unlabel_inet()
543 m_adj(m, sizeof(union mpls_shim)); in mpls_unlabel_inet()
585 m_adj(m, sizeof(union mpls_shim)); in mpls_unlabel_inet()
603 mpls_label_inet(struct mbuf *m, union mpls_shim *ms, uint offset) in mpls_label_inet()
636 union mpls_shim ms; in mpls_unlabel_inet6()
640 ms.s_addr = ntohl(mtod(m, union mpls_shim *)->s_addr); in mpls_unlabel_inet6()
641 m_adj(m, sizeof(union mpls_shim)); in mpls_unlabel_inet6()
653 m_adj(m, sizeof(union mpls_shim)); in mpls_unlabel_inet6()
668 mpls_label_inet6(struct mbuf *m, union mpls_shim *ms, uint offset) in mpls_label_inet6()
695 mpls_prepend_shim(struct mbuf *m, union mpls_shim *ms) in mpls_prepend_shim()
697 union mpls_shim *shim; in mpls_prepend_shim()
703 if (m->m_len < sizeof(union mpls_shim) && in mpls_prepend_shim()
704 (m = m_pullup(m, sizeof(union mpls_shim))) == 0) in mpls_prepend_shim()
707 shim = mtod(m, union mpls_shim *); in mpls_prepend_shim()