Searched refs:mtodo (Results 1 - 8 of 8) sorted by relevance

/freebsd-10.3-release/sys/net/
H A Dif_me.c450 mh = (struct mobhdr *)mtodo(m, sizeof(struct ip));
478 memmove(mtodo(m, hlen), ip, sizeof(struct ip));
628 memmove(mtod(m, void *), mtodo(m, hlen), sizeof(struct ip));
635 bcopy(&mh, mtodo(m, sizeof(struct ip)), hlen);
H A Dif_gre.c705 gh = (struct grehdr *)mtodo(m, *offp);
925 gh = (struct grehdr *)mtodo(m, olen);
H A Dif_vxlan.c2260 hdr = mtodo(m, ipoff);
2373 struct udphdr *hdr = mtodo(m, sizeof(struct ip6_hdr));
2475 vxh = mtodo(m, offset);
/freebsd-10.3-release/sys/cam/ctl/
H A Dctl_ha.c126 #define mtodo(m, o) ((void *)(((m)->m_data) + (o))) macro
785 memcpy(mtodo(mb, 0), &hdr, sizeof(hdr));
790 memcpy(mtodo(mb, mb->m_len), (const char *)addr + off, copylen);
801 memcpy(mtodo(mb, mb->m_len), (const char *)addr2 + off, copylen);
/freebsd-10.3-release/sys/dev/sfxge/
H A Dsfxge_tx.c748 const struct ip *iph = (const struct ip *)mtodo(mbuf, mbuf->m_pkthdr.l2hlen);
757 KASSERT(((const struct ip6_hdr *)mtodo(mbuf, mbuf->m_pkthdr.l2hlen))->ip6_nxt ==
773 th = (const struct tcphdr *)mtodo(mbuf, mbuf->m_pkthdr.l3hlen);
/freebsd-10.3-release/sys/sys/
H A Dmbuf.h74 * mtodo(m, o) -- Same as above but with offset 'o' into data.
77 #define mtodo(m, o) ((void *)(((m)->m_data) + (o))) macro
/freebsd-10.3-release/sys/dev/vmware/vmxnet3/
H A Dif_vmx.c2657 ip = mtodo(m, offset);
2670 ip6 = mtodo(m, offset);
2718 tcp = mtodo(m, *start);
/freebsd-10.3-release/sys/dev/hyperv/netvsc/
H A Dhv_netvsc_drv_freebsd.c1720 ip = mtodo(m, hoff);

Completed in 87 milliseconds