Searched refs:mtodo (Results 1 - 8 of 8) sorted by relevance
/freebsd-10.3-release/sys/net/ |
H A D | if_me.c | 450 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 D | if_gre.c | 705 gh = (struct grehdr *)mtodo(m, *offp); 925 gh = (struct grehdr *)mtodo(m, olen);
|
H A D | if_vxlan.c | 2260 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 D | ctl_ha.c | 126 #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 D | sfxge_tx.c | 748 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 D | mbuf.h | 74 * 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 D | if_vmx.c | 2657 ip = mtodo(m, offset); 2670 ip6 = mtodo(m, offset); 2718 tcp = mtodo(m, *start);
|
/freebsd-10.3-release/sys/dev/hyperv/netvsc/ |
H A D | hv_netvsc_drv_freebsd.c | 1720 ip = mtodo(m, hoff);
|
Completed in 102 milliseconds