Home | History | Annotate | Download | only in net

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);
217 union mpls_shim mh, *pms;
325 mpls_trim_label(struct mbuf *m, union mpls_shim *sh)
327 m_adj(m, sizeof(union mpls_shim));
329 if (m->m_len < sizeof(union mpls_shim) &&
330 (m = m_pullup(m, sizeof(union mpls_shim))) == NULL)
333 sh->s_addr = ntohl(mtod(m, union mpls_shim *)->s_addr);
345 union mpls_shim tshim, *htag;
357 if (m->m_len < sizeof(union mpls_shim) &&
358 (m = m_pullup(m, sizeof(union mpls_shim))) == NULL)
363 dst.smpls_addr.s_addr = ntohl(mtod(m, union mpls_shim *)->s_addr);
442 if ((m->m_len < sizeof(union mpls_shim)) &&
443 (m = m_pullup(m, sizeof(union mpls_shim))) == 0) {
449 htag = mtod(m, union mpls_shim *);
502 union mpls_shim msh;
508 m_adj(m, sizeof(union mpls_shim));
535 union mpls_shim ms;
540 ms.s_addr = ntohl(mtod(m, union mpls_shim *)->s_addr);
543 m_adj(m, sizeof(union mpls_shim));
585 m_adj(m, sizeof(union mpls_shim));
603 mpls_label_inet(struct mbuf *m, union mpls_shim *ms, uint offset)
636 union mpls_shim ms;
640 ms.s_addr = ntohl(mtod(m, union mpls_shim *)->s_addr);
641 m_adj(m, sizeof(union mpls_shim));
653 m_adj(m, sizeof(union mpls_shim));
668 mpls_label_inet6(struct mbuf *m, union mpls_shim *ms, uint offset)
695 mpls_prepend_shim(struct mbuf *m, union mpls_shim *ms)
697 union mpls_shim *shim;
703 if (m->m_len < sizeof(union mpls_shim) &&
704 (m = m_pullup(m, sizeof(union mpls_shim))) == 0)
707 shim = mtod(m, union mpls_shim