/freebsd-10.0-release/sys/nfs/ |
H A D | krpc_subr.c | 158 sdata = mtod(m, struct sdata *); 178 rdata = mtod(m, struct rdata *); 280 call = mtod(mhead, struct krpc_call *); 364 reply = mtod(m, struct krpc_reply *); 413 reply = mtod(m, struct krpc_reply *); 463 xs = mtod(m, struct xdr_string *);
|
/freebsd-10.0-release/sys/arm/arm/ |
H A D | in_cksum.c | 117 addr = mtod(m, caddr_t) + skip; 128 addr = mtod(m, caddr_t);
|
/freebsd-10.0-release/sys/net80211/ |
H A D | ieee80211_crypto_none.c | 95 struct ieee80211_frame *wh = mtod(m, struct ieee80211_frame *); 113 struct ieee80211_frame *wh = mtod(m, struct ieee80211_frame *);
|
H A D | ieee80211_input.c | 161 struct ieee80211_frame *wh = mtod(m, struct ieee80211_frame *); 205 lwh = mtod(mfrag, struct ieee80211_frame *); 234 lwh = mtod(mfrag, struct ieee80211_frame *); 249 struct ether_header *eh = mtod(m, struct ether_header *); 297 memcpy(&wh, mtod(m, caddr_t), hdrlen); 298 llc = (struct llc *)(mtod(m, caddr_t) + hdrlen); 310 eh = mtod(m, struct ether_header *); 330 if (!ALIGNED_POINTER(mtod(m, caddr_t) + sizeof(*eh), uint32_t)) { 337 eh = mtod(m, struct ether_header *); 363 eh = mtod( [all...] |
H A D | ieee80211_crypto_tkip.c | 168 struct ieee80211_frame *wh = mtod(m, struct ieee80211_frame *); 176 hdrlen = ieee80211_hdrspace(ic, mtod(m, void *)); 184 ivp = mtod(m, uint8_t *); 219 struct ieee80211_frame *wh = mtod(m, struct ieee80211_frame *); 261 wh = mtod(m, struct ieee80211_frame *); 262 ivp = mtod(m, uint8_t *) + hdrlen; 314 memmove(mtod(m, uint8_t *) + tkip.ic_header, mtod(m, void *), hdrlen); 331 wh = mtod(m, struct ieee80211_frame *); 609 pos = mtod( [all...] |
/freebsd-10.0-release/sys/netinet/ |
H A D | in_gif.c | 126 ip = mtod(m, struct ip *); 141 ip6 = mtod(m, struct ip6_hdr *); 170 bcopy(&eiphdr, mtod(m, struct etherip_header *), 214 len = mtod(m, vm_offset_t) & 3; 221 bcopy(&iphdr, mtod(m, struct ip *), sizeof(struct ip)); 280 ip = mtod(m, struct ip *); 311 ip = mtod(m, struct ip *); 333 ip6 = mtod(m, struct ip6_hdr *);
|
H A D | ip6.h | 318 (val) = (typ)(mtod((m), caddr_t) + (off)); \ 324 (val) = (typ)(mtod(t, caddr_t) + tmp); \ 336 (val) = (typ)mtod(m, caddr_t); \ 342 (val) = (typ)mtod(t, caddr_t); \
|
/freebsd-10.0-release/sys/netinet6/ |
H A D | in6_gif.c | 131 ip = mtod(m, struct ip *); 146 ip6 = mtod(m, struct ip6_hdr *); 175 bcopy(&eiphdr, mtod(m, struct etherip_header *), 203 len = mtod(m, vm_offset_t) & 3; 211 ip6 = mtod(m, struct ip6_hdr *); 297 ip6 = mtod(m, struct ip6_hdr *); 329 ip = mtod(m, struct ip *); 349 ip6 = mtod(m, struct ip6_hdr *);
|
H A D | ip6_input.c | 365 ip6 = mtod(m, struct ip6_hdr *); 467 ip6 = mtod(m, struct ip6_hdr *); 520 m_copydata(m, 0, n->m_pkthdr.len, mtod(n, caddr_t)); 538 ip6 = mtod(m, struct ip6_hdr *); 640 ip6 = mtod(m, struct ip6_hdr *); 974 ip6 = mtod(m, struct ip6_hdr *); 1095 hbh = (struct ip6_hbh *)(mtod(m, caddr_t) + off); 1099 hbh = (struct ip6_hbh *)(mtod(m, caddr_t) + off); 1197 ip6 = mtod(m, struct ip6_hdr *); 1288 ip6 = mtod( [all...] |
H A D | icmp6.c | 245 ip6 = mtod(m, struct ip6_hdr *); 288 oip6 = mtod(m, struct ip6_hdr *); 327 icp = (struct icmp6_hdr *)(mtod(m, caddr_t) + off); 352 oip6 = mtod(m, struct ip6_hdr *); /* adjust pointer */ 376 nip6 = mtod(m, struct ip6_hdr *); 429 /* m might change if M_LOOP. So, call mtod after this */ 437 ip6 = mtod(m, struct ip6_hdr *); 601 nip6 = mtod(n, struct ip6_hdr *); 617 nip6 = mtod(n, struct ip6_hdr *); 723 nip6 = mtod( [all...] |
H A D | ip6_output.c | 178 *mtod((m), u_char *) = *(p);\ 180 p = mtod((m), u_char *);\ 262 ip6 = mtod(m, struct ip6_hdr *); 358 ip6 = mtod(m, struct ip6_hdr *); 375 ip6 = mtod(m, struct ip6_hdr *); 408 *mtod(exthdrs.ip6e_dest2, u_char *) = ip6->ip6_nxt; 435 rh = mtod(exthdrs.ip6e_rthdr, struct ip6_rthdr *); 637 ip6 = mtod(m, struct ip6_hdr *); 850 struct ip6_hbh *hbh = mtod(exthdrs.ip6e_hbh, struct ip6_hbh *); 886 ip6 = mtod( [all...] |
/freebsd-10.0-release/sys/netpfil/ipfw/ |
H A D | ip_fw_pfil.c | 226 if (mtod(*m0, struct ip *)->ip_v == 4) 228 else if (mtod(*m0, struct ip *)->ip_v == 6) 332 eh = mtod(m, struct ether_header *); 354 if (eh != mtod(m, struct ether_header *)) 355 bcopy(&save_eh, mtod(m, struct ether_header *), 406 struct ip *ip = mtod(*m0, struct ip *); 444 ip = mtod(reass, struct ip *); 457 struct ip6_hdr *const ip6 = mtod(clone, struct ip6_hdr *);
|
/freebsd-10.0-release/sys/netipsec/ |
H A D | ipsec_output.c | 115 mtod(m, struct ip *)->ip_len = htons(m->m_pkthdr.len); 130 mtod(m, struct ip6_hdr *)->ip6_plen = 207 struct ip *ip = mtod(m, struct ip *); 236 udp = (struct udphdr *)(mtod(mi, caddr_t) + off); 304 struct ip *ip = mtod(m, struct ip *); 322 struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *); 471 ip = mtod(m, struct ip *); 504 ip = mtod(m, struct ip *); 547 ip = mtod(m, struct ip *); 574 ip = mtod( [all...] |
/freebsd-10.0-release/sys/kern/ |
H A D | uipc_mbuf.c | 649 bcopy(mtod(m, caddr_t)+off, mtod(n, caddr_t), 730 m_apply(n, off, len, m_bcopyxxx, mtod(mm, caddr_t) + 737 mm->m_data = mtod(mm, caddr_t) - len; 738 m_apply(n, off, len, m_bcopyxxx, mtod(mm, caddr_t)); 798 m_apply(n, off, i, m_bcopyxxx, mtod(z, caddr_t) + z->m_len); 838 bcopy(mtod(m, char *), mtod(n, char *), n->m_len); 855 bcopy(mtod(m, char *), mtod( [all...] |
H A D | subr_mchain.c | 125 bpos = mtod(m, caddr_t) + m->m_len; 136 dst = mtod(mbp->mb_cur, caddr_t) + mbp->mb_cur->m_len; 216 dst = mtod(m, caddr_t) + m->m_len; 321 mdp->md_pos = mtod(m, u_char*); 480 count = mtod(m, u_char*) + m->m_len - s; 484 s = mdp->md_pos = mtod(m, caddr_t); 517 rm = m_copym(m, mdp->md_pos - mtod(m, u_char*), size, M_WAITOK);
|
/freebsd-10.0-release/sys/fs/nfs/ |
H A D | nfskpiport.h | 46 #define mbuf_data(m) mtod((m), void *)
|
/freebsd-10.0-release/sys/netgraph/ |
H A D | ng_atmllc.c | 162 hdr = mtod(m, struct atmllc *); 179 hdr = mtod(m, struct atmllc *); 211 hdr = mtod(m, struct atmllc *); 228 hdr = mtod(m, struct atmllc *);
|
H A D | ng_l2tp.c | 791 hdr = (mtod(m, uint8_t *)[0] << 8) + mtod(m, uint8_t *)[1]; 820 len = (mtod(m, uint8_t *)[0] << 8) + mtod(m, uint8_t *)[1] - 4; 838 tid = (mtod(m, u_int8_t *)[0] << 8) + mtod(m, u_int8_t *)[1]; 839 sid = (mtod(m, u_int8_t *)[2] << 8) + mtod(m, u_int8_t *)[3]; 870 ns = (mtod(m, u_int8_t *)[0] << 8) + mtod( [all...] |
H A D | ng_vjc.c | 417 ip = mtod(m, struct ip *); 466 vjlen = sl_uncompress_tcp_core(mtod(m, u_char *), 496 bcopy(hdr, mtod(hm, u_char *), hlen); 522 if (sl_uncompress_tcp_core(mtod(m, u_char *), 600 ip = mtod(m, struct ip *); 607 ip = mtod(m, struct ip *);
|
H A D | ng_UI.c | 182 ptr = start = mtod(m, u_char *); 194 mtod(m, u_char *)[0] = HDLC_UI;
|
/freebsd-10.0-release/sys/net/ |
H A D | bpf_filter.c | 103 cp = mtod(m, u_char *) + k; 112 np = mtod(m0, u_char *); 152 cp = mtod(m, u_char *) + k; 161 return ((cp[0] << 8) | mtod(m0, u_char *)[0]); 256 A = mtod(m, u_char *)[k]; 328 A = mtod(m, u_char *)[k]; 347 X = (mtod(m, u_char *)[k] & 0xf) << 2;
|
/freebsd-10.0-release/sys/netsmb/ |
H A D | smb_crypt.c | 255 MD5Update(&md5, mtod(mb, void *), mb->m_len); 293 MD5Update(&md5, mtod(mb, void *), 14); 297 MD5Update(&md5, mtod(mb, u_char *) + 22, mb->m_len - 22); 299 MD5Update(&md5, mtod(mb, void *), mb->m_len); 305 if (bcmp(mtod(mdp->md_top, u_char *) + 14, digest, 8) != 0)
|
/freebsd-10.0-release/sys/netgraph/bluetooth/hci/ |
H A D | ng_hci_main.c | 707 switch (*mtod(m, u_int8_t *)) { 752 *mtod(m, u_int8_t *)); 782 if (*mtod(m, u_int8_t *) != NG_HCI_ACL_DATA_PKT) { 786 *mtod(m, u_int8_t *)); 810 mtod(m, ng_hci_acldata_pkt_t *)->con_handle)); 811 size = le16toh(mtod(m, ng_hci_acldata_pkt_t *)->length); 901 if (*mtod(m, u_int8_t *) != NG_HCI_SCO_DATA_PKT) { 905 *mtod(m, u_int8_t *)); 929 mtod(m, ng_hci_scodata_pkt_t *)->con_handle)); 930 size = mtod( [all...] |
H A D | ng_hci_cmds.c | 169 ep = mtod(e, ng_hci_command_compl_ep *); 194 if (*mtod(e, u_int8_t *) == 0) { /* XXX m_pullup here? */ 243 *mtod(e, u_int8_t *)); 271 ep = mtod(e, ng_hci_command_status_ep *); 351 if (mtod(m, ng_hci_cmd_pkt_t *)->opcode != opcode) { 406 opcode = le16toh(mtod(m, ng_hci_cmd_pkt_t *)->opcode); 495 rp = mtod(mrp, ng_hci_role_discovery_rp *); 687 rp = mtod(mrp, ng_hci_read_buffer_size_rp *);
|
/freebsd-10.0-release/sys/netgraph/bluetooth/l2cap/ |
H A D | ng_l2cap_evnt.c | 107 hdr = mtod(con->rx_pkt, ng_l2cap_hdr_t *); 176 hdr = mtod(con->rx_pkt, ng_l2cap_cmd_hdr_t *); 284 cp = mtod(con->rx_pkt, ng_l2cap_cmd_rej_cp *); 361 cp = mtod(m, ng_l2cap_con_req_cp *); 415 cp = mtod(m, ng_l2cap_con_rsp_cp *); 538 cp = mtod(m, ng_l2cap_cfg_req_cp *); 672 cp = mtod(m, ng_l2cap_cfg_rsp_cp *); 822 cp = mtod(con->rx_pkt, ng_l2cap_discon_req_cp *); 913 cp = mtod(con->rx_pkt, ng_l2cap_discon_rsp_cp *); 984 hdr = mtod(co [all...] |