crypto/dist/ipsec-tools/src/libipsec/key_debug.c
823
printf("%02x", mtod(m, u_char *)[i]);
sys/altq/altq_cdnr.c
149
ip = mtod(m, struct ip *);
sys/altq/altq_subr.c
1025
udp = (struct udphdr *)(mtod(m0, char *) + off);
sys/altq/altq_subr.c
1036
gpi = (u_int32_t *)(mtod(m0, char *) + off);
sys/altq/altq_subr.c
1046
opt6 = (struct _opt6 *)(mtod(m0, char *) + off);
sys/altq/altq_subr.c
1061
opt6 = (struct _opt6 *)(mtod(m0, char *) + off);
sys/altq/altq_subr.c
802
ip = mtod(m, struct ip *);
sys/altq/altq_subr.c
833
ip6 = mtod(m, struct ip6_hdr *);
sys/altq/altq_subr.c
940
udp = (struct udphdr *)(mtod(m0, char *) + off);
sys/altq/altq_subr.c
952
gpi = (u_int32_t *)(mtod(m0, char *) + off);
sys/altq/altq_subr.c
962
opt6 = (struct _opt6 *)(mtod(m0, char *) + off);
sys/arch/acorn32/podulebus/if_ie.c
1149
memcpy(mtod(m, void *), &eh, sizeof(struct ether_header));
sys/arch/acorn32/podulebus/if_ie.c
1171
mtod(m, void *) + thismboff, (u_int)len+1);
sys/arch/acorn32/podulebus/if_ie.c
1176
mtod(m, void *) + thismboff, (u_int)len);
sys/arch/acorn32/podulebus/if_ie.c
1472
memcpy(buffer, mtod(m, void *), m->m_len);
sys/arch/alpha/isa/isadma_bounce.c
520
memcpy(mtod(m, char *) + moff,
sys/arch/amiga/dev/if_ed_zbus.c
295
data = mtod(m, u_char *);
sys/arch/amiga/dev/if_es.c
690
memcpy(mtod(m, void *), (void *)b, len);
sys/arch/amiga/dev/if_es.c
693
buf = mtod(m, u_short *);
sys/arch/amiga/dev/if_es.c
701
buf = mtod(m, u_short *);
sys/arch/amiga/dev/if_es.c
833
memcpy((char *)pktbuf + i, mtod(m, void *), m->m_len);
sys/arch/amiga/dev/if_es.c
878
buf = mtod(m, u_short *);
sys/arch/amiga/dev/if_qn.c
470
data = mtod(m, u_short *);
sys/arch/amiga/dev/if_qn.c
549
mtod(head, u_short *),
sys/arch/amiga/dev/if_qn.c
579
(u_short *)(mtod(m, char *) + m->m_len),
sys/arch/arc/isa/isadma_bounce.c
568
memcpy(mtod(m, char *) + moff,
sys/arch/arm/arm32/bus_dma.c
1013
vaddr_t va = mtod(m, vaddr_t) + voff;
sys/arch/arm/at91/at91emac.c
275
if (mtod(m, intptr_t) & 3) {
sys/arch/arm/at91/at91emac.c
276
m_adj(m, mtod(m, intptr_t) & 3);
sys/arch/arm/at91/at91emac.c
415
if (mtod(m, intptr_t) & 3) {
sys/arch/arm/at91/at91emac.c
416
m_adj(m, mtod(m, intptr_t) & 3);
sys/arch/arm/at91/at91emac.c
640
m_copydata(m, 0, m->m_pkthdr.len, mtod(mn, void *));
sys/arch/arm/broadcom/bcm53xx_eth.c
1491
misalignment = mtod(mext, vaddr_t) & arm_dcache_align;
sys/arch/arm/broadcom/bcm53xx_eth.c
1536
m_copydata(m, 0, m0->m_len, mtod(m0, void *));
sys/arch/arm/broadcom/bcm53xx_eth.c
908
*mtod(m, uint32_t *) = htole32(BCMETH_RCVMAGIC);
sys/arch/arm/ep93xx/epe.c
574
m_copydata(m, 0, m->m_pkthdr.len, mtod(mn, void *));
sys/arch/arm/gemini/if_gpn.c
210
gemini_ipm_copyin(mtod(m, uint8_t *) + m->m_len, addr,
sys/arch/arm/gemini/if_gpn.c
444
mtod(m, void *), m->m_len, NULL,
sys/arch/arm/imx/if_enet.c
1476
memcpy(mtod(x, void *), mtod(m, void *),
sys/arch/arm/imx/if_enet.c
1592
memcpy(mtod(x, void *), mtod(m, void *),
sys/arch/arm/imx/if_enet.c
665
eh = mtod(m, struct ether_header *);
sys/arch/arm/sunxi/sun4i_emac.c
508
uint32_t *dp32 = mtod(m, uint32_t *);
sys/arch/arm/sunxi/sun4i_emac.c
601
pktdata = mtod(m, uint32_t *);
sys/arch/arm/sunxi/sunxi_can.c
269
cf = mtod(m, struct can_frame *);
sys/arch/arm/sunxi/sunxi_can.c
446
cf = mtod(m, struct can_frame *);
sys/arch/arm/xscale/ixp425_if_npe.c
1223
m_copydata(m0, 0, m0->m_pkthdr.len, mtod(m, void *));
sys/arch/arm/xscale/ixp425_if_npe.c
954
eh = mtod(mrx, struct ether_header *);
sys/arch/atari/isa/isa_dma.c
574
memcpy(mtod(m, char *) + moff,
sys/arch/dreamcast/dev/g2/gapspci_dma.c
467
mtod(m, uint8_t *) + moff, minlen);
sys/arch/dreamcast/dev/g2/gapspci_dma.c
497
mtod(m, uint8_t *) + moff, minlen);
sys/arch/emips/ebus/if_le_ebus.c
938
cp = mtod(n, uint8_t *);
sys/arch/emips/ebus/if_le_ebus.c
945
memcpy(cp, mtod(m, void *), len);
sys/arch/evbmips/isa/isadma_bounce.c
450
memcpy(mtod(m, char *) + moff,
sys/arch/hppa/hppa/in_cksum.c
92
w = mtod(m, u_char *);
sys/arch/m68k/m68k/cpu_in_cksum.c
71
data = mtod(m, uint8_t *) + off;
sys/arch/m68k/m68k/cpu_in_cksum.c
86
data = mtod(m, uint8_t *);
sys/arch/mac68k/dev/if_ae.c
138
data = mtod(m, u_char *);
sys/arch/mac68k/dev/if_mc.c
403
u_char *data = mtod(m, u_char *);
sys/arch/mac68k/dev/if_mc.c
638
memcpy(mtod(m, void *), pkt, len);
sys/arch/mac68k/nubus/if_netdock_nubus.c
595
u_char *data = mtod(m, u_char *);
sys/arch/mac68k/nubus/if_netdock_nubus.c
814
data = mtod(m, u_char *);
sys/arch/macppc/dev/am79c950.c
400
u_char *data = mtod(m, u_char *);
sys/arch/macppc/dev/am79c950.c
632
memcpy(mtod(m, void *), pkt, len);
sys/arch/macppc/dev/if_bm.c
620
memcpy(buff, mtod(m, void *), len);
sys/arch/macppc/dev/if_bm.c
667
memcpy(mtod(m, void *), pkt, len);
sys/arch/macppc/dev/if_gm.c
435
memcpy(mtod(m, void *), pkt, len);
sys/arch/macppc/dev/if_gm.c
509
memcpy(buff, mtod(m, void *), len);
sys/arch/mips/adm5120/dev/if_admsw.c
604
m_copydata(m0, 0, m0->m_pkthdr.len, mtod(m, void *));
sys/arch/mips/adm5120/dev/if_admsw.c
609
memset(mtod(m, uint8_t *) + m->m_pkthdr.len, 0,
sys/arch/mips/adm5120/dev/if_admsw.c
648
eh = mtod(m0, struct ether_header *);
sys/arch/mips/alchemy/dev/if_aumac.c
710
memcpy(mtod(m, void *),
sys/arch/mips/atheros/dev/if_ae.c
1110
memcpy(mtod(m, void *), mtod(rxs->rxs_mbuf, void *), len);
sys/arch/mips/atheros/dev/if_ae.c
589
if (((mtod(m0, uintptr_t) & 3) != 0) ||
sys/arch/mips/atheros/dev/if_ae.c
608
m_copydata(m0, 0, m0->m_pkthdr.len, mtod(m, void *));
sys/arch/mips/mips/in_cksum.c
259
w.c = mtod(m, u_char *) + off;
sys/arch/mips/mips/in_cksum.c
298
u.ipov.ih_src = mtod(m, struct ip *)->ip_src;
sys/arch/mips/mips/in_cksum.c
299
u.ipov.ih_dst = mtod(m, struct ip *)->ip_dst;
sys/arch/mips/ralink/ralink_eth.c
1214
m_copydata(m0, 0, m0->m_pkthdr.len, mtod(m, void *));
sys/arch/mips/ralink/ralink_eth.c
1515
struct ether_header *eh = mtod(m, struct ether_header *);
sys/arch/mips/ralink/ralink_eth.c
1522
unsigned char * s = mtod(m, unsigned char *);
sys/arch/mips/ralink/ralink_eth.c
1540
struct ether_header *eh = mtod(m, struct ether_header *);
sys/arch/mips/ralink/ralink_eth.c
1547
unsigned char * s = mtod(m, unsigned char *);
sys/arch/mips/sibyte/dev/sbmac.c
530
d->sbdma_dscrtable[dsc].dscr_a = KVTOPHYS(mtod(m_new, void *)) |
sys/arch/mips/sibyte/dev/sbmac.c
609
d->sbdma_dscrtable[dsc].dscr_a = KVTOPHYS(mtod(m, void *)) |
sys/arch/mips/sibyte/dev/sbmac.c
619
(mtod(m, uintptr_t) & 0x0000001F))) |
sys/arch/mips/sibyte/dev/sbmac.c
637
addr = KVTOPHYS(mtod(m_temp, void *));
sys/arch/mips/sibyte/dev/sbmac.c
651
KVTOPHYS(mtod(m_temp, char *) + len)) {
sys/arch/mips/sibyte/dev/sbmac.c
693
addr = KVTOPHYS(mtod(m_temp, char *) + len);
sys/arch/mips/sibyte/dev/sbmac.c
744
m_copydata(m, 0, m->m_pkthdr.len, mtod(m_new, void *));
sys/arch/mips/sibyte/dev/sbmac.c
759
d->sbdma_dscrtable[dsc].dscr_a = KVTOPHYS(mtod(m_new,void *)) |
sys/arch/newsmips/apbus/if_sn.c
1107
memcpy(mtod(m, void *), pkt, (unsigned) len);
sys/arch/newsmips/apbus/if_sn.c
531
u_char *data = mtod(m, u_char *);
sys/arch/next68k/dev/if_xe.c
459
memcpy(p, mtod(m, u_char *), m->m_len);
sys/arch/next68k/dev/mb8795.c
306
device_xname(sc->sc_dev), mtod(m,u_char *),
sys/arch/next68k/dev/mb8795.c
307
mtod(m,u_char *) + m->m_len, m->m_len));
sys/arch/next68k/dev/mb8795.c
309
mb8795_hex_dump(mtod(m,u_char *),
sys/arch/next68k/dev/mb8795.c
312
mb8795_hex_dump(mtod(m,u_char *),
sys/arch/playstation2/dev/if_smap.c
381
memcpy(mtod(m, void *), (void *)sc->rx_buf, sz);
sys/arch/playstation2/dev/if_smap.c
492
memcpy(p, mtod(m, void *), m->m_len);
sys/arch/powerpc/booke/dev/pq3etsec.c
1590
struct rxfcb fcb = *mtod(m, struct rxfcb *);
sys/arch/powerpc/booke/dev/pq3etsec.c
1644
mtod(rxq->rxq_mconsumer, int *)[0],
sys/arch/powerpc/booke/dev/pq3etsec.c
1645
mtod(rxq->rxq_mconsumer, int *)[1],
sys/arch/powerpc/booke/dev/pq3etsec.c
1646
mtod(rxq->rxq_mconsumer, int *)[2],
sys/arch/powerpc/booke/dev/pq3etsec.c
1647
mtod(rxq->rxq_mconsumer, int *)[3]);
sys/arch/powerpc/booke/dev/pq3etsec.c
2116
*mtod(m, struct txfcb *) = fcb;
sys/arch/powerpc/ibm4xx/dev/if_emac.c
1030
eh = mtod(m0, const struct ether_header *);
sys/arch/powerpc/ibm4xx/dev/if_emac.c
1037
ip = (const struct ip *)(mtod(m0, const char *) +
sys/arch/powerpc/ibm4xx/dev/if_emac.c
1057
(mtod(m0, const char *) + sizeof(*eh));
sys/arch/powerpc/ibm4xx/dev/if_emac.c
1113
eh = mtod(m, const struct ether_header *);
sys/arch/powerpc/ibm4xx/dev/if_emac.c
1119
ip = (const struct ip *)(mtod(m, const char *) +
sys/arch/powerpc/ibm4xx/dev/if_emac.c
1156
ip6 = (const struct ip6_hdr *)(mtod(m, const char *) +
sys/arch/powerpc/ibm4xx/dev/if_emac.c
2456
memcpy(mtod(m, void *),
sys/arch/powerpc/ibm4xx/dev/if_emac.c
2457
mtod(rxs->rxs_mbuf, void *), len);
sys/arch/powerpc/ibm4xx/dev/if_emac.c
896
eh = mtod(m0, const struct ether_header *);
sys/arch/powerpc/ibm4xx/dev/if_emac.c
902
ip = (const struct ip *)(mtod(m0, const char *) +
sys/arch/powerpc/ibm4xx/dev/if_emac.c
931
ip6 = (const struct ip6_hdr *)(mtod(m0, const char *) +
sys/arch/powerpc/isa/isadma_machdep.c
558
memcpy(mtod(m, char *) + moff,
sys/arch/powerpc/powerpc/in_cksum.c
261
u.ipov.ih_src = mtod(m, struct ip *)->ip_src;
sys/arch/powerpc/powerpc/in_cksum.c
262
u.ipov.ih_dst = mtod(m, struct ip *)->ip_dst;
sys/arch/powerpc/powerpc/in_cksum.c
78
w = mtod(m, uint8_t *) + off;
sys/arch/riscv/riscv/bus_dma.c
987
vaddr_t va = mtod(m, vaddr_t) + voff;
sys/arch/sgimips/hpc/if_sq.c
611
m_copydata(m0, 0, m0->m_pkthdr.len, mtod(m, void *));
sys/arch/sgimips/hpc/if_sq.c
613
memset(mtod(m, char *) + m0->m_pkthdr.len, 0,
sys/arch/sgimips/mace/if_mec.c
1151
m_copydata(m0, 0, len, mtod(m, void *));
sys/arch/sgimips/mace/if_mec.c
1722
memcpy(mtod(m, void *), rxd->rxd_buf, MEC_ETHER_ALIGN + len);
sys/arch/sgimips/mace/if_mec.c
1764
eh = mtod(m, struct ether_header *);
sys/arch/sparc/sparc/cpu_in_cksum.c
217
w = mtod(m, uint8_t *) + off;
sys/arch/sparc64/sparc64/machdep.c
1078
vaddr_t vaddr = mtod(m, vaddr_t);
sys/arch/sun2/dev/if_ec.c
330
ec_copyout(sc, mtod(m, uint8_t *), ECREG_TBUF + off, m->m_len);
sys/arch/sun2/dev/if_ec.c
507
ec_copyin(sc, mtod(m, uint8_t *), buf, length);
sys/arch/sun3/dev/if_ie.c
828
memcpy(mtod(m, void *), &eh, sizeof(struct ether_header));
sys/arch/sun3/dev/if_ie.c
843
(sc->sc_memcpy)(mtod(m, char *) + thismboff,
sys/arch/sun3/dev/if_ie.c
904
struct ether_header *eh = mtod(m, struct ether_header *);
sys/arch/sun3/dev/if_ie.c
984
(sc->sc_memcpy)(buffer, mtod(m, void *), m->m_len);
sys/arch/usermode/dev/if_veth.c
234
memcpy(mtod(m, void *), sc->sc_rx_buf, len);
sys/arch/x68k/dev/intio.c
759
memcpy(mtod(m, char *) + moff,
sys/arch/x86/x86/bus_dma.c
922
memcpy(mtod(m, char *) + moff,
sys/arch/xen/xen/if_xennet_xenbus.c
1261
req->txreq_id, m, mtod(m, void *), m->m_pkthdr.len));
sys/arch/xen/xen/if_xennet_xenbus.c
1264
xennet_hex_dump(mtod(m, u_char *), m->m_pkthdr.len, "s",
sys/arch/xen/xen/xennet_checksum.c
64
return mtod(m, char *) + off;
sys/compat/common/rtsock_70.c
92
mtod(m, struct ifa_msghdr70 *)->ifam_addrs = info.rti_addrs;
sys/compat/common/uipc_syscalls_43.c
250
struct cmsghdr *cmsg = mtod(control, struct cmsghdr *);
sys/compat/common/uipc_syscalls_43.c
268
mtod(from, struct osockaddr *)->sa_family =
sys/compat/common/uipc_syscalls_43.c
269
mtod(from, struct sockaddr *)->sa_family;
sys/compat/common/uipc_syscalls_43.c
323
cmsg = mtod(ctl, struct cmsghdr *);
sys/compat/common/uipc_syscalls_43.c
371
sa = mtod(nam, struct sockaddr *);
sys/compat/common/uipc_syscalls_43.c
372
osa = mtod(nam, struct osockaddr *);
sys/compat/linux/common/linux_socket.c
1972
mtod(from, struct osockaddr *)->sa_family =
sys/compat/linux/common/linux_socket.c
1973
bsd_to_linux_domain(mtod(from,
sys/compat/linux/common/linux_socket.c
517
control = mtod(ctl_mbuf, void *);
sys/compat/linux/common/linux_socket.c
551
if (control != mtod(ctl_mbuf, void *))
sys/compat/linux/common/linux_socket.c
627
ktrkuser("mbcontrol", mtod(ctl_mbuf, void *),
sys/compat/linux/common/linux_socket.c
638
if (control != NULL && control != mtod(ctl_mbuf, void *))
sys/compat/linux/common/linux_socket.c
690
ktrkuser("msgcontrol", mtod(control, void *), mp->msg_controllen);
sys/compat/linux/common/linux_socket.c
696
cmsg = mtod(m, struct cmsghdr *);
sys/compat/linux/common/linux_socket.c
804
mtod(from, struct osockaddr *)->sa_family =
sys/compat/linux/common/linux_socket.c
805
bsd_to_linux_domain(mtod(from, struct sockaddr *)->sa_family);
sys/compat/netbsd32/netbsd32_compat_43.c
469
struct cmsghdr *cmsg = mtod(control, void *);
sys/compat/netbsd32/netbsd32_compat_43.c
488
mtod(from, struct osockaddr *)->sa_family =
sys/compat/netbsd32/netbsd32_compat_43.c
489
mtod(from, struct sockaddr *)->sa_family;
sys/compat/netbsd32/netbsd32_compat_43.c
539
sa = mtod(nam, void *);
sys/compat/netbsd32/netbsd32_compat_43.c
540
osa = mtod(nam, void *);
sys/compat/netbsd32/netbsd32_socket.c
395
control = mtod(ctl_mbuf, void *);
sys/compat/netbsd32/netbsd32_socket.c
475
if (control != mtod(ctl_mbuf, void *))
sys/compat/netbsd32/netbsd32_socket.c
85
cmsg = mtod(m, struct cmsghdr *);
sys/compat/netbsd32/netbsd32_socket.c
87
if ((char *)cmsg == mtod(m, char *) + m->m_len)
sys/compat/netbsd32/netbsd32_socket.c
89
if ((char *)cmsg > mtod(m, char *) + m->m_len - sizeof(*cmsg))
sys/crypto/aes/aes_ccm_mbuf.c
56
p = mtod(m, uint8_t *) + off;
sys/crypto/aes/aes_ccm_mbuf.c
83
p = mtod(m, uint8_t *) + off;
sys/crypto/aes/aes_ccm_mbuf.c
99
p = mtod(m, uint8_t *) + off;
sys/dev/bi/if_ni.c
538
bdp->nb_status = (mtod(m0, uint32_t) & NIBD_OFFSET) |
sys/dev/bi/if_ni.c
540
bdp->nb_pte = (uint32_t)kvtopte(mtod(m0, void *));
sys/dev/bluetooth/bcsp.c
1016
hdrp = mtod(m, bcsp_hdr_t *);
sys/dev/bluetooth/bcsp.c
1076
*(mtod(m, uint8_t *)) = HCI_EVENT_PKT;
sys/dev/bluetooth/bcsp.c
1084
*(mtod(m, uint8_t *)) = HCI_ACL_DATA_PKT;
sys/dev/bluetooth/bcsp.c
1092
*(mtod(m, uint8_t *)) = HCI_SCO_DATA_PKT;
sys/dev/bluetooth/bcsp.c
1152
hdrp = mtod(m, bcsp_hdr_t *);
sys/dev/bluetooth/bcsp.c
1223
hdrp = mtod(m, bcsp_hdr_t *);
sys/dev/bluetooth/bcsp.c
1344
*(mtod(m, uint8_t *)) = HCI_SCO_DATA_PKT;
sys/dev/bluetooth/bcsp.c
1389
hdrp = mtod(m, bcsp_hdr_t *);
sys/dev/bluetooth/bcsp.c
1511
rcvpkt = mtod(m, uint32_t *);
sys/dev/bluetooth/bcsp.c
1802
p = mtod(m, uint8_t *);
sys/dev/bluetooth/bcsp.c
514
rptr = mtod(m, uint8_t *);
sys/dev/bluetooth/bcsp.c
557
rptr = mtod(m, uint8_t *);
sys/dev/bluetooth/bcsp.c
704
mtod(m, uint8_t *)[m->m_len++] =
sys/dev/bluetooth/bcsp.c
707
mtod(m, uint8_t *)[m->m_len++] =
sys/dev/bluetooth/bcsp.c
717
mtod(m, uint8_t *)[m->m_len++] = c;
sys/dev/bluetooth/bcsp.c
744
bcsp_hdr_t *hdrp = mtod(m, bcsp_hdr_t *);
sys/dev/bluetooth/bcsp.c
764
buf = mtod(_m, uint8_t *);
sys/dev/bluetooth/bcsp.c
783
bcsp_hdr_t *hdrp = mtod(m, bcsp_hdr_t *);
sys/dev/bluetooth/bcsp.c
823
buf = mtod(m, uint8_t *);
sys/dev/bluetooth/bcsp.c
903
hdrp = mtod(m, bcsp_hdr_t *);
sys/dev/bluetooth/bcsp.c
931
hdrp = mtod(m, bcsp_hdr_t *);
sys/dev/bluetooth/bcsp.c
952
hdrp = mtod(m, bcsp_hdr_t *);
sys/dev/bluetooth/bcsp.c
970
bcsp_hdr_t *hdrp = mtod(m, bcsp_hdr_t *);
sys/dev/bluetooth/bth5.c
1003
hdrp = mtod(m, bth5_hdr_t *);
sys/dev/bluetooth/bth5.c
1021
bth5_hdr_t *hdrp = mtod(m, bth5_hdr_t *);
sys/dev/bluetooth/bth5.c
1070
hdrp = mtod(m, bth5_hdr_t *);
sys/dev/bluetooth/bth5.c
1133
*(mtod(m, uint8_t *)) = HCI_CMD_PKT;
sys/dev/bluetooth/bth5.c
1141
*(mtod(m, uint8_t *)) = HCI_EVENT_PKT;
sys/dev/bluetooth/bth5.c
1149
*(mtod(m, uint8_t *)) = HCI_ACL_DATA_PKT;
sys/dev/bluetooth/bth5.c
1157
*(mtod(m, uint8_t *)) = HCI_SCO_DATA_PKT;
sys/dev/bluetooth/bth5.c
1213
hdrp = mtod(m, bth5_hdr_t *);
sys/dev/bluetooth/bth5.c
1267
hdrp = mtod(m, bth5_hdr_t *);
sys/dev/bluetooth/bth5.c
1392
*(mtod(m, uint8_t *)) = HCI_SCO_DATA_PKT;
sys/dev/bluetooth/bth5.c
1437
hdrp = mtod(m, bth5_hdr_t *);
sys/dev/bluetooth/bth5.c
1556
rcvpkt = mtod(m, uint16_t *);
sys/dev/bluetooth/bth5.c
1869
p = mtod(m, uint8_t *);
sys/dev/bluetooth/bth5.c
516
rptr = mtod(m, uint8_t *);
sys/dev/bluetooth/bth5.c
567
rptr = mtod(m, uint8_t *);
sys/dev/bluetooth/bth5.c
740
mtod(m, uint8_t *)[m->m_len++] =
sys/dev/bluetooth/bth5.c
744
mtod(m, uint8_t *)[m->m_len++] =
sys/dev/bluetooth/bth5.c
748
mtod(m, uint8_t *)[m->m_len++] =
sys/dev/bluetooth/bth5.c
751
mtod(m, uint8_t *)[m->m_len++] =
sys/dev/bluetooth/bth5.c
761
mtod(m, uint8_t *)[m->m_len++] = c;
sys/dev/bluetooth/bth5.c
788
bth5_hdr_t *hdrp = mtod(m, bth5_hdr_t *);
sys/dev/bluetooth/bth5.c
808
buf = mtod(_m, uint8_t *);
sys/dev/bluetooth/bth5.c
827
bth5_hdr_t *hdrp = mtod(m, bth5_hdr_t *);
sys/dev/bluetooth/bth5.c
867
buf = mtod(m, uint8_t *);
sys/dev/bluetooth/bth5.c
948
hdrp = mtod(m, bth5_hdr_t *);
sys/dev/bluetooth/bth5.c
976
hdrp = mtod(m, bth5_hdr_t *);
sys/dev/bluetooth/bthidev.c
1016
mtod(m, uint8_t *)[0] = (uint8_t)((BTHID_DATA << 4) | BTHID_DATA_OUTPUT);
sys/dev/bluetooth/bthidev.c
1017
mtod(m, uint8_t *)[1] = hidev->sc_id;
sys/dev/bluetooth/bthidev.c
1018
memcpy(mtod(m, uint8_t *) + 2, report, rlen);
sys/dev/bluetooth/bthidev.c
634
data = mtod(m, uint8_t *);
sys/dev/bluetooth/btmagic.c
1093
data = mtod(m, uint8_t *);
sys/dev/bluetooth/btmagic.c
784
memcpy(mtod(m, uint8_t *), data, len);
sys/dev/bluetooth/btuart.c
389
mtod(m, uint8_t *)[m->m_len++] = c;
sys/dev/bluetooth/btuart.c
433
sc->sc_want = mtod(m, hci_acldata_hdr_t *)->length;
sys/dev/bluetooth/btuart.c
439
sc->sc_want = mtod(m, hci_scodata_hdr_t *)->length;
sys/dev/bluetooth/btuart.c
444
sc->sc_want = mtod(m, hci_event_hdr_t *)->length;
sys/dev/bluetooth/btuart.c
512
rptr = mtod(m, uint8_t *);
sys/dev/bluetooth/btuart.c
530
rptr = mtod(m, uint8_t *);
sys/dev/cadence/if_cemac.c
356
if (mtod(m, intptr_t) & 3)
sys/dev/cadence/if_cemac.c
357
m_adj(m, mtod(m, intptr_t) & 3);
sys/dev/cadence/if_cemac.c
576
if (mtod(m, intptr_t) & 3) {
sys/dev/cadence/if_cemac.c
577
m_adj(m, mtod(m, intptr_t) & 3);
sys/dev/cadence/if_cemac.c
910
m_copydata(m, 0, m->m_pkthdr.len, mtod(mn, void *));
sys/dev/hyperv/if_hvn.c
1282
eh = mtod(m, const struct ether_header *);
sys/dev/hyperv/if_hvn.c
1297
ip = (struct ip *)((mtod(m, uint8_t *)) + off);
sys/dev/hyperv/if_hvn.c
1318
csump = (uint16_t *)(mtod(m, uint8_t *) + off +
sys/dev/hyperv/if_hvn.c
1337
ip6 = (struct ip6_hdr *)((mtod(m, uint8_t *)) + l2hlen);
sys/dev/hyperv/if_hvn.c
1488
evl = mtod(m, struct ether_vlan_header *);
sys/dev/hyperv/if_hvn.c
1502
eh = mtod(m, struct ether_header *);
sys/dev/hyperv/if_hvn.c
1699
eh = mtod(m, struct ether_header *);
sys/dev/hyperv/if_hvn.c
4837
evl = mtod(m, struct ether_vlan_header *);
sys/dev/ic/aic6915.c
416
m_copydata(m0, 0, m0->m_pkthdr.len, mtod(m, void *));
sys/dev/ic/aic6915.c
779
memcpy(mtod(m, void *), mtod(ds->ds_mbuf, void *), len);
sys/dev/ic/an.c
1344
uint8_t *pkt = mtod(m, uint8_t *);
sys/dev/ic/an.c
1511
wh = mtod(m, struct ieee80211_frame_min *);
sys/dev/ic/an.c
1763
if ((mtod(m, u_long) & 0x1) || (len & 0x1)) {
sys/dev/ic/an.c
1772
CSR_WRITE_MULTI_STREAM_2(sc, AN_DATA0, mtod(m, u_int16_t *),
sys/dev/ic/an.c
756
eh = mtod(m, struct ether_header *);
sys/dev/ic/an.c
767
wh = mtod(m, struct ieee80211_frame *);
sys/dev/ic/an.c
776
if (mtod(m, u_long) & 0x01)
sys/dev/ic/an.c
777
memcpy(mtod(m, void *), &len, sizeof(len));
sys/dev/ic/an.c
779
*mtod(m, u_int16_t *) = len;
sys/dev/ic/arn5008.c
1100
wh = mtod(m, struct ieee80211_frame *);
sys/dev/ic/arn5008.c
1167
wh = mtod(m, struct ieee80211_frame *);
sys/dev/ic/arn5008.c
1326
wh = mtod(m, struct ieee80211_frame *);
sys/dev/ic/arn5008.c
1353
wh = mtod(m, struct ieee80211_frame *);
sys/dev/ic/arn5008.c
1451
m_copydata(m, 0, m->m_pkthdr.len, mtod(m1, void *));
sys/dev/ic/arn5008.c
1469
wh = mtod(m, struct ieee80211_frame *);
sys/dev/ic/arn5008.c
637
mtod(bf->bf_m, void *), ATHN_RXBUFSZ, NULL,
sys/dev/ic/arn5008.c
851
wh = mtod(m, struct ieee80211_frame *);
sys/dev/ic/arn5008.c
881
error = bus_dmamap_load(sc->sc_dmat, bf->bf_map, mtod(m1, void *),
sys/dev/ic/arn5008.c
888
mtod(bf->bf_m, void *), ATHN_RXBUFSZ, NULL,
sys/dev/ic/arn5008.c
911
wh = mtod(m, struct ieee80211_frame *);
sys/dev/ic/arn9003.c
1012
error = bus_dmamap_load(sc->sc_dmat, bf->bf_map, mtod(m1, void *),
sys/dev/ic/arn9003.c
1019
mtod(bf->bf_m, void *), ATHN_RXBUFSZ, NULL,
sys/dev/ic/arn9003.c
1026
bf->bf_desc = mtod(m1, struct ar_rx_status *);
sys/dev/ic/arn9003.c
1041
wh = mtod(m, struct ieee80211_frame *);
sys/dev/ic/arn9003.c
1246
wh = mtod(m, struct ieee80211_frame *);
sys/dev/ic/arn9003.c
1325
wh = mtod(m, struct ieee80211_frame *);
sys/dev/ic/arn9003.c
1479
wh = mtod(m, struct ieee80211_frame *);
sys/dev/ic/arn9003.c
1506
wh = mtod(m, struct ieee80211_frame *);
sys/dev/ic/arn9003.c
1604
m_copydata(m, 0, m->m_pkthdr.len, mtod(m1, void *));
sys/dev/ic/arn9003.c
1622
wh = mtod(m, struct ieee80211_frame *);
sys/dev/ic/arn9003.c
2733
memset(mtod(m, void *), 0, TONE_LEN);
sys/dev/ic/arn9003.c
2734
wh = mtod(m, struct ieee80211_frame *);
sys/dev/ic/arn9003.c
780
mtod(bf->bf_m, void *), ATHN_RXBUFSZ, NULL,
sys/dev/ic/arn9003.c
788
ds = mtod(bf->bf_m, struct ar_rx_status *);
sys/dev/ic/arn9003.c
956
ds = mtod(bf->bf_m, struct ar_rx_status *);
sys/dev/ic/arn9003.c
982
wh = mtod(m, struct ieee80211_frame *);
sys/dev/ic/ath.c
1376
eh = mtod(m, struct ether_header *);
sys/dev/ic/ath.c
1442
wh = mtod(m, struct ieee80211_frame *);
sys/dev/ic/ath.c
3160
mtod(m, struct ieee80211_frame *),
sys/dev/ic/ath.c
3244
ieee80211_dump_pkt(mtod(m, void *), len,
sys/dev/ic/ath.c
3257
mtod(m, const struct ieee80211_frame_min *),
sys/dev/ic/ath.c
3522
memcpy(mtod(m, char *) + m->m_len, mtod(n, void *),
sys/dev/ic/ath.c
3544
bcopy(mtod(n, void *), mtod(m, void *), n->m_len);
sys/dev/ic/ath.c
3545
bcopy(mtod(n2, void *), mtod(m, char *) + n->m_len,
sys/dev/ic/ath.c
3631
wh = mtod(m0, struct ieee80211_frame *);
sys/dev/ic/ath.c
3679
wh = mtod(m0, struct ieee80211_frame *);
sys/dev/ic/ath.c
3980
ieee80211_dump_pkt(mtod(m0, void *), m0->m_len,
sys/dev/ic/athn.c
2666
eh = mtod(m, struct ether_header *);
sys/dev/ic/atw.c
3253
wh = mtod(m, struct ieee80211_frame_min *);
sys/dev/ic/atw.c
3562
mtod(m0, struct ether_header *)->ether_dhost);
sys/dev/ic/atw.c
3576
whm = mtod(m0, struct ieee80211_frame_min *);
sys/dev/ic/atw.c
3640
hh = mtod(m0, struct atw_frame *);
sys/dev/ic/atw.c
3749
m_copydata(m0, 0, m0->m_pkthdr.len, mtod(m, void *));
sys/dev/ic/awi.c
1085
wh = mtod(m, struct ieee80211_frame_min *);
sys/dev/ic/awi.c
1164
awi_read_bytes(sc, off, mtod(m, uint8_t *) + m->m_len, tlen);
sys/dev/ic/awi.c
1201
awi_read_bytes(sc, off, mtod(m, uint8_t *), m->m_len);
sys/dev/ic/awi.c
1983
eh = mtod(m, struct ether_header *);
sys/dev/ic/awi.c
1987
wh = mtod(m, struct ieee80211_frame *);
sys/dev/ic/awi.c
2024
memcpy(&wh, mtod(m, void *), sizeof(wh));
sys/dev/ic/awi.c
2027
memcpy(&eh, mtod(m, char *) + sizeof(wh), sizeof(eh));
sys/dev/ic/awi.c
2032
memcpy(mtod(m, void *), &wh, sizeof(wh));
sys/dev/ic/awi.c
2033
llc = (struct llc *)(mtod(m, char *) + sizeof(wh));
sys/dev/ic/awi.c
675
eh = mtod(m0, struct ether_header *);
sys/dev/ic/awi.c
691
wh = mtod(m0, struct ieee80211_frame *);
sys/dev/ic/awi.c
732
awi_write_bytes(sc, frame + len, mtod(m, uint8_t *),
sys/dev/ic/bwfm.c
2149
struct bwfm_event *e = mtod(m, struct bwfm_event *);
sys/dev/ic/bwfm.c
2186
struct bwfm_event *e = mtod(m, void *);
sys/dev/ic/bwi.c
7523
eh = mtod(m, struct ether_header *);
sys/dev/ic/bwi.c
7573
wh = mtod(m, struct ieee80211_frame *);
sys/dev/ic/bwi.c
8778
hdr = mtod(rxbuf->rb_mbuf, struct bwi_rxbuf_hdr *);
sys/dev/ic/bwi.c
8877
hdr = mtod(m, struct bwi_rxbuf_hdr *);
sys/dev/ic/bwi.c
8935
wh = mtod(m, struct ieee80211_frame_min *);
sys/dev/ic/bwi.c
8993
CSR_READ_MULTI_4(sc, BWI_PIO_RXDATA(qid), mtod(m, uint32_t *),
sys/dev/ic/bwi.c
9002
ppkt = mtod(m, uint8_t *) + (buflen & ~0x3);
sys/dev/ic/bwi.c
9009
plcp = mtod(m, uint8_t *) + hdr_extra;
sys/dev/ic/bwi.c
9050
wh = mtod(m, struct ieee80211_frame_min *);
sys/dev/ic/bwi.c
9643
wh = mtod(m, struct ieee80211_frame *);
sys/dev/ic/bwi.c
9715
hdr = mtod(m, struct bwi_txbuf_hdr *);
sys/dev/ic/bwi.c
9806
m_copydata(m, 0, m->m_pkthdr.len, mtod(m_new, void *));
sys/dev/ic/bwi.c
9836
p = mtod(m, const uint8_t *);
sys/dev/ic/cs89x0.c
1740
pBuff = mtod(m, uint16_t *);
sys/dev/ic/cs89x0.c
1813
pBuff = mtod(m, uint16_t *);
sys/dev/ic/cs89x0.c
2024
p = mtod(m, uint8_t *);
sys/dev/ic/dm9000.c
1013
buf = mtod(m, uint16_t*);
sys/dev/ic/dm9000.c
1110
buf = mtod(m, uint8_t *);
sys/dev/ic/dp8390.c
1046
src = (*sc->ring_copy)(sc, src, mtod(m, void *), len);
sys/dev/ic/dp8390.c
1156
data = mtod(m, uint8_t *);
sys/dev/ic/dp83932.c
353
m_copydata(m0, 0, m0->m_pkthdr.len, mtod(m, void *));
sys/dev/ic/dp83932.c
808
memcpy(mtod(m, void *), mtod(ds->ds_mbuf, void *),
sys/dev/ic/dp83932.c
830
memcpy(mtod(m, void *), mtod(ds->ds_mbuf, void *),
sys/dev/ic/elink3.c
1188
if (mtod(m, u_long) & 3) {
sys/dev/ic/elink3.c
1190
4 - (mtod(m, u_long) & 3);
sys/dev/ic/elink3.c
1192
txreg, mtod(m, u_int8_t *), count);
sys/dev/ic/elink3.c
1194
(void *)(mtod(m, u_long) + count);
sys/dev/ic/elink3.c
1198
txreg, mtod(m, u_int32_t *), m->m_len >> 2);
sys/dev/ic/elink3.c
1199
m->m_data = (void *)(mtod(m, u_long) +
sys/dev/ic/elink3.c
1205
txreg, mtod(m, u_int8_t *), m->m_len);
sys/dev/ic/elink3.c
1212
if (mtod(m, u_long) & 1) {
sys/dev/ic/elink3.c
1214
txreg, *(mtod(m, u_int8_t *)));
sys/dev/ic/elink3.c
1216
(void *)(mtod(m, u_long) + 1);
sys/dev/ic/elink3.c
1220
txreg, mtod(m, u_int16_t *),
sys/dev/ic/elink3.c
1225
*(mtod(m, u_int8_t *) + m->m_len - 1));
sys/dev/ic/elink3.c
1591
offset = mtod(m, u_long);
sys/dev/ic/elinkxl.c
1098
mtod(mn, void *));
sys/dev/ic/gem.c
1444
m_copydata(m0, 0, m0->m_pkthdr.len, mtod(m, void *));
sys/dev/ic/gem.c
1509
eh = mtod(m0, struct ether_header *);
sys/dev/ic/gem.c
1857
eh = (struct ether_header *) (mtod(m, char *) +
sys/dev/ic/gem.c
1861
eh = mtod(m, struct ether_header *);
sys/dev/ic/hd64570.c
1103
memcpy(buf, mtod(m, u_int8_t *), m->m_len);
sys/dev/ic/hd64570.c
1107
mtod(m, u_int8_t *), m->m_len);
sys/dev/ic/hd64570.c
1582
hdlc = mtod(m, struct hdlc_header *);
sys/dev/ic/hd64570.c
1623
(mtod(m, u_int8_t *) + HDLC_HDRLEN);
sys/dev/ic/hd64570.c
1989
memcpy(mtod(m, void *), p, len);
sys/dev/ic/hd64570.c
1992
sca_page_addr(sc, p), mtod(m, u_int8_t *), len);
sys/dev/ic/hd64570.c
823
if ((mtod(m, struct ip *)->ip_tos & IPTOS_LOWDELAY)
sys/dev/ic/hd64570.c
834
hdlc = mtod(m, struct hdlc_header *);
sys/dev/ic/hd64570.c
847
hdlc = mtod(m, struct hdlc_header *);
sys/dev/ic/hme.c
675
memcpy(bp, mtod(m, void *), len);
sys/dev/ic/hme.c
729
memcpy(mtod(m, void *), bp, len);
sys/dev/ic/hme.c
754
eh = mtod(m0, struct ether_header *);
sys/dev/ic/hme.c
922
eh = mtod(m, struct ether_header *);
sys/dev/ic/i82557.c
1251
eh = mtod(m, struct ether_header *);
sys/dev/ic/i82557.c
1294
csum_data = be16dec(mtod(m, uint8_t *) + len);
sys/dev/ic/i82557.c
1432
memcpy(mtod(m0, void *),
sys/dev/ic/i82557.c
1433
mtod(m, void *), len);
sys/dev/ic/i82557.c
883
m_copydata(m0, 0, m0->m_pkthdr.len, mtod(m, void *));
sys/dev/ic/i82586.c
1024
struct ether_header *eh = mtod(m, struct ether_header *);
sys/dev/ic/i82586.c
1160
(sc->memcopyout)(sc, mtod(m,void *), buffer, m->m_len);
sys/dev/ic/i82586.c
945
memcpy(mtod(m, void *), &eh, sizeof(struct ether_header));
sys/dev/ic/i82586.c
960
(sc->memcopyin)(sc, mtod(m, char *) + thismboff,
sys/dev/ic/i82596.c
778
sc->sc_tx_mbuf[t]->m_pkthdr.len, mtod(m, void *));
sys/dev/ic/lan9118.c
1015
mtod(m, uint32_t *),
sys/dev/ic/lan9118.c
413
mtod(m, void *));
sys/dev/ic/lan9118.c
424
p = mtod(m, uint8_t *);
sys/dev/ic/lan9118.c
442
p = mtod(m, uint8_t *);
sys/dev/ic/lance.c
346
(*sc->sc_copytobuf)(sc, mtod(m, void *), boff, len);
sys/dev/ic/lance.c
396
(*sc->sc_copyfrombuf)(sc, mtod(m, void *), boff, len);
sys/dev/ic/lance.c
446
eh = mtod(m, struct ether_header *);
sys/dev/ic/lemac.c
279
mtod(m, char *) + sizeof(eh));
sys/dev/ic/lemac.c
283
(void *)(mtod(m, char *) + sizeof(eh)));
sys/dev/ic/malo.c
1041
eh = mtod(m0, struct ether_header *);
sys/dev/ic/malo.c
1414
wh = mtod(m0, struct ieee80211_frame *);
sys/dev/ic/malo.c
1424
wh = mtod(m0, struct ieee80211_frame *);
sys/dev/ic/malo.c
1459
*mtod(mnew, uint16_t *) = htole16(m0->m_pkthdr.len - 24); /* FW len */
sys/dev/ic/malo.c
1460
memmove(mtod(mnew, char*) + 2, wh, sizeof(*wh));
sys/dev/ic/malo.c
1461
memset(mtod(mnew, char*) + 26, 0, 6);
sys/dev/ic/malo.c
1463
mtod(mnew, char*) + 32);
sys/dev/ic/malo.c
1566
mtod(mnew, void *), MCLBYTES, NULL, BUS_DMA_NOWAIT);
sys/dev/ic/malo.c
1571
mtod(data->m, void *), MCLBYTES, NULL,
sys/dev/ic/malo.c
1618
wh = mtod(m, struct ieee80211_frame *);
sys/dev/ic/malo.c
643
mtod(data->m, void *), MCLBYTES, NULL, BUS_DMA_NOWAIT);
sys/dev/ic/mb86950.c
610
data = mtod(m, u_short *);
sys/dev/ic/mb86950.c
898
mtod(m, u_int16_t *), (len + 1) >> 1);
sys/dev/ic/mb86960.c
1318
mtod(m, uint8_t *), len);
sys/dev/ic/mb86960.c
1321
mtod(m, uint16_t *), (len + 1) >> 1);
sys/dev/ic/mb86960.c
1446
mtod(m, uint8_t *), m->m_len);
sys/dev/ic/mb86960.c
1461
data = mtod(m, uint8_t *);
sys/dev/ic/mtd803.c
448
memcpy(buf, mtod(m, void *), len);
sys/dev/ic/mtd803.c
613
memcpy(mtod(m, void *), buf, len);
sys/dev/ic/mx98905.c
206
data = mtod(m, u_int8_t *);
sys/dev/ic/ne2000.c
601
NE2000_ASIC_DATA, mtod(m, uint8_t *),
sys/dev/ic/ne2000.c
625
data = mtod(m, uint8_t *);
sys/dev/ic/rt2560.c
1293
mtod(mnew, void *), MCLBYTES, NULL, BUS_DMA_NOWAIT);
sys/dev/ic/rt2560.c
1299
mtod(data->m, void *), MCLBYTES, NULL,
sys/dev/ic/rt2560.c
1349
wh = mtod(m, struct ieee80211_frame *);
sys/dev/ic/rt2560.c
1772
wh = mtod(m0, struct ieee80211_frame *);
sys/dev/ic/rt2560.c
1782
wh = mtod(m0, struct ieee80211_frame *);
sys/dev/ic/rt2560.c
1809
wh = mtod(m0, struct ieee80211_frame *);
sys/dev/ic/rt2560.c
1862
rts = mtod(m, struct ieee80211_frame_rts *);
sys/dev/ic/rt2560.c
1892
wh = mtod(m0, struct ieee80211_frame *);
sys/dev/ic/rt2560.c
1914
wh = mtod(m0, struct ieee80211_frame *);
sys/dev/ic/rt2560.c
2011
m_copydata(m0, 0, m0->m_pkthdr.len, mtod(mnew, void *));
sys/dev/ic/rt2560.c
2026
wh = mtod(m0, struct ieee80211_frame *);
sys/dev/ic/rt2560.c
2129
eh = mtod(m0, struct ether_header *);
sys/dev/ic/rt2560.c
734
mtod(data->m, void *), MCLBYTES, NULL, BUS_DMA_NOWAIT);
sys/dev/ic/rt2661.c
1081
mtod(mnew, void *), MCLBYTES, NULL, BUS_DMA_NOWAIT);
sys/dev/ic/rt2661.c
1087
mtod(data->m, void *), MCLBYTES, NULL,
sys/dev/ic/rt2661.c
1135
wh = mtod(m, struct ieee80211_frame *);
sys/dev/ic/rt2661.c
1506
wh = mtod(m0, struct ieee80211_frame *);
sys/dev/ic/rt2661.c
1515
wh = mtod(m0, struct ieee80211_frame *);
sys/dev/ic/rt2661.c
1593
rts = mtod(m, struct ieee80211_frame_rts *);
sys/dev/ic/rt2661.c
1622
wh = mtod(m0, struct ieee80211_frame *);
sys/dev/ic/rt2661.c
1641
wh = mtod(m0, struct ieee80211_frame *);
sys/dev/ic/rt2661.c
1748
m_copydata(m0, 0, m0->m_pkthdr.len, mtod(mnew, void *));
sys/dev/ic/rt2661.c
1762
wh = mtod(m0, struct ieee80211_frame *);
sys/dev/ic/rt2661.c
1856
eh = mtod(m0, struct ether_header *);
sys/dev/ic/rt2661.c
2964
mtod(m0, uint8_t *), m0->m_pkthdr.len);
sys/dev/ic/rt2661.c
618
mtod(data->m, void *), MCLBYTES, NULL, BUS_DMA_NOWAIT);
sys/dev/ic/rt2860.c
1375
mtod(m1, void *), MCLBYTES, NULL,
sys/dev/ic/rt2860.c
1383
mtod(data->m, void *), MCLBYTES, NULL,
sys/dev/ic/rt2860.c
1403
rxwi = mtod(m, struct rt2860_rxwi *);
sys/dev/ic/rt2860.c
1410
wh = mtod(m, struct ieee80211_frame *);
sys/dev/ic/rt2860.c
1423
wh = mtod(m, struct ieee80211_frame *);
sys/dev/ic/rt2860.c
1643
wh = mtod(m, struct ieee80211_frame *);
sys/dev/ic/rt2860.c
1654
wh = mtod(m, struct ieee80211_frame *);
sys/dev/ic/rt2860.c
1895
eh = mtod(m, struct ether_header *);
sys/dev/ic/rt2860.c
4249
mtod(m, uint8_t *), m->m_pkthdr.len);
sys/dev/ic/rt2860.c
783
mtod(data->m, void *), MCLBYTES, NULL,
sys/dev/ic/rtl8169.c
506
eh = mtod(m0, struct ether_header *);
sys/dev/ic/rtl8169.c
552
eh = mtod(m0, struct ether_header *);
sys/dev/ic/rtl81x9.c
1051
dst = mtod(m, void *);
sys/dev/ic/rtl81x9.c
1250
if ((mtod(m_head, uintptr_t) & 3) != 0 ||
sys/dev/ic/rtl81x9.c
1272
mtod(m_new, void *));
sys/dev/ic/rtl81x9.c
1277
mtod(m_new, char *) + m_head->m_pkthdr.len,
sys/dev/ic/rtw.c
1606
wh = mtod(m, struct ieee80211_frame_min *);
sys/dev/ic/rtw.c
1618
ieee80211_dump_pkt(mtod(m, uint8_t *), m->m_pkthdr.len,
sys/dev/ic/rtw.c
3190
eh = mtod(m0, struct ether_header *);
sys/dev/ic/rtw.c
3262
m_copydata(m0, 0, m0->m_pkthdr.len, mtod(m, void *));
sys/dev/ic/rtw.c
3341
wh = mtod(m0, struct ieee80211_frame_min *);
sys/dev/ic/rtw.c
3367
wh = mtod(m0, struct ieee80211_frame_min *);
sys/dev/ic/rtw.c
3379
ieee80211_dump_pkt(mtod(m0, uint8_t *),
sys/dev/ic/seeq8005.c
1309
ea_readbuf(sc, mtod(m, u_char *),
sys/dev/ic/seeq8005.c
963
ea_writebuf(sc, mtod(m, u_char *), bufstart + 4 + len,
sys/dev/ic/smc83c170.c
428
m_copydata(m0, 0, m0->m_pkthdr.len, mtod(m, void *));
sys/dev/ic/smc83c170.c
686
memcpy(mtod(m, void *),
sys/dev/ic/smc83c170.c
687
mtod(ds->ds_mbuf, void *), len);
sys/dev/ic/smc90cx6.c
395
device_xname(sc->sc_dev), buffer, mtod(m, u_char *)[0],
sys/dev/ic/smc90cx6.c
396
mtod(m, u_char *)[1], mtod(m, u_char *)[2]);
sys/dev/ic/smc90cx6.c
414
PUTMEM(bah_ram_ptr + 1, mtod(m, u_char *)[1]);
sys/dev/ic/smc90cx6.c
441
mtod(mp, void *), len);
sys/dev/ic/smc90cx6.c
559
ah = mtod(head, struct arc_header *);
sys/dev/ic/smc90cx6.c
594
mtod(m, u_char *) + m->m_len, len1);
sys/dev/ic/smc91cxx.c
1132
m->m_data = (char *)ALIGN(mtod(m, char *) +
sys/dev/ic/smc91cxx.c
1135
eh = mtod(m, struct ether_header *);
sys/dev/ic/smc91cxx.c
1136
data = mtod(m, uint8_t *);
sys/dev/ic/smc91cxx.c
1147
m->m_data = (void *)ALIGN(mtod(m, void *));
sys/dev/ic/smc91cxx.c
1148
eh = mtod(m, struct ether_header *);
sys/dev/ic/smc91cxx.c
1149
data = mtod(m, uint8_t *);
sys/dev/ic/smc91cxx.c
801
p = mtod(m, uint8_t *);
sys/dev/ic/tulip.c
1340
memcpy(mtod(m, void *), mtod(rxs->rxs_mbuf, void *), len);
sys/dev/ic/tulip.c
1348
eh = mtod(m, struct ether_header *);
sys/dev/ic/tulip.c
738
if ((sc->sc_ntxsegs == 1 && (mtod(m0, uintptr_t) & 3) != 0) ||
sys/dev/ic/tulip.c
756
m_copydata(m0, 0, m0->m_pkthdr.len, mtod(m, void *));
sys/dev/ic/we.c
361
buf, mtod(m, uint8_t *), m->m_len);
sys/dev/ic/we.c
378
data = mtod(m, uint8_t *);
sys/dev/ic/wi.c
1163
wh = mtod(m0, struct ieee80211_frame *);
sys/dev/ic/wi.c
1176
eh = mtod(m0, struct ether_header *);
sys/dev/ic/wi.c
1192
wh = mtod(m0, struct ieee80211_frame *);
sys/dev/ic/wi.c
1726
wh = mtod(m, struct ieee80211_frame *);
sys/dev/ic/wi.c
1758
ni = ieee80211_find_rxnode(ic, mtod(m, struct ieee80211_frame_min *));
sys/dev/ieee1394/fwohci.c
1456
mtod(m0, void *));
sys/dev/ieee1394/if_fwip.c
388
xfer->recv.payload = mtod(m, uint32_t *);
sys/dev/ieee1394/if_fwip.c
598
p = mtod(m, uint32_t *);
sys/dev/ieee1394/if_fwip.c
704
fp = mtod(sxfer->mbuf, struct fw_pkt *);
sys/dev/ieee1394/if_fwip.c
748
p = mtod(m, uint32_t *);
sys/dev/ieee1394/if_fwip.c
809
xfer->recv.payload = mtod(m, uint32_t *);
sys/dev/isa/cs89x0isa.c
304
pBuff = mtod(m, char *);
sys/dev/isa/if_ec.c
589
mtod(m, u_int8_t *), m->m_len);
sys/dev/isa/if_ec.c
614
data = mtod(m, u_int8_t *);
sys/dev/isa/if_eg.c
757
memcpy(mtod(m, void *), buf, len);
sys/dev/isa/if_el.c
406
mtod(m, uint8_t *), m->m_len);
sys/dev/isa/if_el.c
621
bus_space_read_multi_1(iot, ioh, EL_BUF, mtod(m, uint8_t *), len);
sys/dev/isa/if_iy.c
1035
mtod(m, uint16_t *), len / 2);
sys/dev/isa/if_iy.c
1041
*(mtod(m, char *)) = bus_space_read_stream_2(iot, ioh,
sys/dev/isa/if_iy.c
751
data = mtod(m, void *);
sys/dev/marvell/if_mvgbe.c
2046
m0 = m_devget(mtod(m, char *), total_len, 0, ifp);
sys/dev/marvell/if_mvxpe.c
2214
eh = mtod(m, struct ether_header *);
sys/dev/ofw/ofnet.c
227
memcpy(mtod(m, char *), bufp, l);
sys/dev/ofw/ofnet.c
306
memcpy(bufp, mtod(m, char *), m->m_len);
sys/dev/pci/cxgb/cxgb_l2t.c
119
req = mtod(m, struct cpl_l2t_write_req *);
sys/dev/pci/cxgb/cxgb_lro.c
158
struct ip *ih = (struct ip *)(mtod(m, uint8_t *) + IPH_OFFSET);
sys/dev/pci/cxgb/cxgb_lro.c
177
struct ip *ih = (struct ip *)(mtod(sm, uint8_t *) + IPH_OFFSET);
sys/dev/pci/cxgb/cxgb_lro.c
247
struct cpl_rx_pkt *cpl = (struct cpl_rx_pkt *)(mtod(sm, uint8_t *) + 2);
sys/dev/pci/cxgb/cxgb_lro.c
248
struct cpl_rx_pkt *ncpl = (struct cpl_rx_pkt *)(mtod(m, uint8_t *) + 2);
sys/dev/pci/cxgb/cxgb_lro.c
249
struct ip *nih = (struct ip *)(mtod(m, uint8_t *) + IPH_OFFSET);
sys/dev/pci/cxgb/cxgb_lro.c
265
th = (struct tcphdr *)(mtod(sm, uint8_t *) + IPH_OFFSET + sizeof (struct ip));
sys/dev/pci/cxgb/cxgb_lro.c
328
struct cpl_rx_pkt *cpl = (struct cpl_rx_pkt *)(mtod(m, uint8_t *) + ethpad);
sys/dev/pci/cxgb/cxgb_lro.c
83
struct ip *sih = (struct ip *)(mtod(m, uint8_t *) + IPH_OFFSET);
sys/dev/pci/cxgb/cxgb_main.c
1056
req = mtod(m, struct mngt_pktsched_wr *);
sys/dev/pci/cxgb/cxgb_offload.c
1080
*mtod(m, uint32_t *));
sys/dev/pci/cxgb/cxgb_offload.c
1200
req = mtod(m, struct cpl_set_tcb_field *);
sys/dev/pci/cxgb/cxgb_offload.c
454
n, *mtod(m[0], uint32_t *));
sys/dev/pci/cxgb/cxgb_offload.c
527
req = mtod(m, struct cpl_tid_release *);
sys/dev/pci/cxgb/cxgb_offload.c
830
skb->mac.raw = mtod(m, (char *));
sys/dev/pci/cxgb/cxgb_offload.h
132
return mtod(m, uint8_t *);
sys/dev/pci/cxgb/cxgb_sge.c
1221
pkthdr = mtod(m0, char *);
sys/dev/pci/cxgb/cxgb_sge.c
1254
memcpy(&txd->flit[2], mtod(m0, uint8_t *), mlen);
sys/dev/pci/cxgb/cxgb_sge.c
1318
struct work_request_hdr *from = mtod(m, struct work_request_hdr *);
sys/dev/pci/cxgb/cxgb_sge.c
1420
struct work_request_hdr *wrp = mtod(m, struct work_request_hdr *);
sys/dev/pci/cxgb/cxgb_sge.c
1734
from = mtod(m, struct work_request_hdr *);
sys/dev/pci/cxgb/cxgb_sge.c
2156
struct cpl_rx_pkt *cpl = (struct cpl_rx_pkt *)(mtod(m, uint8_t *) + ethpad);
sys/dev/pci/cxgb/cxgb_sge.c
2160
DPRINTF("rx_eth m=%p m->m_data=%p p->iff=%d\n", m, mtod(m, uint8_t *), cpl->iff);
sys/dev/pci/cxgb/cxgb_sge.c
2286
cl = mtod(m, void *);
sys/dev/pci/cxgb/cxgb_sge.c
2495
prefetch(mtod(rspq->rspq_mh.mh_head, uint8_t *));
sys/dev/pci/cxgb/cxgb_sge.c
2496
prefetch(mtod(rspq->rspq_mh.mh_head, uint8_t *) + L1_CACHE_BYTES);
sys/dev/pci/cxgb/cxgb_sge.c
339
memcpy(mtod(m, uint8_t *), resp->imm_data, len);
sys/dev/pci/if_bce.c
142
*mtod(sc->bce_cdata.bce_rx_chain[x], uint32_t *) = 0; \
sys/dev/pci/if_bce.c
761
pph = mtod(sc->bce_cdata.bce_rx_chain[i], struct rx_pph *);
sys/dev/pci/if_bce.c
799
memcpy(mtod(m, void *),
sys/dev/pci/if_bce.c
800
mtod(sc->bce_cdata.bce_rx_chain[i], void *), len);
sys/dev/pci/if_bge.c
1573
mtod(m_new, char *) - (char *)sc->bge_cdata.bge_jumbo_buf,
sys/dev/pci/if_bge.c
4545
mtod(m, char *) - (char *)sc->bge_cdata.bge_jumbo_buf,
sys/dev/pci/if_bge.c
4584
memmove(mtod(m, char *) + ETHER_ALIGN, m->m_data,
sys/dev/pci/if_bge.c
5038
memset(mtod(last, char *) + last->m_len, 0, padlen);
sys/dev/pci/if_bge.c
5114
memmove(m_dat, mtod(m, void*),
sys/dev/pci/if_bge.c
5247
eh = mtod(m0, struct ether_header *);
sys/dev/pci/if_bge.c
5310
ip = (struct ip *) (mtod(m0, char *) + offset);
sys/dev/pci/if_bge.c
5311
th = (struct tcphdr *) (mtod(m0, char *) + hlen);
sys/dev/pci/if_bgevar.h
232
(mtod((m), char *) - (char *)(sc)->bge_cdata.bge_jumbo_buf))
sys/dev/pci/if_bnx.c
4646
l2fhdr = mtod(m, struct l2_fhdr *);
sys/dev/pci/if_bnx.c
4729
eh = mtod(m, struct ether_header *);
sys/dev/pci/if_bwfm_pci.c
1667
uint8_t *da = mtod(m, uint8_t *);
sys/dev/pci/if_bwfm_pci.c
1673
eh = mtod(m, struct ether_header *);
sys/dev/pci/if_bwfm_pci.c
1729
uint8_t *da = mtod(m, uint8_t *);
sys/dev/pci/if_bwfm_pci.c
1740
eh = mtod(m, struct ether_header *);
sys/dev/pci/if_bwfm_pci.c
1802
da = mtod(cmd->m, char *) + 0 * ETHER_ADDR_LEN;
sys/dev/pci/if_bwfm_pci.c
1803
sa = mtod(cmd->m, char *) + 1 * ETHER_ADDR_LEN;
sys/dev/pci/if_bwfm_pci.c
1955
eh = mtod(*mp, struct ether_header *);
sys/dev/pci/if_bwfm_pci.c
1965
memcpy(tx->txhdr, mtod(*mp, char *), ETHER_HDR_LEN);
sys/dev/pci/if_bwfm_pci.c
2112
memcpy(buf, mtod(m, char *), *len);
sys/dev/pci/if_bwfm_pci.c
969
mtod(m0, void *));
sys/dev/pci/if_dge.c
1074
eh = mtod(m0, struct ether_header *);
sys/dev/pci/if_dge.c
407
(mtod((__m), char *) - (char *)sc->sc_bugbuf); \
sys/dev/pci/if_ena.c
2705
eh = mtod(mbuf, struct ether_vlan_header *);
sys/dev/pci/if_enavar.h
568
memmove(mtod(m, char *) + m->m_len, cp, space);
sys/dev/pci/if_enavar.h
581
memmove(mtod(n, void *), cp, n->m_len);
sys/dev/pci/if_et.c
1885
m_copydata(m, 0, m->m_pkthdr.len, mtod(m_new, void *));
sys/dev/pci/if_iavf.c
2914
eh = mtod(m, struct ether_header *);
sys/dev/pci/if_ipw.c
1092
wh = mtod(m, struct ieee80211_frame *);
sys/dev/pci/if_ipw.c
1359
wh = mtod(m0, struct ieee80211_frame *);
sys/dev/pci/if_ipw.c
1369
wh = mtod(m0, struct ieee80211_frame *);
sys/dev/pci/if_ipw.c
1427
m_copydata(m0, 0, m0->m_pkthdr.len, mtod(mnew, void *));
sys/dev/pci/if_ipw.c
1534
eh = mtod(m0, struct ether_header *);
sys/dev/pci/if_ipw.c
908
struct ipw_cmd *cmd = mtod(sbuf->m, struct ipw_cmd *);
sys/dev/pci/if_ipw.c
929
state = le32toh(*mtod(sbuf->m, uint32_t *));
sys/dev/pci/if_ipw.c
977
wh = mtod(m, struct ieee80211_frame *);
sys/dev/pci/if_ipw.c
989
efrm = mtod(m, uint8_t *) + m->m_len;
sys/dev/pci/if_iwi.c
1091
wh = mtod(m, struct ieee80211_frame *);
sys/dev/pci/if_iwi.c
1103
efrm = mtod(m, uint8_t *) + m->m_len;
sys/dev/pci/if_iwi.c
1228
wh = mtod(m, struct ieee80211_frame *);
sys/dev/pci/if_iwi.c
1401
hdr = mtod(data->m, struct iwi_hdr *);
sys/dev/pci/if_iwi.c
1612
wh = mtod(m0, struct ieee80211_frame *);
sys/dev/pci/if_iwi.c
1645
wh = mtod(m0, struct ieee80211_frame *);
sys/dev/pci/if_iwi.c
1693
m_copydata(m0, 0, m0->m_pkthdr.len, mtod(mnew, void *));
sys/dev/pci/if_iwi.c
1784
eh = mtod(m0, struct ether_header *);
sys/dev/pci/if_iwm.c
4562
cmd = mtod(m, struct iwm_device_cmd *);
sys/dev/pci/if_iwm.c
4913
wh = mtod(m, struct ieee80211_frame *);
sys/dev/pci/if_iwm.c
5016
wh = mtod(m, struct ieee80211_frame *);
sys/dev/pci/if_iwm.c
5051
mwh = mtod(m, struct ieee80211_frame_min *);
sys/dev/pci/if_iwm.c
5117
m_copydata(m, 0, m->m_pkthdr.len, mtod(m1, void *));
sys/dev/pci/if_iwm.c
601
wh = mtod(m, struct ieee80211_frame *);
sys/dev/pci/if_iwm.c
7894
eh = mtod(m, struct ether_header *);
sys/dev/pci/if_iwm.c
8368
pkt = mtod(data->m, struct iwm_rx_packet *);
sys/dev/pci/if_iwn.c
1397
mtod(data->m, void *), IWN_RBUF_SIZE, NULL,
sys/dev/pci/if_iwn.c
2190
error = bus_dmamap_load(sc->sc_dmat, data->map, mtod(m1, void *),
sys/dev/pci/if_iwn.c
2197
mtod(data->m, void *), IWN_RBUF_SIZE, NULL,
sys/dev/pci/if_iwn.c
2229
wh = mtod(m, struct ieee80211_frame *);
sys/dev/pci/if_iwn.c
2569
desc = mtod(data->m, struct iwn_rx_desc *);
sys/dev/pci/if_iwn.c
3003
wh = mtod(m, struct ieee80211_frame *);
sys/dev/pci/if_iwn.c
3053
wh = mtod(m, struct ieee80211_frame *);
sys/dev/pci/if_iwn.c
3209
m_copydata(m, 0, m->m_pkthdr.len, mtod(m1, void *));
sys/dev/pci/if_iwn.c
3312
eh = mtod(m, struct ether_header *);
sys/dev/pci/if_iwn.c
3469
cmd = mtod(m, struct iwn_tx_cmd *);
sys/dev/pci/if_iwn.c
6682
wh = mtod(m, struct ieee80211_frame *);
sys/dev/pci/if_iwn.c
6701
efrm = mtod(m, uint8_t *) + m->m_len;
sys/dev/pci/if_ixl.c
2604
eh = mtod(m, struct ether_header *);
sys/dev/pci/if_jme.c
1399
(void *)(mtod(m, char *) +
sys/dev/pci/if_jme.c
1401
th = (void *)(mtod(m, char *) + hlen);
sys/dev/pci/if_jme.c
1409
(void *)(mtod(m, char *) +
sys/dev/pci/if_jme.c
1411
th = (void *)(mtod(m, char *) + hlen);
sys/dev/pci/if_lii.c
1010
memcpy(mtod(m, void *), &rxp->rxp_data[0], size);
sys/dev/pci/if_msk.c
2840
msk_dump_bytes(mtod(m, char *), m->m_len);
sys/dev/pci/if_nfe.c
1513
mtod(data->m, void *), MCLBYTES, NULL,
sys/dev/pci/if_nfe.c
887
(void)memcpy(mtod(mnew, void *),
sys/dev/pci/if_nfe.c
888
mtod(data->m, const void *), len);
sys/dev/pci/if_nfe.c
894
mtod(data->m, char *) - (char *)sc->rxq.jpool,
sys/dev/pci/if_nfe.c
912
mtod(mnew, void *), MCLBYTES, NULL,
sys/dev/pci/if_nfe.c
919
mtod(data->m, void *), MCLBYTES, NULL,
sys/dev/pci/if_pcn.c
1514
memcpy(mtod(m, void *),
sys/dev/pci/if_pcn.c
1515
mtod(rxs->rxs_mbuf, void *), len);
sys/dev/pci/if_pcn.c
984
m_copydata(m0, 0, m0->m_pkthdr.len, mtod(m, void *));
sys/dev/pci/if_rtwn.c
1710
phy = mtod(rx_data->m, struct r92c_rx_phystat *);
sys/dev/pci/if_rtwn.c
1737
error = bus_dmamap_load(sc->sc_dmat, rx_data->map, mtod(m1, void *),
sys/dev/pci/if_rtwn.c
1776
wh = mtod(m, struct ieee80211_frame *);
sys/dev/pci/if_rtwn.c
1840
wh = mtod(m, struct ieee80211_frame *);
sys/dev/pci/if_rtwn.c
1848
wh = mtod(m, struct ieee80211_frame *);
sys/dev/pci/if_rtwn.c
2102
eh = mtod(m, struct ether_header *);
sys/dev/pci/if_rtwn.c
545
mtod(rx_data->m, void *), MCLBYTES, NULL,
sys/dev/pci/if_sip.c
1601
m_copydata(m0, 0, m0->m_pkthdr.len, mtod(m, void *));
sys/dev/pci/if_sip.c
2245
m_copydata(m, 0, len, mtod(nm, void *));
sys/dev/pci/if_sip.c
2260
memmove(mtod(m, char *) + 2, mtod(m, void *),
sys/dev/pci/if_sip.c
2413
memcpy(mtod(m, void *),
sys/dev/pci/if_sip.c
2414
mtod(rxs->rxs_mbuf, void *), len);
sys/dev/pci/if_sip.c
2462
memcpy(mtod(m, void *), mtod(rxs->rxs_mbuf, void *), len);
sys/dev/pci/if_sk.c
2089
m0 = m_devget(mtod(m, char *) - ETHER_ALIGN,
sys/dev/pci/if_sk.c
3071
sk_dump_bytes(mtod(m, char *), m->m_len);
sys/dev/pci/if_ste.c
1088
memcpy(mtod(m, void *),
sys/dev/pci/if_ste.c
1089
mtod(ds->ds_mbuf, void *), len);
sys/dev/pci/if_ste.c
716
m_copydata(m0, 0, m0->m_pkthdr.len, mtod(m, void *));
sys/dev/pci/if_stge.c
1338
m_copydata(m, 0, len, mtod(nm, void *));
sys/dev/pci/if_stge.c
1386
eh = mtod(m, struct ether_header *);
sys/dev/pci/if_stge.c
964
mtod(m0, struct ether_header *);
sys/dev/pci/if_stge.c
967
ifp->if_xname, *mtod(n, int *), etype);
sys/dev/pci/if_ti.c
1980
eh = mtod(m, struct ether_header *);
sys/dev/pci/if_ti.c
727
mtod(m_new, void *), m_new->m_len, NULL,
sys/dev/pci/if_ti.c
794
mtod(m_new, void *), m_new->m_len, NULL,
sys/dev/pci/if_ti.c
872
(mtod(m_new, char *) - (char *)sc->ti_cdata.ti_jumbo_buf);
sys/dev/pci/if_tl.c
1058
mtod(m, struct ether_header *);
sys/dev/pci/if_tl.c
1308
mtod(mn, void *));
sys/dev/pci/if_txp.c
1499
m_copydata(m, 0, m->m_pkthdr.len, mtod(mnew, void *));
sys/dev/pci/if_txp.c
776
memcpy(mtod(m, void *), mtod(sd->sd_mbuf, void *), len);
sys/dev/pci/if_vge.c
1174
src = mtod(m, uint16_t *);
sys/dev/pci/if_vmx.c
2993
eh = mtod(m, struct ether_header *);
sys/dev/pci/if_vmx.c
3035
tcp = (void *)(mtod(mp, char *) + offp + *start);
sys/dev/pci/if_vmx.c
3040
ip = (void *)(mtod(mp, char *) + offp + offset);
sys/dev/pci/if_vmx.c
3046
ip6 = (void *)(mtod(mp, char *) + offp + offset);
sys/dev/pci/if_vr.c
1052
if ((mtod(m0, uintptr_t) & 3) != 0 ||
sys/dev/pci/if_vr.c
1071
m_copydata(m0, 0, m0->m_pkthdr.len, mtod(m, void *));
sys/dev/pci/if_vr.c
1078
memset(mtod(m, char *) + m0->m_pkthdr.len,
sys/dev/pci/if_vr.c
733
memcpy(mtod(m, void *),
sys/dev/pci/if_vr.c
734
mtod(ds->ds_mbuf, void *), total_len);
sys/dev/pci/if_vr.c
781
memcpy(mtod(m, void *), mtod(ds->ds_mbuf, void *),
sys/dev/pci/if_vte.c
724
m_copydata(m, 0, m->m_pkthdr.len, mtod(n, char *));
sys/dev/pci/if_vte.c
733
bzero(mtod(m, char *) + m->m_pkthdr.len, padlen);
sys/dev/pci/if_wm.c
8629
eh = mtod(m0, struct ether_header *);
sys/dev/pci/if_wm.c
8713
(void *)(mtod(m0, char *) + offset);
sys/dev/pci/if_wm.c
8714
th = (void *)(mtod(m0, char *) + hlen);
sys/dev/pci/if_wm.c
8721
(void *)(mtod(m0, char *) + offset);
sys/dev/pci/if_wm.c
8722
th = (void *)(mtod(m0, char *) + hlen);
sys/dev/pci/if_wm.c
9290
eh = mtod(m0, struct ether_header *);
sys/dev/pci/if_wm.c
9381
(void *)(mtod(m0, char *) + offset);
sys/dev/pci/if_wm.c
9382
th = (void *)(mtod(m0, char *) + hlen);
sys/dev/pci/if_wm.c
9389
(void *)(mtod(m0, char *) + offset);
sys/dev/pci/if_wm.c
9390
th = (void *)(mtod(m0, char *) + hlen);
sys/dev/pci/if_wpi.c
1522
data_off = (char*)(head + 1) - mtod(data->m, char*);
sys/dev/pci/if_wpi.c
1545
mtod(mnew, void *), WPI_RBUF_SIZE, NULL,
sys/dev/pci/if_wpi.c
1554
mtod(data->m, void *), WPI_RBUF_SIZE, NULL,
sys/dev/pci/if_wpi.c
1617
wh = mtod(m, struct ieee80211_frame *);
sys/dev/pci/if_wpi.c
1716
desc = mtod(data->m, struct wpi_rx_desc *);
sys/dev/pci/if_wpi.c
1916
wh = mtod(m0, struct ieee80211_frame *);
sys/dev/pci/if_wpi.c
1931
wh = mtod(m0, struct ieee80211_frame *);
sys/dev/pci/if_wpi.c
2045
m_copydata(m0, 0, m0->m_pkthdr.len, mtod(mnew, void *));
sys/dev/pci/if_wpi.c
2145
eh = mtod(m0, struct ether_header *);
sys/dev/pci/if_wpi.c
2845
cmd = mtod(data->m, struct wpi_tx_cmd *);
sys/dev/pci/if_wpi.c
720
mtod(data->m, void *), WPI_RBUF_SIZE, NULL,
sys/dev/pci/igc/if_igc.c
3243
evl = mtod(mp, struct ether_vlan_header *);
sys/dev/pci/igc/if_igc.c
3266
ip = (void *)(mtod(mp, char *) + ehlen);
sys/dev/pci/igc/if_igc.c
3283
ip6 = (void *)(mtod(mp, char *) + ehlen);
sys/dev/pci/ixgbe/if_fdir.c
99
eh = mtod(mp, struct ether_vlan_header *);
sys/dev/pci/ixgbe/ix_txrx.c
1014
eh = mtod(mp, struct ether_vlan_header *);
sys/dev/pci/ixgbe/ix_txrx.c
2064
memcpy(mtod(sendmp, void *),
sys/dev/pci/ixgbe/ix_txrx.c
2065
mtod(mp, void *), len);
sys/dev/pci/ixgbe/ix_txrx.c
883
eh = mtod(mp, struct ether_vlan_header *);
sys/dev/pci/ixgbe/ix_txrx.c
907
l3d = mtod(mp->m_next, char *);
sys/dev/pci/ixgbe/ix_txrx.c
909
l3d = mtod(mp, char *) + ehdrlen;
sys/dev/pci/xmm7360.c
2986
mtod(m, void *), m->m_pkthdr.len);
sys/dev/pci/xmm7360.c
3028
const uint8_t *data = mtod(m, uint8_t *);
sys/dev/pci/xmm7360.c
3066
const uint8_t *data = mtod(m, uint8_t *);
sys/dev/pcmcia/bt3c.c
339
mtod(m, uint8_t *)[m->m_len++] = b;
sys/dev/pcmcia/bt3c.c
385
sc->sc_want = mtod(m, hci_acldata_hdr_t *)->length;
sys/dev/pcmcia/bt3c.c
391
sc->sc_want = mtod(m, hci_scodata_hdr_t *)->length;
sys/dev/pcmcia/bt3c.c
396
sc->sc_want = mtod(m, hci_event_hdr_t *)->length;
sys/dev/pcmcia/bt3c.c
456
rptr = mtod(m, uint8_t *);
sys/dev/pcmcia/bt3c.c
476
rptr = mtod(m, uint8_t *);
sys/dev/pcmcia/btbc.c
368
p = mtod(m, hci_cmd_hdr_t *);
sys/dev/pcmcia/btbc.c
442
mtod(m, uint8_t *)[m->m_len++] = buf[i];
sys/dev/pcmcia/btbc.c
493
sc->sc_want = mtod(m, hci_acldata_hdr_t *)->length;
sys/dev/pcmcia/btbc.c
499
sc->sc_want = mtod(m, hci_scodata_hdr_t *)->length;
sys/dev/pcmcia/btbc.c
504
sc->sc_want = mtod(m, hci_event_hdr_t *)->length;
sys/dev/pcmcia/btbc.c
563
p = mtod(m, hci_cmd_hdr_t *);
sys/dev/pcmcia/btbc.c
577
rptr = mtod(m, uint8_t *);
sys/dev/pcmcia/btbc.c
593
rptr = mtod(m, uint8_t *);
sys/dev/pcmcia/if_cnw.c
706
mptr = mtod(m, u_int8_t *);
sys/dev/pcmcia/if_cnw.c
789
mptr = mtod(m, u_int8_t *);
sys/dev/pcmcia/if_malo_pcmcia.c
1063
data = mtod(m, uint8_t *);
sys/dev/pcmcia/if_ray.c
1135
eh = mtod(m0, struct ether_header *);
sys/dev/pcmcia/if_ray.c
1163
iframe = mtod(m0, struct ieee80211_frame *);
sys/dev/pcmcia/if_ray.c
1205
d = mtod(m, uint8_t *);
sys/dev/pcmcia/if_ray.c
1352
d = mtod(m, uint8_t *);
sys/dev/pcmcia/if_ray.c
1424
frame = mtod(m, struct ieee80211_frame *);
sys/dev/pcmcia/if_ray.c
3077
hexdump(printf, NULL, mtod(m, void *), m->m_len);
sys/dev/pcmcia/if_xi.c
450
data = mtod(m, uint8_t *);
sys/dev/pcmcia/if_xi.c
805
mtod(m, uint16_t *), m->m_len>>1);
sys/dev/pcmcia/if_xi.c
809
*(mtod(m, uint8_t *) + m->m_len - 1));
sys/dev/ppbus/if_plip.c
857
cp = mtod(mm, u_char *);
sys/dev/ppbus/if_plip.c
887
cp = mtod(mm,u_char *);
sys/dev/qbus/if_dmc.c
804
dh = mtod(m, struct dmc_header *);
sys/dev/qbus/if_qe.c
503
sc->sc_xmtmap[idx], mtod(m0, void *),
sys/dev/qbus/if_uba.c
246
bus_dmamap_load(uh->uh_dmat, ifw->ifw_map, mtod(m, void *),
sys/dev/sbus/be.c
473
memcpy(bp + boff, mtod(m, void *), len);
sys/dev/sbus/be.c
525
memcpy(mtod(m, void *), bp + boff, len);
sys/dev/sbus/qe.c
355
memcpy(mtod(m, void *), bp + boff, len);
sys/dev/sbus/qe.c
384
memcpy(bp + boff, mtod(m, void *), len);
sys/dev/scsipi/if_dse.c
556
memcpy(cp, mtod(m, u_char *), m->m_len);
sys/dev/scsipi/if_dse.c
743
memcpy(mtod(m, void *), data, len);
sys/dev/scsipi/if_se.c
520
memcpy(cp, mtod(m, u_char *), m->m_len);
sys/dev/scsipi/if_se.c
694
memcpy(mtod(m, void *), data, len);
sys/dev/sdmmc/if_bwfm_sdio.c
1118
memcpy(mtod(m, char *), buf, len);
sys/dev/sdmmc/if_bwfm_sdio.c
1896
memcpy(mtod(m, char *), data + off, flen - off);
sys/dev/sdmmc/if_bwfm_sdio.c
1918
memcpy(mtod(m, char *), data + off, flen - off);
sys/dev/sdmmc/if_bwfm_sdio.c
1919
bcdc = mtod(m, struct bwfm_proto_bcdc_hdr *);
sys/dev/sdmmc/if_bwfm_sdio.c
1996
if (bwfm_sdio_frame_read_write(sc, mtod(m, char *),
sys/dev/sdmmc/if_bwfm_sdio.c
2081
bcdc = mtod(m, struct bwfm_proto_bcdc_hdr *);
sys/dev/sdmmc/if_bwfm_sdio.c
2109
printf("rx dropped %p len %d\n",mtod(m, char *),m->m_pkthdr.len);
sys/dev/usb/if_athn_usb.c
1987
wh = mtod(m, struct ieee80211_frame *);
sys/dev/usb/if_athn_usb.c
2240
htc = mtod(m, struct ar_htc_frame_hdr *);
sys/dev/usb/if_athn_usb.c
2254
rs = mtod(m, struct ar_rx_status *);
sys/dev/usb/if_athn_usb.c
2272
wh = mtod(m, struct ieee80211_frame *);
sys/dev/usb/if_athn_usb.c
2332
memcpy(mtod(stream->m, uint8_t *) +
sys/dev/usb/if_athn_usb.c
2345
memcpy(mtod(stream->m, uint8_t *) +
sys/dev/usb/if_athn_usb.c
2387
memcpy(mtod(stream->m, uint8_t *), buf, len);
sys/dev/usb/if_athn_usb.c
2395
memcpy(mtod(m, uint8_t *), buf, pktlen);
sys/dev/usb/if_athn_usb.c
2472
wh = mtod(m, struct ieee80211_frame *);
sys/dev/usb/if_athn_usb.c
2479
wh = mtod(m, struct ieee80211_frame *);
sys/dev/usb/if_athn_usb.c
2619
eh = mtod(m, struct ether_header *);
sys/dev/usb/if_atu.c
1687
memcpy(mtod(m, char *), c->atu_buf + ATU_RX_HDRLEN, len);
sys/dev/usb/if_atu.c
1691
wh = mtod(m, struct ieee80211_frame_min *);
sys/dev/usb/if_atu.c
1912
mtod(m, struct ether_header *)->ether_dhost);
sys/dev/usb/if_bwfm_usb.c
489
memcpy(mtod(m, char *), data->buf + off, len);
sys/dev/usb/if_bwfm_usb.c
797
eh = mtod(m, struct ether_header *);
sys/dev/usb/if_gscan.c
245
cf = mtod(m, struct can_frame *);
sys/dev/usb/if_gscan.c
337
cf = mtod(m, struct can_frame *);
sys/dev/usb/if_mue.c
960
eh = mtod(m, struct ether_header *);
sys/dev/usb/if_mue.c
979
ip = (void *)(mtod(m, char *) + off);
sys/dev/usb/if_mue.c
986
ip6 = (void *)(mtod(m, char *) + off);
sys/dev/usb/if_otus.c
1796
memcpy(mtod(m, void *), wh, mlen);
sys/dev/usb/if_otus.c
1960
wh = mtod(m, struct ieee80211_frame *);
sys/dev/usb/if_otus.c
1968
wh = mtod(m, struct ieee80211_frame *);
sys/dev/usb/if_otus.c
2130
eh = mtod(m, struct ether_header *);
sys/dev/usb/if_rum.c
1083
wh = mtod(m0, struct ieee80211_frame *);
sys/dev/usb/if_rum.c
1093
wh = mtod(m0, struct ieee80211_frame *);
sys/dev/usb/if_rum.c
1291
eh = mtod(m0, struct ether_header *);
sys/dev/usb/if_rum.c
2196
rum_write_multi(sc, RT2573_HW_BEACON_BASE0 + 24, mtod(m0, uint8_t *),
sys/dev/usb/if_rum.c
607
data->buf = mtod(data->m, uint8_t *);
sys/dev/usb/if_rum.c
865
data->buf = mtod(data->m, uint8_t *);
sys/dev/usb/if_rum.c
887
wh = mtod(m, struct ieee80211_frame *);
sys/dev/usb/if_run.c
2358
memcpy(mtod(m, void *), wh, len);
sys/dev/usb/if_run.c
2546
wh = mtod(m, struct ieee80211_frame *);
sys/dev/usb/if_run.c
2557
wh = mtod(m, struct ieee80211_frame *);
sys/dev/usb/if_run.c
2725
eh = mtod(m, struct ether_header *);
sys/dev/usb/if_run.c
5044
mtod(m, uint8_t *), (m->m_pkthdr.len + 1) & ~1);
sys/dev/usb/if_upgt.c
1518
eh = mtod(m, struct ether_header *);
sys/dev/usb/if_upgt.c
1609
wh = mtod(m, struct ieee80211_frame *);
sys/dev/usb/if_upgt.c
1623
wh = mtod(m, struct ieee80211_frame *);
sys/dev/usb/if_upgt.c
1885
wh = mtod(m, struct ieee80211_frame *);
sys/dev/usb/if_ural.c
1192
wh = mtod(m0, struct ieee80211_frame *);
sys/dev/usb/if_ural.c
1205
wh = mtod(m0, struct ieee80211_frame *);
sys/dev/usb/if_ural.c
1276
wh = mtod(m0, struct ieee80211_frame *);
sys/dev/usb/if_ural.c
1293
wh = mtod(m0, struct ieee80211_frame *);
sys/dev/usb/if_ural.c
1390
eh = mtod(m0, struct ether_header *);
sys/dev/usb/if_ural.c
648
data->buf = mtod(data->m, uint8_t *);
sys/dev/usb/if_ural.c
954
data->buf = mtod(data->m, uint8_t *);
sys/dev/usb/if_ural.c
976
wh = mtod(m, struct ieee80211_frame *);
sys/dev/usb/if_ure.c
1083
eh = mtod(m, struct ether_header *);
sys/dev/usb/if_urtw.c
2471
eh = mtod(m0, struct ether_header *);
sys/dev/usb/if_urtw.c
2604
wh = mtod(m0, struct ieee80211_frame *);
sys/dev/usb/if_urtw.c
2613
wh = mtod(m0, struct ieee80211_frame *);
sys/dev/usb/if_urtw.c
3131
data->buf = mtod(mnew, uint8_t *);
sys/dev/usb/if_urtw.c
3149
wh = mtod(m, struct ieee80211_frame *);
sys/dev/usb/if_urtw.c
933
data->buf = mtod(data->m, uint8_t *);
sys/dev/usb/if_urtwn.c
2510
memcpy(mtod(m, uint8_t *), wh, pktlen);
sys/dev/usb/if_urtwn.c
2713
wh = mtod(m, struct ieee80211_frame *);
sys/dev/usb/if_urtwn.c
2729
wh = mtod(m, struct ieee80211_frame *);
sys/dev/usb/if_urtwn.c
2959
struct ieee80211_frame *wh = mtod(m, struct ieee80211_frame *);
sys/dev/usb/if_urtwn.c
2987
eh = mtod(m, struct ether_header *);
sys/dev/usb/if_zyd.c
1958
memcpy(mtod(m, uint8_t *), (const uint8_t *)(plcp + 1), rlen);
sys/dev/usb/if_zyd.c
1979
wh = mtod(m, struct ieee80211_frame *);
sys/dev/usb/if_zyd.c
2066
wh = mtod(m0, struct ieee80211_frame *);
sys/dev/usb/if_zyd.c
2078
wh = mtod(m0, struct ieee80211_frame *);
sys/dev/usb/if_zyd.c
2213
wh = mtod(m0, struct ieee80211_frame *);
sys/dev/usb/if_zyd.c
2229
wh = mtod(m0, struct ieee80211_frame *);
sys/dev/usb/if_zyd.c
2355
eh = mtod(m0, struct ether_header *);
sys/dev/usb/ubt.c
1523
*mtod(m, uint8_t *) = type;
sys/dev/usb/ubt.c
1756
ptr = mtod(m, uint8_t *) + m->m_pkthdr.len;
sys/dev/usb/ubt.c
1760
want += mtod(m, hci_scodata_hdr_t *)->length ;
sys/dev/usb/ubt.c
1783
ptr = mtod(m, uint8_t *);
sys/dev/usb/ubt.c
1806
mtod(m, hci_scodata_hdr_t *)->length;
sys/dev/usb/uhso.c
2122
mtod(m, uint8_t *)[0] = cp[0];
sys/dev/usb/uhso.c
2124
want = mtod(m, struct ip *)->ip_hl << 2;
sys/dev/usb/uhso.c
2125
if (mtod(m, struct ip *)->ip_v != 4
sys/dev/usb/uhso.c
2129
mtod(m, struct ip *)->ip_v, want);
sys/dev/usb/uhso.c
2139
memcpy(mtod(m, uint8_t *) + got, cp, len);
sys/dev/usb/uhso.c
2155
want = ntohs(mtod(m, struct ip *)->ip_len);
sys/dev/usb/uhso.c
2158
memcpy(mtod(m, uint8_t *) + got, cp, len);
sys/dev/usb/usbnet.c
314
memcpy(mtod(m, uint8_t *), buf, buflen);
sys/dev/usb/usbnet.c
341
memcpy(mtod(m, char *), buf, buflen);
sys/dist/pf/net/if_pflog.c
291
ip = mtod(m, struct ip *);
sys/dist/pf/net/if_pfsync.c
1106
h = mtod(m, struct pfsync_header *);
sys/dist/pf/net/if_pfsync.c
1167
h = mtod(sc->sc_mbuf, struct pfsync_header *);
sys/dist/pf/net/if_pfsync.c
1169
h = mtod(sc->sc_mbuf, struct pfsync_header *);
sys/dist/pf/net/if_pfsync.c
1177
h = mtod(sc->sc_mbuf, struct pfsync_header *);
sys/dist/pf/net/if_pfsync.c
1279
h_net = mtod(sc->sc_mbuf_net, struct pfsync_header *);
sys/dist/pf/net/if_pfsync.c
1339
h = mtod(sc->sc_mbuf, struct pfsync_header *);
sys/dist/pf/net/if_pfsync.c
1341
h = mtod(sc->sc_mbuf, struct pfsync_header *);
sys/dist/pf/net/if_pfsync.c
1347
h = mtod(sc->sc_mbuf, struct pfsync_header *);
sys/dist/pf/net/if_pfsync.c
1587
ip = mtod(m, struct ip *);
sys/dist/pf/net/if_pfsync.c
356
struct ip *ip = mtod(m, struct ip *);
sys/dist/pf/net/if_pfsync.c
403
ip = mtod(m, struct ip *);
sys/dist/pf/net/pf.c
1726
atag->hdr = mtod(m, struct ip *);
sys/dist/pf/net/pf.c
1732
m->m_pkthdr.pf.hdr = mtod(m, struct ip *);
sys/dist/pf/net/pf.c
1743
h = mtod(m, struct ip *);
sys/dist/pf/net/pf.c
1756
h6 = mtod(m, struct ip6_hdr *);
sys/dist/pf/net/pf.c
1891
atag->hdr = mtod(m0, struct ip *);
sys/dist/pf/net/pf.c
1897
m0->m_pkthdr.pf.hdr = mtod(m0, struct ip *);
sys/dist/pf/net/pf.c
3442
struct ip *hip = mtod(m, struct ip *);
sys/dist/pf/net/pf.c
5024
struct ip *h = mtod(m, struct ip *);
sys/dist/pf/net/pf.c
5047
struct ip6_hdr *h = mtod(m, struct ip6_hdr *);
sys/dist/pf/net/pf.c
5288
ip = mtod(m0, struct ip *);
sys/dist/pf/net/pf.c
5345
ip = mtod(m0, struct ip *);
sys/dist/pf/net/pf.c
5501
ip6 = mtod(m0, struct ip6_hdr *);
sys/dist/pf/net/pf.c
5549
ip6 = mtod(m0, struct ip6_hdr *);
sys/dist/pf/net/pf.c
5777
h = mtod(m, struct ip *);
sys/dist/pf/net/pf.c
6134
h = mtod(m, struct ip6_hdr *);
sys/dist/pf/net/pf_norm.c
1102
struct ip6_hdr *h = mtod(m, struct ip6_hdr *);
sys/dist/pf/net/pf_norm.c
1408
struct ip *h = mtod(m, struct ip *);
sys/dist/pf/net/pf_norm.c
1415
struct ip6_hdr *h = mtod(m, struct ip6_hdr *);
sys/dist/pf/net/pf_norm.c
1508
struct ip *h = mtod(m, struct ip *);
sys/dist/pf/net/pf_norm.c
1519
struct ip6_hdr *h = mtod(m, struct ip6_hdr *);
sys/dist/pf/net/pf_norm.c
1889
optp = mtod(m, u_char *) + off + sizeof(struct tcphdr);
sys/dist/pf/net/pf_norm.c
681
h = mtod(m, struct ip *);
sys/dist/pf/net/pf_norm.c
740
h = mtod(m, struct ip *);
sys/dist/pf/net/pf_norm.c
863
struct ip *h = mtod(m, struct ip *);
sys/dist/pf/net/pf_norm.c
973
h = mtod(m, struct ip *);
sys/dist/pf/net/pf_osfp.c
108
ip = mtod(m, struct ip *);
sys/dist/pf/net/pf_osfp.c
112
ip6 = mtod(m, struct ip6_hdr *);
sys/fs/nfs/client/nfs_clkrpc.c
92
nd.nd_dpos = mtod(nd.nd_md, caddr_t);
sys/fs/nfs/common/bootp_subr.c
1224
bcopy(mtod(m, u_char *), buf, len);
sys/fs/nfs/common/krpc_subr.c
154
sdata = mtod(m, struct sdata *);
sys/fs/nfs/common/krpc_subr.c
174
rdata = mtod(m, struct rdata *);
sys/fs/nfs/common/krpc_subr.c
278
call = mtod(mhead, struct krpc_call *);
sys/fs/nfs/common/krpc_subr.c
360
reply = mtod(m, struct krpc_reply *);
sys/fs/nfs/common/krpc_subr.c
409
reply = mtod(m, struct krpc_reply *);
sys/fs/nfs/common/krpc_subr.c
459
xs = mtod(m, struct xdr_string *);
sys/fs/nfs/common/nfs_commonport.c
173
if ((m->m_len & 0x3) || (mtod(m, intptr_t) & 0x3)) {
sys/fs/nfs/common/nfs_commonport.c
194
m_copyback(n, off, m->m_len, mtod(m, caddr_t));
sys/fs/nfs/common/nfs_fha.c
178
dpos = mtod(md, caddr_t);
sys/fs/nfs/common/nfskpiport.h
50
#define mbuf_data(m) mtod((m), void *)
sys/fs/nfs/common/nfsport.h
168
#define NFSMTOD mtod
sys/fs/nfs/server/nfs_nfsdkrpc.c
164
nd.nd_dpos = mtod(nd.nd_md, caddr_t);
sys/fs/nfs/server/nfs_nfsdport.c
602
ivp->iov_base = mtod(mp, caddr_t);
sys/fs/nfs/server/nfs_nfsdport.c
680
iv->iov_base = mtod(m, caddr_t) + m->m_len;
sys/fs/nfs/server/nfs_nfsdport.c
741
i = mtod(mp, caddr_t) + mp->m_len - cp;
sys/fs/nfs/server/nfs_nfsdport.c
756
cp = mtod(mp, caddr_t);
sys/kern/subr_asan.c
1094
kasan_shadow_check((uintptr_t)(mtod(m, char *) + offset),
sys/kern/subr_msan.c
1533
kmsan_shadow_fill(mtod(m, char *) + offset,
sys/kern/subr_msan.c
1536
kmsan_shadow_check(mtod(m, char *) + offset,
sys/kern/subr_msan.c
535
kmsan_shadow_check(mtod(m, void *), m->m_len, "MbufChain");
sys/kern/subr_tftproot.c
258
tftp = mtod(m_outbuf, struct tftphdr *);
sys/kern/subr_tftproot.c
320
if ((error = (*so->so_send)(so, mtod(m_serv, struct sockaddr *), NULL,
sys/kern/subr_tftproot.c
386
tftp = mtod(m, struct tftphdr *);
sys/kern/uipc_mbuf.c
1075
memcpy(mtod(m, char *) + m->m_len, mtod(n, void *),
sys/kern/uipc_mbuf.c
1160
ALIGNED_POINTER((mtod(n, char *) + off), uint32_t))
sys/kern/uipc_mbuf.c
1218
m_copydata(n->m_next, 0, tlen, mtod(n, char *) + n->m_len);
sys/kern/uipc_mbuf.c
1230
memcpy(mtod(n->m_next, void *), mtod(n, char *) + off, hlen);
sys/kern/uipc_mbuf.c
1255
memcpy(mtod(o, void *), mtod(n, char *) + off, hlen);
sys/kern/uipc_mbuf.c
1258
m_copydata(n->m_next, 0, tlen, mtod(o, char *) + o->m_len);
sys/kern/uipc_mbuf.c
1297
memcpy(mtod(m, char *) + m->m_len, mtod(n, void *),
sys/kern/uipc_mbuf.c
1377
memcpy(mtod(n, void *), mtod(m, char *) + len, remain);
sys/kern/uipc_mbuf.c
1448
memcpy(mtod(m, void *), cp, (size_t)len);
sys/kern/uipc_mbuf.c
1586
memset(mtod(m, char *) + m->m_len, 0,
sys/kern/uipc_mbuf.c
1607
memset(mtod(n, char *), 0, uimin(n->m_len, off));
sys/kern/uipc_mbuf.c
1669
datap = mtod(n, char *);
sys/kern/uipc_mbuf.c
1694
memcpy(mtod(m, char *) + off, cp, (unsigned)mlen);
sys/kern/uipc_mbuf.c
1766
m_copydata(m, 0, m->m_len, mtod(m0, void *));
sys/kern/uipc_mbuf.c
1773
memcpy(m->m_data, mtod(m0, void *), m->m_len);
sys/kern/uipc_mbuf.c
1781
mtod(m, char *) + m->m_len);
sys/kern/uipc_mbuf.c
1808
mtod(mn, void *));
sys/kern/uipc_mbuf.c
1918
rval = (*f)(arg, mtod(m, char *) + off, count);
sys/kern/uipc_mbuf.c
809
memcpy(mtod(n, void *), mtod(m, char *) + off,
sys/kern/uipc_mbuf.c
813
memcpy(mtod(n, void *), mtod(m, char *) + off,
sys/kern/uipc_mbuf.c
864
memcpy(mtod(n, char *), mtod(m, char *), n->m_len);
sys/kern/uipc_mbuf.c
882
memcpy(mtod(n, char *), mtod(m, char *), n->m_len);
sys/kern/uipc_mbuf.c
922
memcpy(cp, mtod(m, char *) + off, count);
sys/kern/uipc_mbuf.c
949
memcpy(mtod(m, char *) + m->m_len, mtod(n, void *),
sys/kern/uipc_mbufdebug.c
123
memcpy(cp, mtod(m, char *) + off, count);
sys/kern/uipc_socket.c
1051
error = uiomove(mtod(m, void *), (int)len, uio);
sys/kern/uipc_socket.c
1199
error = uiomove(mtod(m, void *),
sys/kern/uipc_socket.c
1402
type = mtod(cm, struct cmsghdr *)->cmsg_type;
sys/kern/uipc_socket.c
1491
error = uiomove(mtod(m, char *) + moff, len, uio);
sys/kern/uipc_socket.c
2222
memcpy(mtod(m, void *), sopt->sopt_data, sopt->sopt_size);
sys/kern/uipc_socket2.c
1069
memcpy(mtod(m, void *), asa, asa->sa_len);
sys/kern/uipc_socket2.c
1121
memcpy(mtod(m, void *), asa, salen);
sys/kern/uipc_socket2.c
1297
memcpy(mtod(n, char *) + n->m_len, mtod(m, void *),
sys/kern/uipc_socket2.c
1446
cp = mtod(m, struct cmsghdr *);
sys/kern/uipc_syscalls.c
1452
ktrkuser(mbuftypes[MT_SONAME], mtod(addr, void *), len);
sys/kern/uipc_syscalls.c
1453
error = copyout(mtod(addr, void *), asa, len);
sys/kern/uipc_syscalls.c
1585
error = copyin(bf, mtod(m, void *), buflen);
sys/kern/uipc_syscalls.c
1591
memcpy(mtod(m, void *), bf, buflen);
sys/kern/uipc_syscalls.c
1596
ktrkuser(mbuftypes[type], mtod(m, void *), buflen);
sys/kern/uipc_syscalls.c
1598
struct sockaddr *sa = mtod(m, struct sockaddr *);
sys/kern/uipc_syscalls.c
1614
mhdr.msg_control = mtod(m, void *);
sys/kern/uipc_syscalls.c
1618
KASSERT(((char *)cmsg - mtod(m, char *)) <= buflen);
sys/kern/uipc_syscalls.c
1620
buflen - ((char *)cmsg - mtod(m, char *)))
sys/kern/uipc_syscalls.c
601
sa = mtod(to, struct sockaddr *);
sys/kern/uipc_syscalls.c
808
cm = mtod(m, struct cmsghdr *);
sys/kern/uipc_syscalls.c
828
cmsg = mtod(control, struct cmsghdr *);
sys/kern/uipc_syscalls.c
859
cmsg = mtod(m, struct cmsghdr *);
sys/kern/uipc_syscalls.c
869
error = copyout(mtod(m, void *), q, i);
sys/kern/uipc_usrreq.c
1410
struct cmsghdr * const cm = mtod(rights, struct cmsghdr *);
sys/kern/uipc_usrreq.c
1532
memset(&mtod(rights, char *)[cm->cmsg_len], 0, rights->m_len -
sys/kern/uipc_usrreq.c
1543
struct cmsghdr *newcm, *cm = mtod(control, struct cmsghdr *);
sys/kern/uipc_usrreq.c
1921
cm = mtod(m, struct cmsghdr *);
sys/net/agr/ieee8023ad_lacp.c
130
du = mtod(m, struct lacpdu *);
sys/net/agr/ieee8023ad_lacp.c
217
du = mtod(m, struct lacpdu *);
sys/net/agr/ieee8023ad_marker.c
84
mdu = mtod(m, struct markerdu *);
sys/net/agr/if_agrether_hash.c
62
result = mtod(m, char *) + off;
sys/net/bpf.c
1669
memcpy(dst, mtod(m, const void *), count);
sys/net/bpf.c
1813
marg = mtod(m, void *);
sys/net/bpf.c
1863
hp = mtod(*m, u_char *);
sys/net/bpf.c
1891
hp = mtod(&m0, u_char *);
sys/net/bpf.c
426
error = uiomove(mtod(m, void *), len, uio);
sys/net/bpf.c
440
slen = bpf_xfilter(wfilter, mtod(m, u_char *), len, len);
sys/net/bpf.c
450
memcpy(&af, mtod(m0, void *), sizeof(af));
sys/net/bpf.c
454
memcpy(sockp->sa_data, mtod(m0, void *), hlen);
sys/net/bpf_filter.c
130
cp = mtod(m, u_char *) + k;
sys/net/bpf_filter.c
139
np = mtod(m0, u_char *);
sys/net/bpf_filter.c
160
cp = mtod(m, u_char *) + k;
sys/net/bpf_filter.c
169
return (cp[0] << 8) | mtod(m0, u_char *)[0];
sys/net/bpf_filter.c
180
return mtod(m, u_char *)[k];
sys/net/bridgestp.c
234
eh = mtod(m, struct ether_header *);
sys/net/bridgestp.c
276
memcpy(mtod(m, char *) + sizeof(*eh), &bpdu, sizeof(bpdu));
sys/net/bridgestp.c
381
eh = mtod(m, struct ether_header *);
sys/net/bridgestp.c
393
memcpy(mtod(m, char *) + sizeof(*eh), &bpdu, sizeof(bpdu));
sys/net/bridgestp.c
597
eh = mtod(m, struct ether_header *);
sys/net/bridgestp.c
614
memcpy(&tpdu, mtod(m, void *), sizeof(tpdu));
sys/net/bridgestp.c
636
memcpy(&cpdu, mtod(m, void *), sizeof(cpdu));
sys/net/bsd-comp.c
1053
dmp->m_len = wptr - mtod(dmp, u_char *);
sys/net/bsd-comp.c
477
m->m_len = wptr - mtod(m, u_char *); \
sys/net/bsd-comp.c
484
wptr = mtod(m, u_char *); \
sys/net/bsd-comp.c
507
rptr = mtod(mp, u_char *);
sys/net/bsd-comp.c
527
wptr = mtod(m, u_char *);
sys/net/bsd-comp.c
555
rptr = mtod(mp, u_char *);
sys/net/bsd-comp.c
631
m->m_len = wptr - mtod(m, u_char *);
sys/net/bsd-comp.c
686
rptr = mtod(dmsg, u_char *);
sys/net/bsd-comp.c
700
rptr = mtod(dmsg, u_char *);
sys/net/bsd-comp.c
815
rptr = mtod(cmp, u_char *);
sys/net/bsd-comp.c
826
rptr = mtod(cmp, u_char *);
sys/net/bsd-comp.c
856
wptr = mtod(dmp, u_char *);
sys/net/bsd-comp.c
876
rptr = mtod(cmp, u_char *);
sys/net/bsd-comp.c
959
dmp->m_len = wptr - mtod(dmp, u_char *);
sys/net/bsd-comp.c
976
wptr = mtod(dmp, u_char *);
sys/net/ether_sw_offload.c
100
ep = mtod(m, struct ether_header *);
sys/net/ether_sw_offload.c
189
eh = mtod(m, struct ether_header *);
sys/net/ether_sw_offload.c
211
ip = (void *)(mtod(m, char *) + ehlen);
sys/net/ether_sw_offload.c
224
ip6 = (void *)(mtod(m, char *) + ehlen);
sys/net/ether_sw_offload.c
299
th = (void *)(mtod(m, char *) + l4offset);
sys/net/ether_sw_offload.c
323
uh = (void *)(mtod(m, char *) + l4offset);
sys/net/if.h
1053
(m)->m_pkthdr.pattr_hdr = mtod((m), void *); \
sys/net/if_arcsubr.c
168
arph = mtod(m, struct arphdr *);
sys/net/if_arcsubr.c
272
ah = mtod(m, struct arc_header *);
sys/net/if_arcsubr.c
299
ah = mtod(m, struct arc_header *);
sys/net/if_arcsubr.c
309
ah = mtod(m, struct arc_header *);
sys/net/if_arcsubr.c
321
ah = mtod(m, struct arc_header *);
sys/net/if_arcsubr.c
361
ah = mtod(m, struct arc_header *);
sys/net/if_arcsubr.c
381
ah = mtod(m, struct arc_header *);
sys/net/if_arcsubr.c
415
ah1 = mtod(m1, struct arc_header *);
sys/net/if_arcsubr.c
516
ah = mtod(m, struct arc_header *);
sys/net/if_arcsubr.c
542
mtod(m, struct arphdr *)->ar_pro = htons(ETHERTYPE_IP);
sys/net/if_arcsubr.c
550
mtod(m, struct arphdr *)->ar_pro = htons(ETHERTYPE_IP);
sys/net/if_bridge.c
1578
eh = mtod(m, struct ether_header *);
sys/net/if_bridge.c
1851
eh = mtod(m, struct ether_header *);
sys/net/if_bridge.c
2027
eh = mtod(m, struct ether_header *);
sys/net/if_bridge.c
2727
eh1 = mtod(*mp, struct ether_header *);
sys/net/if_bridge.c
2818
bcopy(&llc1, mtod(*mp, void *), sizeof(struct llc));
sys/net/if_bridge.c
2824
bcopy(&eh2, mtod(*mp, void *), ETHER_HDR_LEN);
sys/net/if_bridge.c
2861
ip = mtod(m, struct ip *);
sys/net/if_bridge.c
2878
ip = mtod(m, struct ip *);
sys/net/if_bridge.c
2958
ip6 = mtod(m, struct ip6_hdr *);
sys/net/if_ethersubr.c
1029
memcpy(&evl, mtod(m, char *), ETHER_HDR_LEN);
sys/net/if_ethersubr.c
1860
memmove(mtod(m, void *),
sys/net/if_ethersubr.c
1861
mtod(m, char *) + ETHER_VLAN_ENCAP_LEN,
sys/net/if_ethersubr.c
1863
evl = mtod(m, struct ether_vlan_header *);
sys/net/if_ethersubr.c
1906
evl = mtod(m, struct ether_vlan_header *);
sys/net/if_ethersubr.c
300
ah = mtod(m, struct arphdr *);
sys/net/if_ethersubr.c
390
memcpy(mtod(m, void *), &llc, sizeof(struct llc));
sys/net/if_ethersubr.c
450
eh = mtod(m, struct ether_header *);
sys/net/if_ethersubr.c
528
eh = mtod(m, struct ether_header *);
sys/net/if_ethersubr.c
588
hdr = mtod(m, void *);
sys/net/if_ethersubr.c
712
eh = mtod(m, struct ether_header *);
sys/net/if_ethersubr.c
774
eh = mtod(m, struct ether_header *);
sys/net/if_ethersubr.c
792
eh = mtod(m, struct ether_header *);
sys/net/if_faith.c
186
af = *(mtod(m, int *));
sys/net/if_gif.c
569
*mtod(m, int *) = dst->sa_family;
sys/net/if_gif.c
615
family = *mtod(m, int *);
sys/net/if_gif.c
671
family = *mtod(m, int *);
sys/net/if_gre.c
407
memcpy(&gh, mtod(m, void *), sizeof(gh));
sys/net/if_gre.c
622
mtod(m, struct cmsghdr *)->cmsg_type == SCM_RIGHTS)
sys/net/if_gre.c
934
memcpy(mtod(m, void *), &gh, sizeof(gh));
sys/net/if_ieee1394subr.c
148
ah = mtod(m0, struct arphdr *);
sys/net/if_ieee1394subr.c
264
iuh = mtod(m0, struct ieee1394_unfraghdr *);
sys/net/if_ieee1394subr.c
275
ifh = mtod(m0, struct ieee1394_fraghdr *);
sys/net/if_ieee1394subr.c
291
ifh = mtod(m, struct ieee1394_fraghdr *);
sys/net/if_ieee1394subr.c
338
iuh = mtod(m, struct ieee1394_unfraghdr *);
sys/net/if_ieee1394subr.c
343
iuh = mtod(m, struct ieee1394_unfraghdr *);
sys/net/if_ieee1394subr.c
416
ifh = mtod(m0, struct ieee1394_fraghdr *);
sys/net/if_ieee1394subr.c
530
iuh = mtod(m0, struct ieee1394_unfraghdr *);
sys/net/if_ipsec.c
1594
memset(mtod(m, void *), 0, m->m_len);
sys/net/if_ipsec.c
1633
memset(mtod(m, void *), 0, m->m_len);
sys/net/if_ipsec.c
655
*mtod(m, int *) = dst->sa_family;
sys/net/if_l2tp.c
1498
*mtod(m, struct ether_vlan_header *) = evh;
sys/net/if_l2tp.c
1513
*mtod(m, struct ether_header *) = *eh;
sys/net/if_l2tp.c
1529
*mtod(m, struct ether_header *) = *eh;
sys/net/if_l2tp.c
445
*mtod(m, int *) = dst->sa_family;
sys/net/if_l2tp.c
575
addr = mtod(m, vaddr_t);
sys/net/if_l2tp.c
617
memcpy(mtod(m_head, void *), mtod(m, void *), copy_length);
sys/net/if_loop.c
290
*(mtod(m, uint32_t *)) = dst->sa_family;
sys/net/if_loop.c
394
af = *(mtod(m, uint32_t *));
sys/net/if_mpls.c
333
sh->s_addr = ntohl(mtod(m, union mpls_shim *)->s_addr);
sys/net/if_mpls.c
363
dst.smpls_addr.s_addr = ntohl(mtod(m, union mpls_shim *)->s_addr);
sys/net/if_mpls.c
449
htag = mtod(m, union mpls_shim *);
sys/net/if_mpls.c
540
ms.s_addr = ntohl(mtod(m, union mpls_shim *)->s_addr);
sys/net/if_mpls.c
552
iph = mtod(m, struct ip *);
sys/net/if_mpls.c
561
iph = mtod(m, struct ip *);
sys/net/if_mpls.c
640
ms.s_addr = ntohl(mtod(m, union mpls_shim *)->s_addr);
sys/net/if_mpls.c
648
ip6hdr = mtod(m, struct ip6_hdr *);
sys/net/if_mpls.c
707
shim = mtod(m, union mpls_shim *);
sys/net/if_ppp.c
1052
switch (PPP_PROTOCOL(mtod(m, u_char *))) {
sys/net/if_ppp.c
1151
cp = mtod(m, u_char *);
sys/net/if_ppp.c
1172
ip = mtod(mp, struct ip *);
sys/net/if_ppp.c
1187
cp = mtod(m, u_char *);
sys/net/if_ppp.c
1226
cp = mtod(m, u_char *);
sys/net/if_ppp.c
1251
if (mtod(m, u_char *) == cp) {
sys/net/if_ppp.c
1312
dp = mtod(mp, u_char *);
sys/net/if_ppp.c
1315
dp = mtod(mp, u_char *) + PPP_HDRLEN;
sys/net/if_ppp.c
1318
ep = mtod(mp, u_char *) + mp->m_len;
sys/net/if_ppp.c
1325
dp, slen, mtod(mp, u_char *), mp->m_len);
sys/net/if_ppp.c
1466
cp = mtod(m, u_char *);
sys/net/if_ppp.c
1500
cp = mtod(m, u_char *);
sys/net/if_ppp.c
1579
cp = mtod(mp, u_char *);
sys/net/if_ppp.c
1595
bcopy(mtod(m, u_char *),
sys/net/if_ppp.c
1596
mtod(mp, u_char *) + mp->m_len, m->m_len);
sys/net/if_ppp.c
1632
m_copydata(m, 0, ilen, mtod(mp, void *));
sys/net/if_ppp.c
906
ip = mtod(m0, struct ip *);
sys/net/if_ppp.c
923
ip = mtod(m0, struct ip *);
sys/net/if_ppp.c
963
cp = mtod(m0, u_char *);
sys/net/if_pppoe.c
1155
memcpy(shost, mtod(m, struct ether_header*)->ether_shost,
sys/net/if_pppoe.c
1157
memcpy(dhost, mtod(m, struct ether_header*)->ether_dhost,
sys/net/if_pppoe.c
1171
ph = mtod(m, struct pppoehdr *);
sys/net/if_pppoe.c
1501
p = mtod(m0, uint8_t *);
sys/net/if_pppoe.c
1529
if (p - mtod(m0, uint8_t *) != len + PPPOE_HEADERLEN)
sys/net/if_pppoe.c
1531
(long)(len + PPPOE_HEADERLEN), (long)(p - mtod(m0, uint8_t *)));
sys/net/if_pppoe.c
1785
p = mtod(m0, uint8_t *);
sys/net/if_pppoe.c
1819
if (p - mtod(m0, uint8_t *) != len + PPPOE_HEADERLEN)
sys/net/if_pppoe.c
1821
(long)(len + PPPOE_HEADERLEN), (long)(p - mtod(m0, uint8_t *)));
sys/net/if_pppoe.c
1840
p = mtod(m0, uint8_t *);
sys/net/if_pppoe.c
1872
p = mtod(m0, uint8_t *);
sys/net/if_pppoe.c
1913
p = mtod(m0, uint8_t *);
sys/net/if_pppoe.c
2017
p = mtod(m, uint8_t *);
sys/net/if_pppoe.c
2053
p = mtod(m, uint8_t *);
sys/net/if_pppoe.c
661
eh = mtod(m, struct ether_header *);
sys/net/if_pppoe.c
729
mtod(n, char*) + noff, len,
sys/net/if_pppoe.c
745
hunique = mtod(n, uint8_t *) + noff;
sys/net/if_pppoe.c
758
ac_cookie = mtod(n, char *) + noff;
sys/net/if_pppoe.c
771
relay_sid = mtod(n, char *) + noff;
sys/net/if_pppoe.c
800
mtod(n, char*) + noff, len,
sys/net/if_sl.c
504
ip = mtod(m, struct ip *);
sys/net/if_sl.c
780
if ((ip = mtod(m, struct ip *))->ip_p == IPPROTO_TCP) {
sys/net/if_sl.c
782
*mtod(m, u_char *) |=
sys/net/if_sl.c
787
bpf_mtap_sl_out(&sc->sc_if, mtod(m, u_char *), bpf_m);
sys/net/if_sl.c
806
bp = cp = mtod(m, u_char *);
sys/net/if_sl.c
889
pktstart = mtod(m, u_char *);
sys/net/if_sl.c
958
memcpy(mtod(n, void *), mtod(m, void *), pktlen);
sys/net/if_spppsubr.c
1042
*mtod(m, uint16_t *) = protocol;
sys/net/if_spppsubr.c
1507
*mtod(m, uint16_t *) = htons(proto);
sys/net/if_spppsubr.c
1508
lh = (struct lcp_header *)(mtod(m, uint8_t *) + 2);
sys/net/if_spppsubr.c
1511
h = mtod(m, struct ppp_header *);
sys/net/if_spppsubr.c
1678
h = mtod(m, struct lcp_header *);
sys/net/if_spppsubr.c
2212
h = mtod(m, struct lcp_header *);
sys/net/if_spppsubr.c
2300
h = mtod(m, struct lcp_header *);
sys/net/if_spppsubr.c
4648
h = mtod(m, struct lcp_header *);
sys/net/if_spppsubr.c
5073
h = mtod(m, struct lcp_header *);
sys/net/if_spppsubr.c
5299
*mtod(m, uint16_t *) = htons(cp->proto);
sys/net/if_spppsubr.c
5301
lh = (struct lcp_header *)(mtod(m, uint8_t *)+2);
sys/net/if_spppsubr.c
5304
h = mtod(m, struct ppp_header *);
sys/net/if_spppsubr.c
669
memcpy(&protocol, mtod(m, void *), 2);
sys/net/if_spppsubr.c
675
h = mtod(m, struct ppp_header *);
sys/net/if_spppsubr.c
897
ip = mtod(m, struct ip *);
sys/net/if_spppsubr.c
963
h = mtod(m, struct ppp_header *);
sys/net/if_srt.c
229
ip = mtod(m,struct ip *);
sys/net/if_srt.c
237
ip = mtod(m,struct ip6_hdr *);
sys/net/if_stf.c
396
ip6 = mtod(m, struct ip6_hdr *);
sys/net/if_stf.c
422
ip = mtod(m, struct ip *);
sys/net/if_stf.c
599
ip = mtod(m, struct ip *);
sys/net/if_stf.c
626
ip6 = mtod(m, struct ip6_hdr *);
sys/net/if_tap.c
900
error = uiomove(mtod(m, void *),
sys/net/if_tap.c
994
error = uiomove(mtod(*mp, void *), (*mp)->m_len, uio);
sys/net/if_tun.c
606
memcpy(mtod(m0, char *), dst, dst->sa_len);
sys/net/if_tun.c
615
af = mtod(m0,uint32_t *);
sys/net/if_tun.c
829
error = uiomove(mtod(m0, void *), len, uio);
sys/net/if_tun.c
946
error = uiomove(mtod(m, void *), m->m_len, uio);
sys/net/if_vlan.c
1269
eh = mtod(m, struct ether_header *);
sys/net/if_vlan.c
1362
eh = mtod(m, struct ether_header *);
sys/net/if_vlan.c
1490
eh = mtod(m, struct ether_header *);
sys/net/if_wg.c
2067
wgmi = mtod(m, struct wg_msg_init *);
sys/net/if_wg.c
2492
wgmr = mtod(m, struct wg_msg_resp *);
sys/net/if_wg.c
2649
wgmc = mtod(m, struct wg_msg_cookie *);
sys/net/if_wg.c
3047
wgmd = mtod(m, struct wg_msg_data *);
sys/net/if_wg.c
3121
encrypted_buf = mtod(m, char *) + sizeof(*wgmd);
sys/net/if_wg.c
3133
wgmd = mtod(m, struct wg_msg_data *);
sys/net/if_wg.c
3151
decrypted_buf = mtod(n, char *);
sys/net/if_wg.c
3423
wgm = mtod(m, struct wg_msg *);
sys/net/if_wg.c
3482
src = mtod(paddr, struct sockaddr *);
sys/net/if_wg.c
4645
padded_buf = mtod(m, char *);
sys/net/if_wg.c
4664
wgmd = mtod(n, struct wg_msg_data *);
sys/net/if_wg.c
5657
pkt = mtod(m, void *);
sys/net/if_wg.c
5691
pkt = mtod(m, void *);
sys/net/if_wg.c
5738
ip = mtod(m, struct ip *);
sys/net/if_wg.c
5748
ip6 = mtod(m, struct ip6_hdr *);
sys/net/if_wg.c
5757
pkt = mtod(m, void *);
sys/net/lagg/if_lagg.c
1151
eh = mtod(m, struct ether_header *);
sys/net/lagg/if_lagg_lacp.c
1036
du = mtod(m, struct lacpdu *);
sys/net/lagg/if_lagg_lacp.c
1101
mdu = mtod(m_info, struct markerdu *);
sys/net/lagg/if_lagg_lacp.c
1200
mdu = mtod(m, struct markerdu *);
sys/net/lagg/if_lagg_lacp.c
1247
eh = mtod(m, struct ether_header *);
sys/net/lagg/if_lagg_lacp.c
1400
du = mtod(m, struct lacpdu *);
sys/net/lagg/if_lagg_lacp.c
1464
du = mtod(m, struct lacpdu *);
sys/net/lagg/if_lagg_lacp.c
2620
mdu = mtod(m, struct markerdu *);
sys/net/lagg/if_lagg_lacp.c
2675
mdu = mtod(m, struct markerdu *);
sys/net/lagg/if_laggproto.h
235
((uintptr_t)(mtod(m, uint8_t *) + off) % align) == 0) {
sys/net/lagg/if_laggproto.h
236
rv = mtod(m, uint8_t *) + off;
sys/net/npf/npf_ext_route.c
285
ip6 = mtod(m, struct ip6_hdr *);
sys/net/npf/npf_inet.c
592
ether = mtod(m, struct ether_header *);
sys/net/npf/npf_mbuf.c
108
const unsigned off = (uintptr_t)nbuf->nb_nptr - mtod(m, uintptr_t);
sys/net/npf/npf_mbuf.c
147
off = (uintptr_t)nbuf->nb_nptr - mtod(m, uintptr_t) + len;
sys/net/npf/npf_mbuf.c
165
d = mtod(m, uint8_t *);
sys/net/npf/npf_mbuf.c
190
const size_t off = (uintptr_t)nbuf->nb_nptr - mtod(n, uintptr_t);
sys/net/npf/npf_mbuf.c
229
nbuf->nb_nptr = mtod(m, uint8_t *) + foff;
sys/net/npf/npf_mbuf.c
244
const unsigned off = (uintptr_t)nbuf->nb_nptr - mtod(m, uintptr_t);
sys/net/npf/npf_mbuf.c
264
nbuf->nb_nptr = mtod(m, uint8_t *) + off;
sys/net/npf/npf_mbuf.c
94
nbuf->nb_nptr = mtod(m, void *);
sys/net/npf/npf_sendpkt.c
135
ip = mtod(m, struct ip *);
sys/net/npf/npf_sendpkt.c
152
ip6 = mtod(m, struct ip6_hdr *);
sys/net/npf/npf_sendpkt.c
229
struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *);
sys/net/pktqueue.c
304
ip = mtod(m, struct ip *);
sys/net/ppp-deflate.c
236
rptr = mtod(mp, u_char *);
sys/net/ppp-deflate.c
257
wptr = mtod(m, u_char *);
sys/net/ppp-deflate.c
282
state->strm.avail_in = mtod(mp, u_char *) + mp->m_len - rptr;
sys/net/ppp-deflate.c
296
state->strm.next_in = mtod(mp, u_char *);
sys/net/ppp-deflate.c
312
state->strm.next_out = mtod(m, u_char *);
sys/net/ppp-deflate.c
467
rptr = mtod(mi, u_char *);
sys/net/ppp-deflate.c
474
rptr = mtod(mi, u_char *);
sys/net/ppp-deflate.c
509
wptr = mtod(mo, u_char *);
sys/net/ppp-deflate.c
546
state->strm.next_in = mtod(mi, u_char *);
sys/net/ppp-deflate.c
574
state->strm.next_out = mtod(mo, u_char *);
sys/net/ppp-deflate.c
612
rptr = mtod(mi, u_char *);
sys/net/ppp-deflate.c
646
state->strm.next_in = mtod(mi, u_char *);
sys/net/ppp_tty.c
1025
sc->sc_mp = mtod(m, char *);
sys/net/ppp_tty.c
345
if ((error = uiomove(mtod(m, u_char *), m->m_len, uio)) != 0)
sys/net/ppp_tty.c
387
if ((error = uiomove(mtod(m, u_char *), len, uio)) != 0) {
sys/net/ppp_tty.c
405
bcopy(mtod(m0, u_char *), dst.sa_data, PPP_HDRLEN);
sys/net/ppp_tty.c
576
sc->sc_outfcs = pppfcs(PPP_INITFCS, mtod(m, uint8_t *), m->m_len);
sys/net/ppp_tty.c
580
start = mtod(m, u_char *);
sys/net/ppp_tty.c
678
sc->sc_outfcs = pppfcs(sc->sc_outfcs, mtod(m, uint8_t *), m->m_len);
sys/net/ppp_tty.c
970
sc->sc_mp = mtod(m, char *);
sys/net/rss_config.c
101
ip = mtod(m, struct ip *);
sys/net/rss_config.c
117
th = (struct tcphdr *)(mtod(m, char *) + hlen);
sys/net/rss_config.c
150
uh = (struct udphdr *)(mtod(m, char *) + hlen);
sys/net/rss_config.c
202
ip6 = mtod(m, struct ip6_hdr *);
sys/net/rss_config.c
215
th = (struct tcphdr *)(mtod(m, char *) + hlen);
sys/net/rss_config.c
247
uh = (struct udphdr *)(mtod(m, char *) + hlen);
sys/net/rtsock_shared.c
1287
(void)memset(mtod(m, char *) + datalen, 0, len - datalen);
sys/net/rtsock_shared.c
1288
rtm = mtod(m, struct rt_xmsghdr *);
sys/net/rtsock_shared.c
1420
mtod(m, struct rt_xmsghdr *)->rtm_addrs = info.rti_addrs;
sys/net/rtsock_shared.c
1536
mtod(m, struct ifa_xmsghdr *)->ifam_addrs =
sys/net/rtsock_shared.c
1555
mtod(m, struct rt_xmsghdr *)->rtm_addrs = info.rti_addrs;
sys/net/rtsock_shared.c
1653
(void)memcpy(mtod(n, void *), data, data_len);
sys/net/rtsock_shared.c
1657
(void)memcpy(mtod(m, uint8_t *) + m->m_len, data, data_len);
sys/net/rtsock_shared.c
1662
mtod(m, struct if_xannouncemsghdr *)->ifan_msglen += data_len;
sys/net80211/ieee80211_crypto.c
554
wh = mtod(m, struct ieee80211_frame *);
sys/net80211/ieee80211_crypto.c
578
hdrlen = ieee80211_hdrspace(ic, mtod(m, void *));
sys/net80211/ieee80211_crypto.c
586
hdr = mtod(m, u_int8_t *);
sys/net80211/ieee80211_crypto.c
631
wh = mtod(m, struct ieee80211_frame *);
sys/net80211/ieee80211_crypto_ccmp.c
153
hdrlen = ieee80211_hdrspace(ic, mtod(m, void *));
sys/net80211/ieee80211_crypto_ccmp.c
154
ivp = mtod(m, u_int8_t *) + hdrlen;
sys/net80211/ieee80211_crypto_ccmp.c
212
wh = mtod(m, struct ieee80211_frame *);
sys/net80211/ieee80211_crypto_ccmp.c
213
ivp = mtod(m, uint8_t *) + hdrlen;
sys/net80211/ieee80211_crypto_ccmp.c
248
memmove(mtod(m, u_int8_t *) + ccmp.ic_header, mtod(m, void *), hdrlen);
sys/net80211/ieee80211_crypto_ccmp.c
371
wh = mtod(m, struct ieee80211_frame *);
sys/net80211/ieee80211_crypto_ccmp.c
396
wh = mtod(m, struct ieee80211_frame *);
sys/net80211/ieee80211_crypto_none.c
104
struct ieee80211_frame *wh = mtod(m, struct ieee80211_frame *);
sys/net80211/ieee80211_crypto_none.c
123
struct ieee80211_frame *wh = mtod(m, struct ieee80211_frame *);
sys/net80211/ieee80211_crypto_tkip.c
171
struct ieee80211_frame *wh = mtod(m, struct ieee80211_frame *);
sys/net80211/ieee80211_crypto_tkip.c
181
hdrlen = ieee80211_hdrspace(ic, mtod(m, void *));
sys/net80211/ieee80211_crypto_tkip.c
182
ivp = mtod(m, u_int8_t *) + hdrlen;
sys/net80211/ieee80211_crypto_tkip.c
215
struct ieee80211_frame *wh = mtod(m, struct ieee80211_frame *);
sys/net80211/ieee80211_crypto_tkip.c
256
wh = mtod(m, struct ieee80211_frame *);
sys/net80211/ieee80211_crypto_tkip.c
257
ivp = mtod(m, uint8_t *) + hdrlen;
sys/net80211/ieee80211_crypto_tkip.c
309
memmove(mtod(m, uint8_t *) + tkip.ic_header, mtod(m, void *), hdrlen);
sys/net80211/ieee80211_crypto_tkip.c
325
struct ieee80211_frame *wh = mtod(m, struct ieee80211_frame *);
sys/net80211/ieee80211_crypto_tkip.c
601
pos = mtod(m, uint8_t *) + off;
sys/net80211/ieee80211_crypto_tkip.c
620
pos = mtod(m, uint8_t *);
sys/net80211/ieee80211_crypto_tkip.c
658
pos = mtod(m, uint8_t *) + off;
sys/net80211/ieee80211_crypto_tkip.c
678
pos = mtod(m, uint8_t *);
sys/net80211/ieee80211_crypto_tkip.c
802
michael_mic_hdr(mtod(m, struct ieee80211_frame *), hdr);
sys/net80211/ieee80211_crypto_tkip.c
818
data = mtod(m, const uint8_t *) + off;
sys/net80211/ieee80211_crypto_tkip.c
858
data = mtod(m, const uint8_t *);
sys/net80211/ieee80211_crypto_tkip.c
883
wh = mtod(m, struct ieee80211_frame *);
sys/net80211/ieee80211_crypto_tkip.c
918
wh = mtod(m, struct ieee80211_frame *);
sys/net80211/ieee80211_crypto_wep.c
135
hdrlen = ieee80211_hdrspace(ic, mtod(m, void *));
sys/net80211/ieee80211_crypto_wep.c
136
ivp = mtod(m, u_int8_t *) + hdrlen;
sys/net80211/ieee80211_crypto_wep.c
211
wh = mtod(m, struct ieee80211_frame *);
sys/net80211/ieee80211_crypto_wep.c
230
memmove(mtod(m, u_int8_t *) + wep.ic_header, mtod(m, void *), hdrlen);
sys/net80211/ieee80211_crypto_wep.c
322
memcpy(rc4key, mtod(m, u_int8_t *) + hdrlen, IEEE80211_WEP_IVLEN);
sys/net80211/ieee80211_crypto_wep.c
341
pos = mtod(m, uint8_t *) + off;
sys/net80211/ieee80211_crypto_wep.c
359
ether_sprintf(mtod(m0,
sys/net80211/ieee80211_crypto_wep.c
367
pos = mtod(m, uint8_t *);
sys/net80211/ieee80211_crypto_wep.c
404
memcpy(rc4key, mtod(m, u_int8_t *) + hdrlen, IEEE80211_WEP_IVLEN);
sys/net80211/ieee80211_crypto_wep.c
423
pos = mtod(m, uint8_t *) + off;
sys/net80211/ieee80211_crypto_wep.c
443
ether_sprintf(mtod(m0,
sys/net80211/ieee80211_crypto_wep.c
450
pos = mtod(m, uint8_t *);
sys/net80211/ieee80211_input.c
1029
m_copydata(m, off, n->m_len, mtod(n, void *));
sys/net80211/ieee80211_input.c
1040
eh = mtod(m, struct ether_header *);
sys/net80211/ieee80211_input.c
168
wh = mtod(m, struct ieee80211_frame *);
sys/net80211/ieee80211_input.c
179
wh = mtod(m, struct ieee80211_frame *);
sys/net80211/ieee80211_input.c
2073
wh = mtod(m0, struct ieee80211_frame *);
sys/net80211/ieee80211_input.c
2075
efrm = mtod(m0, u_int8_t *) + m0->m_len;
sys/net80211/ieee80211_input.c
2151
scan.sp_timoff = frm - mtod(m0, u_int8_t *);
sys/net80211/ieee80211_input.c
2354
wh = mtod(m0, struct ieee80211_frame *);
sys/net80211/ieee80211_input.c
2356
efrm = mtod(m0, u_int8_t *) + m0->m_len;
sys/net80211/ieee80211_input.c
2461
wh = mtod(m0, struct ieee80211_frame *);
sys/net80211/ieee80211_input.c
2463
efrm = mtod(m0, u_int8_t *) + m0->m_len;
sys/net80211/ieee80211_input.c
2545
wh = mtod(m0, struct ieee80211_frame *);
sys/net80211/ieee80211_input.c
2547
efrm = mtod(m0, u_int8_t *) + m0->m_len;
sys/net80211/ieee80211_input.c
2786
wh = mtod(m0, struct ieee80211_frame *);
sys/net80211/ieee80211_input.c
2788
efrm = mtod(m0, u_int8_t *) + m0->m_len;
sys/net80211/ieee80211_input.c
2924
wh = mtod(m0, struct ieee80211_frame *);
sys/net80211/ieee80211_input.c
2926
efrm = mtod(m0, u_int8_t *) + m0->m_len;
sys/net80211/ieee80211_input.c
2979
wh = mtod(m0, struct ieee80211_frame *);
sys/net80211/ieee80211_input.c
2981
efrm = mtod(m0, u_int8_t *) + m0->m_len;
sys/net80211/ieee80211_input.c
3039
wh = mtod(m0, struct ieee80211_frame *);
sys/net80211/ieee80211_input.c
309
wh = mtod(m, struct ieee80211_frame *);
sys/net80211/ieee80211_input.c
3163
wh = mtod(m0, struct ieee80211_frame_min *);
sys/net80211/ieee80211_input.c
331
eh = mtod(m, struct ether_header *);
sys/net80211/ieee80211_input.c
396
wh = mtod(m, struct ieee80211_frame *);
sys/net80211/ieee80211_input.c
452
wh = mtod(m, struct ieee80211_frame *);
sys/net80211/ieee80211_input.c
485
wh = mtod(m, struct ieee80211_frame *);
sys/net80211/ieee80211_input.c
555
wh = mtod(m, struct ieee80211_frame *);
sys/net80211/ieee80211_input.c
681
qosf = mtod(m, struct ieee80211_qosframe *);
sys/net80211/ieee80211_input.c
763
struct ieee80211_frame *wh = mtod(m, struct ieee80211_frame *);
sys/net80211/ieee80211_input.c
808
lwh = mtod(mfrag, struct ieee80211_frame *);
sys/net80211/ieee80211_input.c
846
lwh = mtod(mfrag, struct ieee80211_frame *);
sys/net80211/ieee80211_input.c
864
struct ether_header *eh = mtod(m, struct ether_header *);
sys/net80211/ieee80211_input.c
950
memcpy(&wh, mtod(m, void *), hdrlen);
sys/net80211/ieee80211_input.c
952
llc = (struct llc *)(mtod(m, char *) + hdrlen);
sys/net80211/ieee80211_input.c
966
eh = mtod(m, struct ether_header *);
sys/net80211/ieee80211_input.c
988
if (!ALIGNED_POINTER(mtod(m, char *) + sizeof(*eh), u_int32_t)) {
sys/net80211/ieee80211_netbsd.c
751
memmove(mtod(m, char *) + m->m_len, cp, space);
sys/net80211/ieee80211_netbsd.c
764
memmove(mtod(n, void *), cp, n->m_len);
sys/net80211/ieee80211_output.c
1376
m->m_pkthdr.len = m->m_len = frm - mtod(m, u_int8_t *);
sys/net80211/ieee80211_output.c
1386
wh = mtod(m, struct ieee80211_frame *);
sys/net80211/ieee80211_output.c
1539
m->m_pkthdr.len = m->m_len = frm - mtod(m, u_int8_t *);
sys/net80211/ieee80211_output.c
1687
m->m_pkthdr.len = m->m_len = frm - mtod(m, u_int8_t *);
sys/net80211/ieee80211_output.c
1741
m->m_pkthdr.len = m->m_len = frm - mtod(m, u_int8_t *);
sys/net80211/ieee80211_output.c
1790
rts = mtod(m, struct ieee80211_frame_rts *);
sys/net80211/ieee80211_output.c
1816
cts = mtod(m, struct ieee80211_frame_cts *);
sys/net80211/ieee80211_output.c
192
wh = mtod(m, struct ieee80211_frame *);
sys/net80211/ieee80211_output.c
1955
m->m_pkthdr.len = m->m_len = efrm - mtod(m, u_int8_t *);
sys/net80211/ieee80211_output.c
1960
wh = mtod(m, struct ieee80211_frame *);
sys/net80211/ieee80211_output.c
2141
ieee80211_dump_pkt(mtod(m, void *), m->m_len, -1, -1);
sys/net80211/ieee80211_output.c
253
wh = mtod(m, struct ieee80211_frame *);
sys/net80211/ieee80211_output.c
339
eh = mtod(m, struct ether_header *);
sys/net80211/ieee80211_output.c
342
(mtod(m, u_int8_t *) + sizeof (*eh));
sys/net80211/ieee80211_output.c
541
memcpy(&eh, mtod(m, void *), sizeof(struct ether_header));
sys/net80211/ieee80211_output.c
599
llc = mtod(m, struct llc *);
sys/net80211/ieee80211_output.c
614
wh = mtod(m, struct ieee80211_frame *);
sys/net80211/ieee80211_output.c
925
wh = mtod(m0, struct ieee80211_frame *);
sys/net80211/ieee80211_output.c
955
whf = mtod(m, struct ieee80211_frame *);
sys/net80211/ieee80211_output.c
964
m_copydata(m0, off, payload, mtod(m, u_int8_t *) + hdrsize);
sys/netatalk/aarp.c
178
ea = mtod(m, struct ether_aarp *);
sys/netatalk/aarp.c
209
llc = mtod(m, struct llc *);
sys/netatalk/aarp.c
320
ar = mtod(m, struct arphdr *);
sys/netatalk/aarp.c
362
ea = mtod(m, struct ether_aarp *);
sys/netatalk/aarp.c
502
llc = mtod(m, struct llc *);
sys/netatalk/aarp.c
624
ea = mtod(m, struct ether_aarp *);
sys/netatalk/aarp.c
646
llc = mtod(m, struct llc *);
sys/netatalk/ddp_input.c
114
elhp = mtod(m, struct elaphdr *);
sys/netatalk/ddp_input.c
154
dsh = mtod(m, struct ddpshdr *);
sys/netatalk/ddp_input.c
186
deh = mtod(m, struct ddpehdr *);
sys/netatalk/ddp_input.c
377
bprint(mtod(m, char *), m->m_len);
sys/netatalk/ddp_output.c
174
elh = mtod(m, struct elaphdr *);
sys/netatalk/ddp_output.c
64
deh = mtod(m, struct ddpehdr *);
sys/netatalk/ddp_output.c
97
for (data = mtod(m, u_char *), end = data + m->m_len;
sys/netbt/hci_link.c
670
hdr = mtod(m, hci_acldata_hdr_t *);
sys/netbt/hci_socket.c
807
type = *mtod(m, uint8_t *);
sys/netbt/hci_socket.c
835
event = mtod(m, hci_event_hdr_t *)->event;
sys/netbt/hci_socket.c
845
arg1 = le16toh(mtod(m, hci_cmd_hdr_t *)->opcode);
sys/netbt/hci_socket.c
850
arg1 = le16toh(mtod(m, hci_acldata_hdr_t *)->con_handle);
sys/netbt/hci_socket.c
856
arg1 = le16toh(mtod(m, hci_scodata_hdr_t *)->con_handle);
sys/netbt/hci_unit.c
315
p = mtod(m, hci_cmd_hdr_t *);
sys/netbt/l2cap_signal.c
1021
hdr = mtod(m, l2cap_hdr_t *);
sys/netbt/l2cap_upper.c
417
hdr = mtod(m, l2cap_hdr_t *);
sys/netbt/rfcomm_session.c
1493
hdr = mtod(m, struct rfcomm_cmd_hdr *);
sys/netbt/rfcomm_session.c
1570
hdr = mtod(m0, uint8_t *);
sys/netbt/rfcomm_session.c
1593
m0->m_len = hdr - mtod(m0, uint8_t *);
sys/netbt/rfcomm_session.c
1651
hdr = mtod(m, uint8_t *);
sys/netbt/rfcomm_session.c
1686
hlen = hdr - mtod(m, uint8_t *);
sys/netbt/sco_upper.c
301
hdr = mtod(m, hci_scodata_hdr_t *);
sys/netcan/can.c
416
cf = mtod(m, struct can_frame *);
sys/netcan/can_pcb.c
394
fmp = mtod(m, struct can_frame *);
sys/netinet/accf_http.c
168
else if (*cmp != *(mtod(m, char *) + offset))
sys/netinet/accf_http.c
197
else if (*cmp != *(mtod(m, char *) + offset))
sys/netinet/accf_http.c
227
switch (*mtod(m, char *)) {
sys/netinet/accf_http.c
281
switch (*(mtod(m, char *) + i)) {
sys/netinet/accf_http.c
382
src = mtod(m, char *) + (m->m_len - tocopy);
sys/netinet/cpu_in_cksum.c
101
data = mtod(m, uint8_t *) + off;
sys/netinet/cpu_in_cksum.c
116
data = mtod(m, uint8_t *);
sys/netinet/cpu_in_cksum.c
245
data = mtod(m, uint8_t *) + off;
sys/netinet/cpu_in_cksum.c
260
data = mtod(m, uint8_t *);
sys/netinet/dccp_usrreq.c
1322
mtod(m, char *) + hdrlen);
sys/netinet/dccp_usrreq.c
1349
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet/dccp_usrreq.c
1361
ip = mtod(m, struct ip *);
sys/netinet/dccp_usrreq.c
220
isipv6 = (mtod(m, struct ip *)->ip_v == 6) ? 1 : 0;
sys/netinet/dccp_usrreq.c
226
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet/dccp_usrreq.c
252
ip = mtod(m, struct ip *);
sys/netinet/if_arp.c
1341
ip = mtod(ln->ln_hold, struct ip *);
sys/netinet/if_arp.c
1406
struct ip *ip = mtod(m, struct ip *);
sys/netinet/if_arp.c
1824
ar = mtod(m, struct arphdr *);
sys/netinet/if_arp.c
1833
ar = mtod(m, struct arphdr *);
sys/netinet/if_arp.c
1869
ah = mtod(m, struct arphdr *);
sys/netinet/if_arp.c
1943
ah = mtod(m, struct arphdr *);
sys/netinet/if_arp.c
540
ah = mtod(m, struct arphdr *);
sys/netinet/if_arp.c
701
ar = mtod(m, struct arphdr *);
sys/netinet/if_arp.c
730
ar = mtod(m, struct arphdr *);
sys/netinet/if_arp.c
791
ah = mtod(m, struct arphdr *);
sys/netinet/igmp.c
188
struct ip *ip = mtod(m, struct ip *);
sys/netinet/igmp.c
216
ip = mtod(m, struct ip *);
sys/netinet/igmp.c
224
igmp = mtod(m, struct igmp *);
sys/netinet/igmp.c
612
ip = mtod(m, struct ip *);
sys/netinet/igmp.c
623
igmp = mtod(m, struct igmp *);
sys/netinet/in4_cksum.c
89
w = (uint16_t *)(mtod(m, char *) + offsetof(struct ip, ip_src));
sys/netinet/in_gif.c
119
ip = mtod(m, const struct ip *);
sys/netinet/in_gif.c
134
ip6 = mtod(m, const struct ip6_hdr *);
sys/netinet/in_gif.c
173
bcopy(&iphdr, mtod(m, struct ip *), sizeof(struct ip));
sys/netinet/in_gif.c
209
ip = mtod(m, const struct ip *);
sys/netinet/in_gif.c
254
xip = mtod(m, struct ip *);
sys/netinet/in_gif.c
272
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet/in_l2tp.c
176
memcpy(mtod(m, void *), &cookie_32, sizeof(uint32_t));
sys/netinet/in_l2tp.c
179
memcpy(mtod(m, void *), &cookie_64, sizeof(uint64_t));
sys/netinet/in_l2tp.c
192
memcpy(mtod(m, uint32_t *), &sess_id, sizeof(uint32_t));
sys/netinet/in_l2tp.c
204
memcpy(mtod(m, struct ip *), &iphdr, sizeof(struct ip));
sys/netinet/in_offload.c
109
ip = (void *)(mtod(hdr, char *) + off);
sys/netinet/in_offload.c
145
ip = (void *)(mtod(n, char *) + off);
sys/netinet/in_offload.c
150
th = (void *)(mtod(n, char *) + off + iphlen);
sys/netinet/in_offload.c
223
struct ip *ip = (struct ip *)(mtod(m, uint8_t *) + hdrlen);
sys/netinet/in_offload.c
258
*(uint16_t *)(mtod(m, char *) + l4offset) = csum;
sys/netinet/in_offload.c
281
ip = mtod(m, struct ip *);
sys/netinet/in_offload.c
291
*(uint16_t *)(mtod(m, char *) + offset) = csum;
sys/netinet/in_offload.c
78
ip = (void *)(mtod(m, char *) + off);
sys/netinet/in_offload.c
91
th = (void *)(mtod(m, char *) + off + iphlen);
sys/netinet/ip_carp.c
1078
ip = mtod(m, struct ip *);
sys/netinet/ip_carp.c
1164
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet/ip_carp.c
501
struct ip *ip = mtod(m, struct ip *);
sys/netinet/ip_carp.c
552
ip = mtod(m, struct ip *);
sys/netinet/ip_carp.c
580
struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *);
sys/netinet/ip_carp.c
681
struct ip *ip = mtod(m, struct ip *);
sys/netinet/ip_carp.c
691
struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *);
sys/netinet/ip_carp.c
737
ip = mtod(m, struct ip *);
sys/netinet/ip_carp.c
744
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet/ip_encap.c
207
ip = mtod(m, struct ip *);
sys/netinet/ip_encap.c
369
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet/ip_flow.c
233
ip = mtod(m, struct ip *);
sys/netinet/ip_flow.c
235
memcpy(&ip_store, mtod(m, const void *), sizeof(ip_store));
sys/netinet/ip_flow.c
316
if (!ACCESSIBLE_POINTER(mtod(m, void *), struct ip))
sys/netinet/ip_flow.c
317
memcpy(mtod(m, void *), &ip_store, sizeof(ip_store));
sys/netinet/ip_flow.c
523
const struct ip *const ip = mtod(m, const struct ip *);
sys/netinet/ip_icmp.c
255
struct ip *oip = mtod(n, struct ip *), *nip;
sys/netinet/ip_icmp.c
346
nip = mtod(m, struct ip *);
sys/netinet/ip_icmp.c
411
struct ip *ip = mtod(m, struct ip *);
sys/netinet/ip_icmp.c
441
ip = mtod(m, struct ip *);
sys/netinet/ip_icmp.c
444
icp = mtod(m, struct icmp *);
sys/netinet/ip_icmp.c
532
ip = mtod(m, struct ip *);
sys/netinet/ip_icmp.c
533
icp = (struct icmp *)(mtod(m, uint8_t *) + hlen);
sys/netinet/ip_icmp.c
709
struct ip *ip = mtod(m, struct ip *);
sys/netinet/ip_icmp.c
867
*mtod(opts, struct in_addr *) = zeroin_addr;
sys/netinet/ip_icmp.c
891
memmove(mtod(opts, char *) +
sys/netinet/ip_icmp.c
900
*(mtod(opts, char *) + opts->m_len) =
sys/netinet/ip_icmp.c
943
struct ip *ip = mtod(m, struct ip *);
sys/netinet/ip_icmp.c
950
icp = mtod(m, struct icmp *);
sys/netinet/ip_input.c
1267
*(mtod(m, struct in_addr *)) = *p--;
sys/netinet/ip_input.c
1274
memmove(mtod(m, char *) + sizeof(struct in_addr), &isr->isr_nop,
sys/netinet/ip_input.c
1276
q = (struct in_addr *)(mtod(m, char *) +
sys/netinet/ip_input.c
1338
struct ip *ip = mtod(m, struct ip *);
sys/netinet/ip_input.c
461
ip = mtod(m, struct ip *);
sys/netinet/ip_input.c
476
ip = mtod(m, struct ip *);
sys/netinet/ip_input.c
590
ip = mtod(m, struct ip *);
sys/netinet/ip_input.c
601
ip = mtod(m, struct ip *);
sys/netinet/ip_input.c
772
ip = mtod(m, struct ip *);
sys/netinet/ip_input.c
856
struct ip *ip = mtod(m, struct ip *);
sys/netinet/ip_mroute.c
1301
struct ip *ip = mtod(m, struct ip *);
sys/netinet/ip_mroute.c
1439
im = mtod(mm, struct igmpmsg *);
sys/netinet/ip_mroute.c
1587
struct ip *ip = mtod(m, struct ip *);
sys/netinet/ip_mroute.c
1655
im = mtod(mm, struct igmpmsg *);
sys/netinet/ip_mroute.c
1739
tbf_control(vifp, mb_copy, mtod(mb_copy, struct ip *),
sys/netinet/ip_mroute.c
1782
ip_copy = mtod(mb_copy, struct ip *);
sys/netinet/ip_mroute.c
1969
len = ntohs(mtod(m, struct ip *)->ip_len);
sys/netinet/ip_mroute.c
2021
if (p > priority(vifp, mtod(m, struct ip *))) {
sys/netinet/ip_mroute.c
2050
imo.imo_multicast_ttl = mtod(m, struct ip *)->ip_ttl - 1;
sys/netinet/ip_mroute.c
2746
ip = mtod(mm, struct ip *);
sys/netinet/ip_mroute.c
2788
ip = mtod(mb_copy, struct ip *);
sys/netinet/ip_mroute.c
2837
im = mtod(mb_first, struct igmpmsg *);
sys/netinet/ip_mroute.c
2898
ip_outer = mtod(mb_first, struct ip *);
sys/netinet/ip_mroute.c
2949
struct ip *ip = mtod(m, struct ip *);
sys/netinet/ip_mroute.c
2993
ip = mtod(m, struct ip *);
sys/netinet/ip_mroute.c
2999
pim = mtod(m, struct pim *);
sys/netinet/ip_output.c
1010
struct ipoption *p = mtod(opt, struct ipoption *);
sys/netinet/ip_output.c
1012
struct ip *ip = mtod(m, struct ip *);
sys/netinet/ip_output.c
1032
memcpy(mtod(n, void *), ip, sizeof(struct ip));
sys/netinet/ip_output.c
1037
memmove(mtod(m, void *), ip, sizeof(struct ip));
sys/netinet/ip_output.c
1040
ip = mtod(m, struct ip *);
sys/netinet/ip_output.c
1530
cm = mtod(control, struct cmsghdr *);
sys/netinet/ip_output.c
1602
dp = mtod(m, u_char *);
sys/netinet/ip_output.c
1645
memcpy(mtod(m, u_char *), cp + IPOPT_OFFSET + 1,
sys/netinet/ip_output.c
2164
ip = mtod(copym, struct ip *);
sys/netinet/ip_output.c
273
ip = mtod(m, struct ip *);
sys/netinet/ip_output.c
653
ip = mtod(m, struct ip *);
sys/netinet/ip_output.c
849
ip = mtod(m, struct ip *);
sys/netinet/ip_output.c
888
mhip = mtod(m, struct ip *);
sys/netinet/ip_reass.c
619
struct ip *ip = mtod(m, struct ip *);
sys/netinet/raw_ip.c
166
struct ip *ip = mtod(m, struct ip *);
sys/netinet/raw_ip.c
333
ip = mtod(m, struct ip *);
sys/netinet/raw_ip.c
351
ip = mtod(m, struct ip *);
sys/netinet/raw_ip.c
366
ip = mtod(m, struct ip *);
sys/netinet/sctp_asconf.c
134
aph = mtod(m_reply, struct sctp_asconf_paramhdr *);
sys/netinet/sctp_asconf.c
162
aph = mtod(m_reply, struct sctp_asconf_paramhdr *);
sys/netinet/sctp_asconf.c
2285
acp = mtod(m_asconf_chk, struct sctp_asconf_chunk *);
sys/netinet/sctp_asconf.c
2289
ptr = mtod(m_asconf, vaddr_t); /* beginning of cluster */
sys/netinet/sctp_asconf.c
326
iph = mtod(m, struct ip *);
sys/netinet/sctp_asconf.c
346
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet/sctp_asconf.c
646
ack_cp = mtod(m_ack, struct sctp_asconf_ack_chunk *);
sys/netinet/sctp_asconf.c
678
ack_aph = (struct sctp_asconf_paramhdr *)(mtod(m_ack, vaddr_t) + sizeof(struct sctp_asconf_ack_chunk));
sys/netinet/sctp_hashdriver.c
227
MD5Update(&context, mtod(m_at, char *)+offset,
sys/netinet/sctp_hashdriver.c
241
SHA1Update(&context, mtod(m_at, char *)+offset,
sys/netinet/sctp_indata.c
1083
ph = mtod(oper, struct sctp_paramhdr *);
sys/netinet/sctp_indata.c
1113
ph = mtod(oper, struct sctp_paramhdr *);
sys/netinet/sctp_indata.c
1142
ph = mtod(oper,
sys/netinet/sctp_indata.c
1173
ph = mtod(oper,
sys/netinet/sctp_indata.c
1271
ph = mtod(oper,
sys/netinet/sctp_indata.c
1307
ph = mtod(oper,
sys/netinet/sctp_indata.c
1345
ph = mtod(oper,
sys/netinet/sctp_indata.c
1379
ph = mtod(oper,
sys/netinet/sctp_indata.c
1424
ph = mtod(oper,
sys/netinet/sctp_indata.c
1461
ph = mtod(oper,
sys/netinet/sctp_indata.c
1497
ph = mtod(oper,
sys/netinet/sctp_indata.c
1535
ph = mtod(oper,
sys/netinet/sctp_indata.c
1802
phdr = mtod(mb, struct sctp_paramhdr *);
sys/netinet/sctp_indata.c
1857
ph = mtod(oper, struct sctp_paramhdr *);
sys/netinet/sctp_indata.c
198
cmh = mtod(ret, struct cmsghdr *);
sys/netinet/sctp_indata.c
2067
ph = mtod(oper, struct sctp_paramhdr *);
sys/netinet/sctp_indata.c
2090
ph = mtod(oper,
sys/netinet/sctp_indata.c
2124
ph = mtod(oper,
sys/netinet/sctp_indata.c
249
cmh = mtod(ret, struct cmsghdr *);
sys/netinet/sctp_indata.c
2552
to = mtod(m, vaddr_t *);
sys/netinet/sctp_indata.c
2553
from = mtod((*mm), vaddr_t *);
sys/netinet/sctp_indata.c
2602
ph = mtod(op_err, struct sctp_paramhdr *);
sys/netinet/sctp_indata.c
3571
ph = mtod(oper, struct sctp_paramhdr *);
sys/netinet/sctp_indata.c
853
ph = mtod(oper, struct sctp_paramhdr *);
sys/netinet/sctp_input.c
1077
ph = mtod(op_err, struct sctp_paramhdr *);
sys/netinet/sctp_input.c
1701
iph = mtod(m, struct ip *);
sys/netinet/sctp_input.c
1719
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet/sctp_input.c
1948
scm = mtod(op_err, struct sctp_stale_cookie_msg *);
sys/netinet/sctp_input.c
2307
ecne = mtod(chk->data, struct sctp_ecne_chunk *);
sys/netinet/sctp_input.c
2422
ddp = (u_int8_t *)(mtod(tp1->data, vaddr_t) +
sys/netinet/sctp_input.c
2640
strreq = mtod(chk->data, struct sctp_stream_reset_req *);
sys/netinet/sctp_input.c
3223
mtod(oper, struct sctp_paramhdr *);
sys/netinet/sctp_input.c
3498
phdr = mtod(oper,
sys/netinet/sctp_input.c
3696
phd = mtod(mm, struct sctp_paramhdr *);
sys/netinet/sctp_input.c
371
mp = mtod(op_err,
sys/netinet/sctp_input.c
4096
ip = mtod(m, struct ip *);
sys/netinet/sctp_input.c
4103
ip = mtod(m, struct ip *);
sys/netinet/sctp_output.c
196
parmh = mtod(mret, struct sctp_paramhdr *);
sys/netinet/sctp_output.c
2106
sctphdr = mtod(m, struct sctphdr *);
sys/netinet/sctp_output.c
2126
ip = mtod(m, struct ip *);
sys/netinet/sctp_output.c
2296
ip6h = mtod(m, struct ip6_hdr *);
sys/netinet/sctp_output.c
258
ph = mtod(mret, struct sctp_paramhdr *);
sys/netinet/sctp_output.c
2632
initm = mtod(m, struct sctp_init_msg *);
sys/netinet/sctp_output.c
304
signature = (uint8_t *)(mtod(sig, vaddr_t) + sig_offset);
sys/netinet/sctp_output.c
3127
iph = mtod(in_initpkt, struct ip *);
sys/netinet/sctp_output.c
3135
ip6h = mtod(in_initpkt, struct ip6_hdr *);
sys/netinet/sctp_output.c
3397
iph = mtod(init_pkt, struct ip *);
sys/netinet/sctp_output.c
3445
ip6 = mtod(init_pkt, struct ip6_hdr *);
sys/netinet/sctp_output.c
3574
initackm_out = mtod(m, struct sctp_init_msg *);
sys/netinet/sctp_output.c
4173
ph = mtod(m, struct sctp_paramhdr *);
sys/netinet/sctp_output.c
4743
error = uiomove(mtod(at, void *), willcpy, uio);
sys/netinet/sctp_output.c
4979
strreq = mtod(chk->data, struct sctp_stream_reset_req *);
sys/netinet/sctp_output.c
5041
dchkh = mtod(chk->data, struct sctp_data_chunk *);
sys/netinet/sctp_output.c
5105
dchkh = mtod(chk->data, struct sctp_data_chunk *);
sys/netinet/sctp_output.c
5595
shdr = mtod(outchain, struct sctphdr *);
sys/netinet/sctp_output.c
5874
shdr = mtod(outchain, struct sctphdr *);
sys/netinet/sctp_output.c
6016
hdr = mtod(op_err, struct sctp_chunkhdr *);
sys/netinet/sctp_output.c
6075
hdr = mtod(cookie, struct sctp_chunkhdr *);
sys/netinet/sctp_output.c
6139
chdr = mtod(outchain, struct sctp_chunkhdr *);
sys/netinet/sctp_output.c
6220
hdr = mtod(cookie_ack, struct sctp_chunkhdr *);
sys/netinet/sctp_output.c
6266
ack_cp = mtod(m_shutdown_ack, struct sctp_shutdown_ack_chunk *);
sys/netinet/sctp_output.c
6311
shutdown_cp = mtod(m_shutdown, struct sctp_shutdown_chunk *);
sys/netinet/sctp_output.c
6513
strreq = mtod(chk->data, struct sctp_stream_reset_req *);
sys/netinet/sctp_output.c
6553
shdr = mtod(m, struct sctphdr *);
sys/netinet/sctp_output.c
6744
shdr = mtod(m, struct sctphdr *);
sys/netinet/sctp_output.c
7606
fwdtsn = mtod(chk->data, struct sctp_forward_tsn_chunk *);
sys/netinet/sctp_output.c
7891
sack = mtod(a_chk->data, struct sctp_sack_chunk *);
sys/netinet/sctp_output.c
7969
abort_m = mtod(m_abort, struct sctp_abort_msg *);
sys/netinet/sctp_output.c
8013
comp_cp = mtod(m_shutdown_comp, struct sctp_shutdown_complete_msg *);
sys/netinet/sctp_output.c
8051
iph = mtod(m, struct ip *);
sys/netinet/sctp_output.c
8059
iph_out = mtod(mout, struct ip *);
sys/netinet/sctp_output.c
8082
ip6_out = mtod(mout, struct ip6_hdr *);
sys/netinet/sctp_output.c
8340
hb = mtod(chk->data, struct sctp_heartbeat_chunk *);
sys/netinet/sctp_output.c
8435
ecne = mtod(chk->data, struct sctp_ecne_chunk *);
sys/netinet/sctp_output.c
8467
ecne = mtod(chk->data, struct sctp_ecne_chunk *);
sys/netinet/sctp_output.c
8503
iph = mtod(m, struct ip *);
sys/netinet/sctp_output.c
8517
ip6h = mtod(m, struct ip6_hdr *);
sys/netinet/sctp_output.c
8546
drp = mtod(chk->data, struct sctp_pktdrop_chunk *);
sys/netinet/sctp_output.c
8616
cwr = mtod(chk->data, struct sctp_cwr_chunk *);
sys/netinet/sctp_output.c
8650
cwr = mtod(chk->data, struct sctp_cwr_chunk *);
sys/netinet/sctp_output.c
8742
strack = mtod(chk->data, struct sctp_stream_reset_resp *);
sys/netinet/sctp_output.c
8896
strreq = mtod(chk->data, struct sctp_stream_reset_req *);
sys/netinet/sctp_output.c
8969
iph = mtod(m, struct ip *);
sys/netinet/sctp_output.c
8973
iph_out = mtod(mout, struct ip *);
sys/netinet/sctp_output.c
8994
ip6_out = mtod(mout, struct ip6_hdr *);
sys/netinet/sctp_output.c
9101
iph = mtod(m, struct ip *);
sys/netinet/sctp_output.c
9114
ohdr = mtod(scm, struct sctphdr *);
sys/netinet/sctp_output.c
9145
out = mtod(scm, struct ip *);
sys/netinet/sctp_output.c
9168
in6 = mtod(m, struct ip6_hdr *);
sys/netinet/sctp_output.c
9169
out6 = mtod(scm, struct ip6_hdr *);
sys/netinet/sctp_output.c
9235
error = uiomove(mtod(m, void *), willcpy, uio);
sys/netinet/sctp_output.c
9456
ph = mtod(mm, struct sctp_paramhdr *);
sys/netinet/sctp_pcb.c
1136
iph = mtod(m, struct ip *);
sys/netinet/sctp_pcb.c
1156
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet/sctp_pcb.c
2064
ph = mtod(op_err,
sys/netinet/sctp_pcb.c
2162
ph = mtod(op_err, struct sctp_paramhdr *);
sys/netinet/sctp_pcb.c
390
iph = mtod(m, struct ip *);
sys/netinet/sctp_pcb.c
3930
iph = mtod(m, struct ip *);
sys/netinet/sctp_pcb.c
3947
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet/sctp_pcb.c
401
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet/sctp_timer.c
199
ph = mtod(oper, struct sctp_paramhdr *);
sys/netinet/sctp_timer.c
922
ph = mtod(oper, struct sctp_paramhdr *);
sys/netinet/sctp_timer.c
975
strreq = mtod(strrst->data, struct sctp_stream_reset_req *);
sys/netinet/sctp_usrreq.c
731
ph = mtod(err, struct sctp_paramhdr *);
sys/netinet/sctputil.c
1775
return ((void *)(mtod(m, vaddr_t) + off));
sys/netinet/sctputil.c
1780
memcpy(ptr, (void *)(mtod(m, vaddr_t) + off), count);
sys/netinet/sctputil.c
1823
dp = (u_int8_t *)(mtod(m, vaddr_t) + m->m_len);
sys/netinet/sctputil.c
1837
dp = mtod(tmp, u_int8_t *);
sys/netinet/sctputil.c
1911
sac = mtod(m_notify, struct sctp_assoc_change *);
sys/netinet/sctputil.c
1996
spc = mtod(m_notify, struct sctp_paddr_change *);
sys/netinet/sctputil.c
2076
ssf = mtod(m_notify, struct sctp_send_failed *);
sys/netinet/sctputil.c
2168
sai = mtod(m_notify, struct sctp_adaption_event *);
sys/netinet/sctputil.c
2238
pdapi = mtod(m_notify, struct sctp_pdapi_event *);
sys/netinet/sctputil.c
2318
sse = mtod(m_notify, struct sctp_shutdown_event *);
sys/netinet/sctputil.c
2401
strreset = mtod(m_notify, struct sctp_stream_reset_event *);
sys/netinet/sctputil.c
2988
memcpy(mtod(m, void *), (const void *)asa, asa->sa_len);
sys/netinet/sctputil.c
3055
bcopy((void *)asa, mtod(m, void *), asa->sa_len);
sys/netinet/sctputil.c
3121
bcopy((void *)asa, mtod(m, void *), asa->sa_len);
sys/netinet/sctputil.c
317
req = mtod(m, struct sctp_cwnd_log_req *);
sys/netinet/sctputil.c
3173
ph = mtod(m, struct sctp_paramhdr *);
sys/netinet/sctputil.c
3532
bcopy(mtod(m_nxt, void *), mtod(m, void *), sizeof(long));
sys/netinet/tcp_debug.c
136
ip = mtod(m, struct ip *);
sys/netinet/tcp_debug.c
141
memcpy(&td->td_ti, mtod(m, void *), sizeof(td->td_ti));
sys/netinet/tcp_debug.c
149
memcpy(&td->td_ti6, mtod(m, void *),
sys/netinet/tcp_input.c
1261
th = (struct tcphdr *)(mtod(m, char *) + off);
sys/netinet/tcp_input.c
1269
ip = mtod(m, struct ip *);
sys/netinet/tcp_input.c
1271
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet/tcp_input.c
1522
mtod(tcp_saveti, void *));
sys/netinet/tcp_input.c
1530
memcpy(mtod(tcp_saveti, char *) + iphlen, th,
sys/netinet/tcp_input.c
2973
ip = mtod(m, struct ip *);
sys/netinet/tcp_input.c
2976
ip = mtod(m, struct ip *);
sys/netinet/tcp_input.c
2981
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet/tcp_input.c
3031
switch (mtod(m, struct ip *)->ip_v) {
sys/netinet/tcp_input.c
3034
ip = mtod(m, struct ip *);
sys/netinet/tcp_input.c
3047
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet/tcp_input.c
3137
struct ip *ip = mtod(m, struct ip *);
sys/netinet/tcp_input.c
3139
struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *);
sys/netinet/tcp_input.c
3273
char *cp = mtod(m, char *) + cnt;
sys/netinet/tcp_input.c
821
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet/tcp_input.c
906
mtod(m, const struct ip *);
sys/netinet/tcp_output.c
1276
ip = mtod(m, struct ip *);
sys/netinet/tcp_output.c
1285
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet/tcp_output.c
1301
bcopy(mtod(tp->t_template, void *), mtod(m, void *), iphdrlen);
sys/netinet/tcp_output.c
1414
tcp_signature(m, th, (char *)th - mtod(m, char *), sav, sigp);
sys/netinet/tcp_output.c
480
m_copydata(m0, off, (int)len, mtod(m, char *) + hdrlen);
sys/netinet/tcp_subr.c
504
memset(mtod(m, void *), 0, m->m_len);
sys/netinet/tcp_subr.c
506
n = (struct tcphdr *)(mtod(m, char *) + hlen);
sys/netinet/tcp_subr.c
512
mtod(m, struct ip *)->ip_v = 4;
sys/netinet/tcp_subr.c
513
mtod(m, struct ip *)->ip_hl = hlen >> 2;
sys/netinet/tcp_subr.c
514
ipov = mtod(m, struct ipovly *);
sys/netinet/tcp_subr.c
547
mtod(m, struct ip *)->ip_v = 6;
sys/netinet/tcp_subr.c
548
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet/tcp_subr.c
633
switch (mtod(mtemplate, struct ip *)->ip_v) {
sys/netinet/tcp_subr.c
663
bcopy(mtod(mtemplate, void *), mtod(m, void *),
sys/netinet/tcp_subr.c
667
ip = mtod(m, struct ip *);
sys/netinet/tcp_subr.c
672
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet/tcp_subr.c
686
switch (mtod(m, struct ip *)->ip_v) {
sys/netinet/tcp_subr.c
690
ip = mtod(m, struct ip *);
sys/netinet/tcp_subr.c
696
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet/tcp_subr.c
712
mtod(m, char *) + hlen == (char *)th0) {
sys/netinet/tcp_subr.c
737
m_copyback(n, 0, hlen, mtod(m, void *));
sys/netinet/tcp_subr.c
748
ip = mtod(m, struct ip *);
sys/netinet/tcp_subr.c
756
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet/tcp_syncache.c
1135
memset(mtod(m, void *), 0, tlen);
sys/netinet/tcp_syncache.c
1139
ip = mtod(m, struct ip *);
sys/netinet/tcp_syncache.c
1150
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet/tcp_syncache.c
661
mtod(m, struct ip6_hdr *), m);
sys/netinet/tcp_usrreq.c
986
*mtod(m, char *) = tp->t_iobc;
sys/netinet/udp_usrreq.c
1270
data = mtod(m, uint8_t *) + off;
sys/netinet/udp_usrreq.c
1311
memmove(mtod(m, char *) + skip, mtod(m, void *), iphdrlen);
sys/netinet/udp_usrreq.c
1314
ip = mtod(m, struct ip *);
sys/netinet/udp_usrreq.c
272
mtod(m, const struct ip *);
sys/netinet/udp_usrreq.c
327
ip = mtod(m, struct ip *);
sys/netinet/udp_usrreq.c
344
ip = mtod(m, struct ip *);
sys/netinet/udp_usrreq.c
345
uh = (struct udphdr *)(mtod(m, char *) + iphlen);
sys/netinet/udp_usrreq.c
393
ip = mtod(m, struct ip *);
sys/netinet/udp_usrreq.c
465
struct ip *ip = mtod(n, struct ip *);
sys/netinet/udp_usrreq.c
627
if (mtod(m, struct ip *)->ip_ttl < in4p_ip_minttl(inp))
sys/netinet/udp_usrreq.c
815
ui = mtod(m, struct udpiphdr *);
sys/netinet6/frag6.c
185
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/frag6.c
357
ip6err = mtod(merr, struct ip6_hdr *);
sys/netinet6/frag6.c
473
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/frag6.c
582
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/icmp6.c
1241
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/icmp6.c
1365
if (!ni6_dnsmatch(subj, subjlen, mtod(n, const char *),
sys/netinet6/icmp6.c
1453
bcopy(mtod(m, void *), mtod(n, void *), sizeof(struct ip6_hdr));
sys/netinet6/icmp6.c
1454
nni6 = (struct icmp6_nodeinfo *)(mtod(n, struct ip6_hdr *) + 1);
sys/netinet6/icmp6.c
1475
fqdn = (struct ni_reply_fqdn *)(mtod(n, char *) +
sys/netinet6/icmp6.c
1561
*mtod(m, char *) = namelen;
sys/netinet6/icmp6.c
1562
memcpy(mtod(m, char *) + 1, name, namelen);
sys/netinet6/icmp6.c
1566
cp = mtod(m, char *);
sys/netinet6/icmp6.c
1567
ep = mtod(m, char *) + M_TRAILINGSPACE(m);
sys/netinet6/icmp6.c
1624
m->m_len = cp - mtod(m, char *);
sys/netinet6/icmp6.c
1942
struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/icmp6.c
2092
memcpy(mtod(m, void *), (void *)&nip6, sizeof(nip6));
sys/netinet6/icmp6.c
2102
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/icmp6.c
2246
struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/icmp6.c
2501
sip6 = mtod(m0, struct ip6_hdr *);
sys/netinet6/icmp6.c
2564
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/icmp6.c
333
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/icmp6.c
373
oip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/icmp6.c
432
oip6 = mtod(m, struct ip6_hdr *); /* adjust pointer */
sys/netinet6/icmp6.c
456
nip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/icmp6.c
534
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/icmp6.c
553
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/icmp6.c
554
icmp6 = (struct icmp6_hdr *)(mtod(m, char *) + off);
sys/netinet6/icmp6.c
795
nip6 = mtod(n, struct ip6_hdr *);
sys/netinet6/in6_cksum.c
90
cp = mtod(m, const char *);
sys/netinet6/in6_gif.c
123
ip = mtod(m, struct ip *);
sys/netinet6/in6_gif.c
137
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/in6_gif.c
158
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/in6_gif.c
269
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/in6_gif.c
317
ip = mtod(m, struct ip *);
sys/netinet6/in6_gif.c
335
ip6x = mtod(m, struct ip6_hdr *);
sys/netinet6/in6_l2tp.c
176
memcpy(mtod(m, void *), &cookie_32, sizeof(uint32_t));
sys/netinet6/in6_l2tp.c
179
memcpy(mtod(m, void *), &cookie_64, sizeof(uint64_t));
sys/netinet6/in6_l2tp.c
190
memcpy(mtod(m, uint32_t *), &sess_id, sizeof(uint32_t));
sys/netinet6/in6_l2tp.c
198
memcpy(mtod(m, struct ip6_hdr *), &ip6hdr, sizeof(struct ip6_hdr));
sys/netinet6/in6_offload.c
111
iph = (void *)(mtod(hdr, char *) + off);
sys/netinet6/in6_offload.c
147
th = (void *)(mtod(n, char *) + off + iphlen);
sys/netinet6/in6_offload.c
208
plen = *(uint16_t *)(mtod(m, char *) + ip6_plen_offset);
sys/netinet6/in6_offload.c
225
*(uint16_t *)(mtod(m, char *) + l4offset) = csum;
sys/netinet6/in6_offload.c
257
*(uint16_t *)(mtod(m, char *) + offset) = csum;
sys/netinet6/in6_offload.c
82
iph = (void *)(mtod(m, char *) + off);
sys/netinet6/in6_offload.c
93
th = (void *)(mtod(m, char *) + off + iphlen);
sys/netinet6/ip6_flow.c
286
if (ACCESSIBLE_POINTER(mtod(m, const void *), struct ip6_hdr) == 0) {
sys/netinet6/ip6_flow.c
295
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/ip6_flow.c
563
ip6 = mtod(m, const struct ip6_hdr *);
sys/netinet6/ip6_forward.c
121
struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/ip6_forward.c
397
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/ip6_input.c
1051
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/ip6_input.c
1137
struct ip6_hdr *xip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/ip6_input.c
1149
hbh = mtod(ext, struct ip6_hbh *);
sys/netinet6/ip6_input.c
1174
struct ip6_hdr *xip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/ip6_input.c
1208
ip6e = mtod(ext, struct ip6_ext *);
sys/netinet6/ip6_input.c
1348
m_copydata(m, off, elen, mtod(n, void *));
sys/netinet6/ip6_input.c
1360
struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/ip6_input.c
311
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/ip6_input.c
363
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/ip6_input.c
396
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/ip6_input.c
574
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/ip6_input.c
672
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/ip6_input.c
960
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/ip6_mroute.c
1180
oim = mtod(mm, struct omrt6msg *);
sys/netinet6/ip6_mroute.c
1185
im = mtod(mm, struct mrt6msg *);
sys/netinet6/ip6_mroute.c
1363
struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/ip6_mroute.c
1418
oim = mtod(mm, struct omrt6msg *);
sys/netinet6/ip6_mroute.c
1423
im = mtod(mm, struct mrt6msg *);
sys/netinet6/ip6_mroute.c
1678
im6 = mtod(mm, struct mrt6msg *);
sys/netinet6/ip6_mroute.c
1718
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/ip6_output.c
1017
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/ip6_output.c
1092
memcpy(mtod(m, void *), hdr, hlen);
sys/netinet6/ip6_output.c
1121
optbuf = mtod(mopt, u_int8_t *);
sys/netinet6/ip6_output.c
1162
bcopy(mtod(mopt, void *), mtod(n, void *),
sys/netinet6/ip6_output.c
1164
optbuf = mtod(n, u_int8_t *) + oldoptlen;
sys/netinet6/ip6_output.c
1168
optbuf = mtod(mopt, u_int8_t *) + mopt->m_len;
sys/netinet6/ip6_output.c
1178
hbh = mtod(mopt, struct ip6_hbh *);
sys/netinet6/ip6_output.c
1229
*frghdrp = (struct ip6_frag *)(mtod(mlast, char *) +
sys/netinet6/ip6_output.c
1240
*frghdrp = mtod(mfrg, struct ip6_frag *);
sys/netinet6/ip6_output.c
2800
cm = mtod(control, struct cmsghdr *);
sys/netinet6/ip6_output.c
3265
ip6 = mtod(copym, struct ip6_hdr *);
sys/netinet6/ip6_output.c
3285
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/ip6_output.c
3298
memcpy(mtod(mh, void *), (void *)ip6, sizeof(*ip6));
sys/netinet6/ip6_output.c
332
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/ip6_output.c
350
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/ip6_output.c
387
*mtod(exthdrs.ip6e_dest2, u_char *) = ip6->ip6_nxt;
sys/netinet6/ip6_output.c
396
*mtod((m), u_char *) = *(p);\
sys/netinet6/ip6_output.c
398
p = mtod((m), u_char *);\
sys/netinet6/ip6_output.c
429
rh = mtod(exthdrs.ip6e_rthdr, struct ip6_rthdr *);
sys/netinet6/ip6_output.c
509
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/ip6_output.c
767
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/ip6_output.c
778
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/ip6_output.c
844
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/ip6_output.c
923
nextproto = *mtod(exthdrs.ip6e_rthdr, u_char *);
sys/netinet6/ip6_output.c
924
*mtod(exthdrs.ip6e_rthdr, u_char *) = IPPROTO_FRAGMENT;
sys/netinet6/ip6_output.c
926
nextproto = *mtod(exthdrs.ip6e_dest1, u_char *);
sys/netinet6/ip6_output.c
927
*mtod(exthdrs.ip6e_dest1, u_char *) = IPPROTO_FRAGMENT;
sys/netinet6/ip6_output.c
929
nextproto = *mtod(exthdrs.ip6e_hbh, u_char *);
sys/netinet6/ip6_output.c
930
*mtod(exthdrs.ip6e_hbh, u_char *) = IPPROTO_FRAGMENT;
sys/netinet6/ip6_output.c
966
mhip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/mld6.c
365
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/mld6.c
588
ip6 = mtod(mh, struct ip6_hdr *);
sys/netinet6/mld6.c
664
ip6 = mtod(*mh, struct ip6_hdr *);
sys/netinet6/mld6.c
676
mldh = mtod(md, struct mld_hdr *);
sys/netinet6/nd6.c
362
hip6 = mtod(ln->ln_hold, struct ip6_hdr *);
sys/netinet6/nd6.c
427
struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/nd6_nbr.c
104
struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/nd6_nbr.c
133
ip6 = mtod(m, struct ip6_hdr *); /* adjust pointer for safety */
sys/netinet6/nd6_nbr.c
454
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/nd6_nbr.c
611
struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/nd6_nbr.c
953
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/nd6_rtr.c
60
struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/raw_ip6.c
168
struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/raw_ip6.c
417
icmp6 = mtod(m, struct icmp6_hdr *);
sys/netinet6/raw_ip6.c
430
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/sctp6_usrreq.c
129
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/udp6_usrreq.c
1020
ip = mtod(m, struct ip *);
sys/netinet6/udp6_usrreq.c
1439
data = mtod(m, char *) + off;
sys/netinet6/udp6_usrreq.c
1479
memmove(mtod(m, char *) + skip, mtod(m, void *), ip6hdrlen);
sys/netinet6/udp6_usrreq.c
1482
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/udp6_usrreq.c
400
struct ip6_hdr *ip6 = mtod(n, struct ip6_hdr *);
sys/netinet6/udp6_usrreq.c
645
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/udp6_usrreq.c
675
ip6 = mtod(m, struct ip6_hdr *);
sys/netinet6/udp6_usrreq.c
676
uh = (struct udphdr *)(mtod(m, char *) + off);
sys/netinet6/udp6_usrreq.c
980
udp6 = (struct udphdr *)(mtod(m, char *) + hlen);
sys/netinet6/udp6_usrreq.c
991
ip6 = mtod(m, struct ip6_hdr *);
sys/netipsec/ipsec.c
1050
ip6 = mtod(m, struct ip6_hdr *);
sys/netipsec/ipsec.c
1846
ip6 = mtod(m, struct ip6_hdr *);
sys/netipsec/ipsec.c
832
ip = mtod(m, struct ip *);
sys/netipsec/ipsec.c
877
struct ip *ip = mtod(m, struct ip *);
sys/netipsec/ipsec.c
968
struct ip *ip = mtod(m, struct ip *);
sys/netipsec/ipsec_input.c
136
ip = mtod(m, struct ip *);
sys/netipsec/ipsec_input.c
406
ip = mtod(m, struct ip *);
sys/netipsec/ipsec_input.c
419
ip = mtod(m, struct ip *);
sys/netipsec/ipsec_input.c
468
nxt = (mtod(*mp, struct ip6_hdr *))->ip6_nxt;
sys/netipsec/ipsec_input.c
543
ip6 = mtod(m, struct ip6_hdr *);
sys/netipsec/ipsec_mbuf.c
102
memcpy(mtod(mprev, char *) + mprev->m_len,
sys/netipsec/ipsec_mbuf.c
103
mtod(m, char *), m->m_len);
sys/netipsec/ipsec_mbuf.c
148
memcpy(mtod(n, char *), mtod(m, char *) + off, cc);
sys/netipsec/ipsec_mbuf.c
236
memcpy(n->m_data, mtod(m, char *) + skip + done, len);
sys/netipsec/ipsec_mbuf.c
278
memmove(mtod(m, char *) + skip + hlen,
sys/netipsec/ipsec_mbuf.c
279
mtod(m, char *) + skip, remain);
sys/netipsec/ipsec_mbuf.c
422
memmove(mtod(m1, u_char *) + roff,
sys/netipsec/ipsec_mbuf.c
423
mtod(m1, u_char *) + roff + hlen,
sys/netipsec/ipsec_mbuf.c
73
memcpy(mtod(mprev, char *) + mprev->m_len,
sys/netipsec/ipsec_mbuf.c
74
mtod(m, char *), m->m_len);
sys/netipsec/ipsec_netbsd.c
215
ahp = (struct newah *)(mtod(m, char *) + off);
sys/netipsec/ipsec_netbsd.c
311
espp = (struct newesp *)(mtod(m, char *) + off);
sys/netipsec/ipsec_output.c
168
ip = mtod(m, struct ip *);
sys/netipsec/ipsec_output.c
175
ip6 = mtod(m, struct ip6_hdr *);
sys/netipsec/ipsec_output.c
197
udp = (struct udphdr *)(mtod(mo, char *) + roff);
sys/netipsec/ipsec_output.c
210
ip = mtod(m, struct ip *);
sys/netipsec/ipsec_output.c
228
ip6 = mtod(m, struct ip6_hdr *);
sys/netipsec/ipsec_output.c
313
struct ip *ip = mtod(m, struct ip *);
sys/netipsec/ipsec_output.c
331
struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *);
sys/netipsec/ipsec_output.c
523
ip = mtod(m, struct ip *);
sys/netipsec/ipsec_output.c
540
ip = mtod(m, struct ip *);
sys/netipsec/ipsec_output.c
567
ip = mtod(m, struct ip *);
sys/netipsec/ipsec_output.c
603
ip = mtod(m, struct ip *);
sys/netipsec/ipsec_output.c
620
ip = mtod(m, struct ip *);
sys/netipsec/ipsec_output.c
646
struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *);
sys/netipsec/ipsec_output.c
763
ip6 = mtod(m, struct ip6_hdr *);
sys/netipsec/ipsec_output.c
806
ip = mtod(m, struct ip *);
sys/netipsec/ipsecif.c
162
ip = mtod(m, struct ip *);
sys/netipsec/ipsecif.c
212
ip = mtod(m, struct ip *);
sys/netipsec/ipsecif.c
244
ip = mtod(m, const struct ip *);
sys/netipsec/ipsecif.c
260
ip6 = mtod(m, const struct ip6_hdr *);
sys/netipsec/ipsecif.c
550
ip = mtod(m, struct ip *);
sys/netipsec/ipsecif.c
565
xip6 = mtod(m, struct ip6_hdr *);
sys/netipsec/ipsecif.c
582
ip6 = mtod(m, struct ip6_hdr *);
sys/netipsec/ipsecif.c
728
ip = mtod(m, const struct ip *);
sys/netipsec/ipsecif.c
755
xip = mtod(m, struct ip *);
sys/netipsec/ipsecif.c
775
ip6 = mtod(m, struct ip6_hdr *);
sys/netipsec/ipsecif.c
847
ip6 = mtod(m, struct ip6_hdr *);
sys/netipsec/ipsecif.c
880
ip = mtod(m, struct ip *);
sys/netipsec/ipsecif.c
900
xip6 = mtod(m, struct ip6_hdr *);
sys/netipsec/key.c
1225
mtod(result, struct sadb_msg *)->sadb_msg_len =
sys/netipsec/key.c
2089
xpl = mtod(m, struct sadb_x_policy *);
sys/netipsec/key.c
2169
mtod(n, void *));
sys/netipsec/key.c
2175
mtod(n, void *));
sys/netipsec/key.c
2394
xpl = (struct sadb_x_policy *)(mtod(mpolicy, char *) + off);
sys/netipsec/key.c
2635
m_copydata(m, 0, sizeof(struct sadb_msg), mtod(n, char *) + off);
sys/netipsec/key.c
2791
mtod(result, struct sadb_msg *)->sadb_msg_len =
sys/netipsec/key.c
2856
newmsg = mtod(m, struct sadb_msg *);
sys/netipsec/key.c
3080
mtod(result, struct sadb_msg *)->sadb_msg_len =
sys/netipsec/key.c
3148
memset(mtod(m, void *), 0, len);
sys/netipsec/key.c
3149
lt = mtod(m, struct sadb_lifetime *);
sys/netipsec/key.c
3156
lt = (struct sadb_lifetime *)(mtod(m, char *) + len / 2);
sys/netipsec/key.c
3186
mtod(result, struct sadb_msg *)->sadb_msg_len =
sys/netipsec/key.c
4044
memcpy(mtod(tres, void *), p, l);
sys/netipsec/key.c
4066
mtod(result, struct sadb_msg *)->sadb_msg_len =
sys/netipsec/key.c
4088
p = mtod(m, struct sadb_x_nat_t_type *);
sys/netipsec/key.c
4112
p = mtod(m, struct sadb_x_nat_t_port *);
sys/netipsec/key.c
4137
p = mtod(m, struct sadb_x_nat_t_frag *);
sys/netipsec/key.c
4250
p = mtod(m, struct sadb_msg *);
sys/netipsec/key.c
4279
p = mtod(m, struct sadb_sa *);
sys/netipsec/key.c
4326
p = mtod(m, struct sadb_address *);
sys/netipsec/key.c
4338
memcpy(mtod(m, char *) + PFKEY_ALIGN8(sizeof(struct sadb_address)),
sys/netipsec/key.c
4363
p = mtod(m, struct sadb_ident *);
sys/netipsec/key.c
4372
memcpy(mtod(m, void *) + PFKEY_ALIGN8(sizeof(struct sadb_ident)),
sys/netipsec/key.c
4393
p = mtod(m, struct sadb_x_sa2 *);
sys/netipsec/key.c
4425
p = mtod(m, struct sadb_x_policy *);
sys/netipsec/key.c
5493
m_copydata(m, 0, sizeof(struct sadb_msg), mtod(n, char *) + off);
sys/netipsec/key.c
5496
m_sa = (struct sadb_sa *)(mtod(n, char *) + off);
sys/netipsec/key.c
6234
mtod(n, struct sadb_msg *)->sadb_msg_errno = 0;
sys/netipsec/key.c
6235
mtod(n, struct sadb_msg *)->sadb_msg_len =
sys/netipsec/key.c
6544
memset(mtod(m, void *), 0, m->m_len);
sys/netipsec/key.c
655
msg = mtod(m, struct sadb_msg *);
sys/netipsec/key.c
6561
comb = (struct sadb_comb *)(mtod(n, char *) + o);
sys/netipsec/key.c
6655
comb = mtod(m, struct sadb_comb *);
sys/netipsec/key.c
6705
comb = mtod(m, struct sadb_comb *);
sys/netipsec/key.c
6752
prop = mtod(m, struct sadb_prop *);
sys/netipsec/key.c
6942
mtod(result, struct sadb_msg *)->sadb_msg_len =
sys/netipsec/key.c
7328
m_copydata(m, 0, sizeof(struct sadb_msg), mtod(n, char *) + off);
sys/netipsec/key.c
7335
sup = (struct sadb_supported *)(mtod(n, char *) + off);
sys/netipsec/key.c
7348
alg = (struct sadb_alg *)(mtod(n, char *) + off);
sys/netipsec/key.c
7361
sup = (struct sadb_supported *)(mtod(n, char *) + off);
sys/netipsec/key.c
7373
alg = (struct sadb_alg *)(mtod(n, char *) + off);
sys/netipsec/key.c
7472
memset(mtod(m, void *), 0, len);
sys/netipsec/key.c
7473
lt = mtod(m, struct sadb_lifetime *);
sys/netipsec/key.c
7484
lt = (struct sadb_lifetime *)(mtod(m, char *) + len / 2);
sys/netipsec/key.c
7515
mtod(result, struct sadb_msg *)->sadb_msg_len =
sys/netipsec/key.c
7595
newmsg = mtod(m, struct sadb_msg *);
sys/netipsec/key.c
7875
msg = mtod(m, struct sadb_msg *);
sys/netipsec/key.c
7912
m_copydata(m, 0, m->m_pkthdr.len, mtod(n, void *));
sys/netipsec/key.c
8097
msg = mtod(m, struct sadb_msg *);
sys/netipsec/key.c
8123
mhp->msg = mtod(m, struct sadb_msg *);
sys/netipsec/key.c
8134
ext = (struct sadb_ext *)(mtod(n, char *) + toff);
sys/netipsec/key.c
8197
ext = (struct sadb_ext *)(mtod(n, char *) + toff);
sys/netipsec/key.c
8878
error = copyout(mtod(n, const void *), p, len);
sys/netipsec/key.c
8923
error = copyout(mtod(n, const void *), p, len);
sys/netipsec/key_debug.c
621
printf("%02x", mtod(m, u_char *)[i]);
sys/netipsec/keysock.c
142
msg = mtod(m, struct sadb_msg *);
sys/netipsec/keysock.c
186
pmsg = mtod(m, struct sadb_msg *);
sys/netipsec/keysock.c
269
msg = mtod(m, struct sadb_msg *);
sys/netipsec/xform_ah.c
316
ip = mtod(m, struct ip *);
sys/netipsec/xform_ah.c
328
ptr = mtod(m, unsigned char *);
sys/netipsec/xform_ah.c
440
ptr = mtod(m, unsigned char *) +
sys/netipsec/xform_ah.c
972
ah = (struct newah *)(mtod(mi, char *) + roff);
sys/netipsec/xform_esp.c
783
memcpy(mtod(mo, char *) + roff, &sav->spi, sizeof(uint32_t));
sys/netipsec/xform_esp.c
795
memcpy(mtod(mo,char *) + roff + sizeof(uint32_t), &replay,
sys/netipsec/xform_ipcomp.c
306
ipc = (struct ipcomp *)(mtod(m, uint8_t *) + skip);
sys/netipsec/xform_ipcomp.c
556
ipcomp = (struct ipcomp *)(mtod(mo, char *) + roff);
sys/netipsec/xform_ipcomp.c
563
ipcomp->comp_nxt = mtod(m, struct ip *)->ip_p;
sys/netipsec/xform_ipcomp.c
568
ipcomp->comp_nxt = mtod(m, struct ip6_hdr *)->ip6_nxt;
sys/netipsec/xform_ipcomp.c
585
mtod(m, struct ip *)->ip_len = htons(m->m_pkthdr.len);
sys/netipsec/xform_ipcomp.c
590
mtod(m, struct ip6_hdr *)->ip6_plen =
sys/netipsec/xform_ipip.c
170
otos = mtod(m, struct ip *)->ip_tos;
sys/netipsec/xform_ipip.c
175
otos = (ntohl(mtod(m, struct ip6_hdr *)->ip6_flow) >> 20) & 0xff;
sys/netipsec/xform_ipip.c
236
ip4 = mtod(m, struct ip *);
sys/netipsec/xform_ipip.c
242
ip6 = mtod(m, struct ip6_hdr *);
sys/netipsec/xform_ipip.c
367
ipo = mtod(m, struct ip *);
sys/netipsec/xform_ipip.c
434
ip6 = mtod(m, struct ip6_hdr *);
sys/netipsec/xform_ipip.c
452
ip6o = mtod(m, struct ip6_hdr *);
sys/netmpls/mpls_ttl.c
162
struct ip *oip = mtod(n, struct ip *), *nip;
sys/netmpls/mpls_ttl.c
257
icp = mtod(m, struct icmp *);
sys/netmpls/mpls_ttl.c
298
nip = mtod(m, struct ip *);
sys/netmpls/mpls_ttl.c
325
iph = mtod(m, struct ip *);
sys/netmpls/mpls_ttl.c
335
iph = mtod(m, struct ip *);
sys/netmpls/mpls_ttl.c
372
mshim = mtod(m, union mpls_shim *);
sys/netmpls/mpls_ttl.c
397
bos_shim.s_addr = ntohl(mtod(m, union mpls_shim *)->s_addr);
sys/nfs/krpc_subr.c
159
sdata = mtod(m, struct sdata *);
sys/nfs/krpc_subr.c
179
rdata = mtod(m, struct rdata *);
sys/nfs/krpc_subr.c
199
reply = mtod(m, struct rpc_reply *);
sys/nfs/krpc_subr.c
285
call = mtod(mhead, struct rpc_call *);
sys/nfs/krpc_subr.c
321
reply = mtod(m, struct rpc_reply *);
sys/nfs/krpc_subr.c
426
xs = mtod(m, struct xdr_string *);
sys/nfs/krpc_subr.c
446
xs = mtod(m, struct xdr_string *);
sys/nfs/krpc_subr.c
481
xi = mtod(m, struct xdr_inaddr *);
sys/nfs/krpc_subr.c
507
xi = mtod(m, struct xdr_inaddr *);
sys/nfs/nfs_boot.c
730
rdata = mtod(m, struct rdata *);
sys/nfs/nfs_boot.c
750
rdata = mtod(m, struct rdata *);
sys/nfs/nfs_bootdhcp.c
313
bootp = mtod(m, struct bootp*);
sys/nfs/nfs_bootdhcp.c
353
bootp = mtod(m, struct bootp*);
sys/nfs/nfs_bootdhcp.c
599
bootp = mtod(m, struct bootp*);
sys/nfs/nfs_bootparam.c
321
call = mtod(m, struct whoami_call *);
sys/nfs/nfs_bootparam.c
350
reply = mtod(m, struct callit_reply *);
sys/nfs/nfs_bootparam.c
357
sin = mtod(from, struct sockaddr_in *);
sys/nfs/nfs_clntsocket.c
390
dpos = mtod(md, void *);
sys/nfs/nfs_clntsocket.c
632
*mtod(m, u_int32_t *) = htonl(0x80000000 |
sys/nfs/nfs_clntsubs.c
142
t1 = (mtod(md, char *) + md->m_len) - *dposp;
sys/nfs/nfs_export.c
830
saddr = mtod(nam, struct sockaddr *);
sys/nfs/nfs_serv.c
1128
adjust = dpos - mtod(mp, char *);
sys/nfs/nfs_serv.c
1269
ivp->iov_base = mtod(mp, void *);
sys/nfs/nfs_serv.c
2924
mp->m_len = bp - mtod(mp, char *);
sys/nfs/nfs_serv.c
3256
mp->m_len = bp - mtod(mp, char *);
sys/nfs/nfs_serv.c
566
ivp->iov_base = mtod(mp, void *);
sys/nfs/nfs_serv.c
792
iv->iov_base = mtod(m, char *) +
sys/nfs/nfs_serv.c
902
adjust = dpos - mtod(mp, char *);
sys/nfs/nfs_serv.c
960
ivp->iov_base = mtod(mp, void *);
sys/nfs/nfs_socket.c
192
saddr = mtod(nmp->nm_nam, struct sockaddr *);
sys/nfs/nfs_socket.c
248
error = soconnect(so, mtod(nmp->nm_nam, struct sockaddr *), l);
sys/nfs/nfs_socket.c
494
sendnam = mtod(nam, struct sockaddr *);
sys/nfs/nfs_socket.c
574
tl = mtod(mreq, u_int32_t *);
sys/nfs/nfs_socket.c
831
m, mtod(nmp->nm_nam, struct sockaddr *),
sys/nfs/nfs_srvcache.c
306
saddr = mtod(nd->nd_nam, struct sockaddr_in *);
sys/nfs/nfs_srvsocket.c
415
nd->nd_dpos = mtod(m, void *);
sys/nfs/nfs_srvsubs.c
145
rem = mtod(md, char *) + md->m_len - fromcp;
sys/nfs/nfs_srvsubs.c
153
fromcp = mtod(md, void *);
sys/nfs/nfs_srvsubs.c
324
saddr = mtod(nam, struct sockaddr_in *);
sys/nfs/nfs_subs.c
1008
dst = mtod(m1, char *) + m1->m_len;
sys/nfs/nfs_subs.c
1011
memcpy(dst, mtod(m2, char *), len);
sys/nfs/nfs_subs.c
1043
*dposp = mtod(m, char *) + offs;
sys/nfs/nfs_subs.c
1084
tl = mtod(m1, u_int32_t *);
sys/nfs/nfs_subs.c
1106
*bpos = mtod(m1, char *) + m1->m_len;
sys/nfs/nfs_subs.c
1616
cp = mtod(n, void *);
sys/nfs/nfs_subs.c
1618
cp = mtod(m, char *) + m->m_len;
sys/nfs/nfs_subs.c
1728
inetaddr = mtod(nam, struct sockaddr_in *);
sys/nfs/nfs_subs.c
1737
sin6_1 = mtod(nam, struct sockaddr_in6 *);
sys/nfs/nfs_subs.c
1738
sin6_2 = mtod(haddr->had_nam, struct sockaddr_in6 *);
sys/nfs/nfs_subs.c
590
bpos = mtod(mb, void *);
sys/nfs/nfs_subs.c
628
bpos = mtod(mb, void *);
sys/nfs/nfs_subs.c
677
bpos = mtod(mb, void *);
sys/nfs/nfs_subs.c
712
bpos = mtod(mb, void *);
sys/nfs/nfs_subs.c
751
len = mtod(mp, char *) + mp->m_len - mbufcp;
sys/nfs/nfs_subs.c
766
mbufcp = mtod(mp, void *);
sys/nfs/nfs_subs.c
847
cp = mtod(mp, char *) + mp->m_len;
sys/nfs/nfs_subs.c
871
cp = mtod(mp, char *) + mp->m_len;
sys/nfs/nfs_subs.c
877
*bpos = mtod(mp, char *) + mp->m_len;
sys/nfs/nfs_subs.c
914
src = mtod(m1, void *);
sys/nfs/nfs_subs.c
929
nfsm_aligned(mtod(havebuf, char *) + havebuf->m_len)) {
sys/nfs/nfs_subs.c
937
*cp2 = mtod(m1, char *) + m1->m_len;
sys/nfs/nfs_subs.c
960
*cp2 = mtod(m1, char *);
sys/nfs/nfs_subs.c
979
memcpy(mtod(m2, char *), src, len);
sys/nfs/nfs_subs.c
986
*cp2 = mtod(m1, char *);
sys/nfs/nfs_subs.c
994
dst = mtod(m1, char *);
sys/nfs/nfs_syscalls.c
1083
if (mtod(nd->nd_nam, struct sockaddr *)->sa_family == AF_INET)
sys/nfs/nfs_syscalls.c
1084
rt->ipadr = mtod(nd->nd_nam, struct sockaddr_in *)->sin_addr.s_addr;
sys/nfs/nfs_syscalls.c
427
saddr = mtod(nfsd->nfsd_nd->nd_nam2,
sys/nfs/nfs_syscalls.c
740
nsd->nsd_haddr = mtod(nd->nd_nam,
sys/nfs/nfs_syscalls.c
826
*mtod(m, u_int32_t *) =
sys/nfs/nfs_vfsops.c
420
memcpy(mtod(m, void *), (void *)ndmntp->ndm_args.addr,
sys/nfs/nfs_vfsops.c
596
sa = mtod(nmp->nm_nam, struct sockaddr *);
sys/nfs/nfs_vnops.c
1316
bpos = mtod(void *, mb) + mb->m_len;
sys/nfs/nfsm_subs.h
471
{ t1 = mtod(md, char *) + md->m_len - dpos; \
sys/nfs/nfsm_subs.h
514
bp = mtod(mp, char *); \
sys/nfs/nfsm_subs.h
87
bpos = mtod(mb, char *); \
sys/nfs/nfsm_subs.h
96
{ t1 = mtod(md, char *) + md->m_len-dpos; \
sys/opencrypto/cryptosoft.c
274
idat = mtod(m, unsigned char *) + k;
sys/rump/net/lib/libshmif/if_shmem.c
667
dataoff = shmif_buswrite(busmem, dataoff, mtod(m, void *),
sys/rump/net/lib/libshmif/if_shmem.c
815
nextpkt = shmif_busread(busmem, mtod(m, void *),
sys/rump/net/lib/libshmif/if_shmem.c
846
eth = mtod(m, struct ether_header *);
sys/rump/net/lib/libsockin/sockin.c
268
io.iov_base = mtod(m, void *);
sys/rump/net/lib/libvirtif/if_virt.c
308
io[i].iov_base = mtod(m, void *);
sys/rump/net/lib/libvirtif/if_virt.c
370
eth = mtod(m, struct ether_header *);
sys/sys/mbuf.h
614
(val) = (typ)(mtod((m), char *) + (off)); \
sys/sys/mbuf.h
620
(val) = (typ)(mtod(_t, char *) + _tmp); \
sys/sys/mbuf.h
857
if (((uintptr_t)mtod(*m, void *) & mask) != 0)
tests/net/in_cksum/in_cksum.c
121
unsigned char *ptr = mtod(m, unsigned char *) + off;
tests/net/in_cksum/in_cksum.c
129
ptr = mtod(m, unsigned char *);
usr.sbin/npf/npftest/libnpftest/npf_mbuf_subr.c
120
dst = mtod(m, void *);
usr.sbin/npf/npftest/libnpftest/npf_mbuf_subr.c
134
ethdr = mtod(m0, struct ether_header *);
usr.sbin/npf/npftest/libnpftest/npf_mbuf_subr.c
176
iphdr = mtod(m, struct ip *);
usr.sbin/npf/npftest/libnpftest/npf_mbuf_subr.c
204
ip6 = mtod(m, struct ip6_hdr *);
usr.sbin/npf/npftest/libnpftest/npf_mbuf_subr.c
228
iphdr = mtod(mn, struct ip *);
usr.sbin/npf/npftest/libnpftest/npf_mbuf_subr.c
230
iphdr = mtod(m, struct ip *);
usr.sbin/npf/npftest/libnpftest/npf_mbuf_subr.c
239
struct ip6_hdr *ip6hdr = mtod(m, struct ip6_hdr *);
usr.sbin/npf/npftest/libnpftest/npf_mbuf_subr.c
248
struct ip *iphdr = mtod(m, struct ip *);
usr.sbin/npf/npftest/libnpftest/npf_mbuf_subr.c
255
memcpy(&ic->icmp_ip, mtod(m_orig, struct ip *), addlen);
usr.sbin/npf/npftest/libnpftest/npf_mbuf_subr.c
320
ethdr = mtod(m0, struct ether_header *);