Home
last modified time | relevance | path

Searched refs:mtod (Results 1 – 25 of 422) sorted by relevance

12345678910>>...17

/freebsd-12.1/sys/netgraph/
H A Dng_rfc1490.c391 mtod(m, u_char *)[0] = HDLC_UI; in ng_rfc1490_rcvdata()
392 mtod(m, u_char *)[1] = NLPID_PPP; in ng_rfc1490_rcvdata()
400 mtod(m, u_char *)[0] = HDLC_UI; in ng_rfc1490_rcvdata()
401 mtod(m, u_char *)[1] = NLPID_IP; in ng_rfc1490_rcvdata()
412 mtod(m, u_char *)[0] = HDLC_UI; in ng_rfc1490_rcvdata()
414 mtod(m, u_char *)[2] = NLPID_SNAP; in ng_rfc1490_rcvdata()
431 mtod(m, u_char *)[0] = HDLC_UI; in ng_rfc1490_rcvdata()
433 mtod(m, u_char *)[2] = NLPID_SNAP; in ng_rfc1490_rcvdata()
435 mtod(m, u_char *)[4] = 0x80; in ng_rfc1490_rcvdata()
436 mtod(m, u_char *)[5] = 0xc2; in ng_rfc1490_rcvdata()
[all …]
/freebsd-12.1/sys/net80211/
H A Dieee80211_crypto_wep.c190 hdrlen = ieee80211_hdrspace(ic, mtod(m, void *)); in wep_encap()
191 wh = mtod(m, struct ieee80211_frame *); in wep_encap()
208 ivp = mtod(m, uint8_t *); in wep_encap()
247 wh = mtod(m, struct ieee80211_frame *); in wep_decap()
270 ovbcopy(mtod(m, void *), mtod(m, uint8_t *) + wep.ic_header, hdrlen); in wep_decap()
381 pos = mtod(m, uint8_t *) + off; in wep_encrypt()
397 ether_sprintf(mtod(m0, in wep_encrypt()
407 pos = mtod(m, uint8_t *); in wep_encrypt()
464 pos = mtod(m, uint8_t *) + off; in wep_decrypt()
482 mtod(m0, struct ieee80211_frame *)->i_addr2, in wep_decrypt()
[all …]
H A Dieee80211_crypto_ccmp.c195 ivp = mtod(m, uint8_t *); in ccmp_encap()
253 wh = mtod(m, struct ieee80211_frame *); in ccmp_decap()
254 ivp = mtod(m, uint8_t *) + hdrlen; in ccmp_decap()
292 ovbcopy(mtod(m, void *), mtod(m, uint8_t *) + ccmp.ic_header, in ccmp_decap()
462 wh = mtod(m, struct ieee80211_frame *); in ccmp_encrypt()
514 pos_next = mtod(n, uint8_t *); in ccmp_encrypt()
543 pos_next = mtod(m, uint8_t *); in ccmp_encrypt()
572 pos = mtod(m, uint8_t *); in ccmp_encrypt()
610 wh = mtod(m, struct ieee80211_frame *); in ccmp_decrypt()
647 pos_next = mtod(m, uint8_t *); in ccmp_decrypt()
[all …]
H A Dieee80211_crypto_tkip.c187 wh = mtod(m, struct ieee80211_frame *); in tkip_encap()
221 ivp = mtod(m, uint8_t *); in tkip_encap()
247 wh = mtod(m, struct ieee80211_frame *); in tkip_enmic()
310 wh = mtod(m, struct ieee80211_frame *); in tkip_decap()
311 ivp = mtod(m, uint8_t *) + hdrlen; in tkip_decap()
367 memmove(mtod(m, uint8_t *) + tkip.ic_header, mtod(m, void *), in tkip_decap()
692 pos = mtod(m, uint8_t *) + off; in wep_encrypt()
711 pos = mtod(m, uint8_t *); in wep_encrypt()
749 pos = mtod(m, uint8_t *) + off; in wep_decrypt()
769 pos = mtod(m, uint8_t *); in wep_decrypt()
[all …]
H A Dieee80211_input.c220 lwh = mtod(mfrag, struct ieee80211_frame *); in ieee80211_defrag()
312 memcpy(&wh, mtod(m, caddr_t), hdrlen); in ieee80211_decap()
313 llc = (struct llc *)(mtod(m, caddr_t) + hdrlen); in ieee80211_decap()
325 eh = mtod(m, struct ether_header *); in ieee80211_decap()
352 eh = mtod(m, struct ether_header *); in ieee80211_decap()
383 ovbcopy(eh, mtod(m, uint8_t *) + sizeof(struct llc), in ieee80211_decap1()
493 wh = mtod(m, struct ieee80211_frame *); in ieee80211_parse_beacon()
495 efrm = mtod(m, uint8_t *) + m->m_len; in ieee80211_parse_beacon()
569 scan->timoff = frm - mtod(m, uint8_t *); in ieee80211_parse_beacon()
766 wh = mtod(m, struct ieee80211_frame *); in ieee80211_parse_action()
[all …]
/freebsd-12.1/tools/regression/net80211/tkip/
H A Dtest_tkip.c221 memcpy(mtod(m, void *), t->plaintext, len); in runtest()
224 hdrlen = ieee80211_anyhdrsize(mtod(m, void *)); in runtest()
238 cmpfail(mtod(m, const void *), m->m_pkthdr.len, in runtest()
242 if (memcmp(mtod(m, const void *), t->plaintext, t->plaintext_len)) { in runtest()
244 cmpfail(mtod(m, const void *), m->m_pkthdr.len, in runtest()
271 cmpfail(mtod(m, const void *), m->m_pkthdr.len, in runtest()
276 cmpfail(mtod(m, const void *), m->m_pkthdr.len, in runtest()
300 cmpfail(mtod(m, const void *), m->m_pkthdr.len, in runtest()
310 cmpfail(mtod(m, const void *), m->m_pkthdr.len, in runtest()
314 if (memcmp(mtod(m, const void *), t->plaintext, t->plaintext_len)) { in runtest()
[all …]
/freebsd-12.1/lib/libcuse/
H A Dcuse_lib.c77 const struct cuse_methods *mtod; member
388 cdev->mtod = mtod; in cuse_dev_create()
494 if (cdev->mtod->cm_open != NULL) in cuse_wait_and_process()
495 error = (cdev->mtod->cm_open) (cdev, (int)info.fflags); in cuse_wait_and_process()
529 if (cdev->mtod->cm_close != NULL) in cuse_wait_and_process()
536 if (cdev->mtod->cm_read != NULL) { in cuse_wait_and_process()
537 error = (cdev->mtod->cm_read) (cdev, (int)info.fflags, in cuse_wait_and_process()
545 if (cdev->mtod->cm_write != NULL) { in cuse_wait_and_process()
554 if (cdev->mtod->cm_ioctl != NULL) { in cuse_wait_and_process()
563 if (cdev->mtod->cm_poll != NULL) { in cuse_wait_and_process()
[all …]
/freebsd-12.1/tools/regression/net80211/wep/
H A Dtest_wep.c222 memcpy(mtod(m, void *), t->encrypted, t->encrypted_len); in runtest()
225 hdrlen = ieee80211_anyhdrsize(mtod(m, void *)); in runtest()
232 cmpfail(mtod(m, const void *), m->m_pkthdr.len, in runtest()
241 cmpfail(mtod(m, const void *), m->m_pkthdr.len, in runtest()
244 } else if (memcmp(mtod(m, const void *), t->plaintext, t->plaintext_len)) { in runtest()
246 cmpfail(mtod(m, const void *), m->m_pkthdr.len, in runtest()
267 cmpfail(mtod(m, const void *), m->m_pkthdr.len, in runtest()
270 } else if (memcmp(mtod(m, const void *), t->encrypted, m->m_pkthdr.len)) { in runtest()
272 cmpfail(mtod(m, const void *), m->m_pkthdr.len, in runtest()
/freebsd-12.1/sys/kern/
H A Duipc_mbuf.c502 bcopy(mtod(m, caddr_t)+off, mtod(n, caddr_t), in m_copym()
545 bcopy(mtod(m, char *), mtod(n, char *), n->m_len); in m_copypacket()
562 bcopy(mtod(m, char *), mtod(n, char *), n->m_len); in m_copypacket()
695 bcopy(mtod(n, caddr_t), mtod(m, caddr_t) + m->m_len, in m_cat()
830 bcopy(mtod(n, caddr_t), mtod(m, caddr_t) + m->m_len, in m_pullup()
874 memcpy(mtod(m, caddr_t) + m->m_len, mtod(n, caddr_t), in m_copyup()
965 bcopy(mtod(m, caddr_t) + len, mtod(n, caddr_t), remain); in m_split()
1383 bcopy(mtod(n, void *), mtod(m, char *) + m->m_len, in m_collapse()
1405 bcopy(mtod(n, void *), mtod(m, void *), n->m_len); in m_collapse()
1406 bcopy(mtod(n2, void *), mtod(m, char *) + n->m_len, in m_collapse()
[all …]
H A Duipc_mbuf2.c213 m_copydata(n->m_next, 0, tlen, mtod(n, caddr_t) + n->m_len); in m_pulldown()
222 bcopy(mtod(n, caddr_t) + off, mtod(n->m_next, caddr_t), hlen); in m_pulldown()
243 bcopy(mtod(n, caddr_t) + off, mtod(o, caddr_t), hlen); in m_pulldown()
246 m_copydata(n->m_next, 0, tlen, mtod(o, caddr_t) + o->m_len); in m_pulldown()
299 m_copydata(m, off, len, mtod(n, caddr_t)); in m_dup1()
/freebsd-12.1/sys/netgraph/bluetooth/hci/
H A Dng_hci_evnt.c98 hdr = mtod(event, ng_hci_event_pkt_t *); in ng_hci_process_event()
397 event_type = *mtod(event, u_int8_t *); in le_advertizing_report()
400 addr_type = *mtod(event, u_int8_t *); in le_advertizing_report()
434 length_data = *mtod(event, u_int8_t *); in le_advertizing_report()
454 n->page_scan_mode = *mtod(event, char *); in le_advertizing_report()
583 lep = mtod(event, ng_hci_le_ep *); in le_event()
680 ep = mtod(event, ng_hci_con_compl_ep *); in con_compl()
758 lp = mtod(m, struct __link_policy *); in con_compl()
806 ep = mtod(event, ng_hci_con_req_ep *); in con_req()
1091 ep = mtod(event, ng_hci_role_change_ep *); in role_change()
[all …]
H A Dng_hci_main.c728 switch (*mtod(m, u_int8_t *)) { in ng_hci_drv_rcvdata()
773 *mtod(m, u_int8_t *)); in ng_hci_drv_rcvdata()
806 *mtod(m, u_int8_t *)); in ng_hci_acl_rcvdata()
829 mtod(m, ng_hci_acldata_pkt_t *)->con_handle)); in ng_hci_acl_rcvdata()
924 *mtod(m, u_int8_t *)); in ng_hci_sco_rcvdata()
948 mtod(m, ng_hci_scodata_pkt_t *)->con_handle)); in ng_hci_sco_rcvdata()
949 size = mtod(m, ng_hci_scodata_pkt_t *)->length; in ng_hci_sco_rcvdata()
1036 if (*mtod(m, u_int8_t *) != NG_HCI_CMD_PKT) { in ng_hci_raw_rcvdata()
1040 *mtod(m, u_int8_t *)); in ng_hci_raw_rcvdata()
1066 mtod(m, ng_hci_cmd_pkt_t *)->length); in ng_hci_raw_rcvdata()
[all …]
/freebsd-12.1/sys/netipsec/
H A Dipsec_mbuf.c86 bcopy(mtodo(m, hlen), mtod(m, caddr_t), skip); in m_makespace()
115 memcpy(n->m_data, mtod(m, char *) + skip + done, len); in m_makespace()
156 bcopy(mtod(m, caddr_t) + skip, in m_makespace()
157 mtod(m, caddr_t) + skip + hlen, remain); in m_makespace()
298 bcopy(mtod(m1, u_char *) + roff + hlen, in m_striphdr()
299 mtod(m1, u_char *) + roff, in m_striphdr()
321 addr = mtod(m, caddr_t) + roff; in m_checkalignment()
338 addr = m ? mtod(m, caddr_t) : NULL; in m_checkalignment()
341 printf(" [%p:%u]", mtod(m, caddr_t), m->m_len); in m_checkalignment()
H A Dipsec_output.c140 ip = mtod(m, struct ip *); in ipsec4_allocsa()
221 ip = mtod(m, struct ip *); in ipsec4_perform_request()
258 ip = mtod(m, struct ip *); in ipsec4_perform_request()
331 struct ip *ip = mtod(m, struct ip *); in ipsec4_common_output()
440 ip6 = mtod(m, struct ip6_hdr *); in ipsec6_allocsa()
519 ip6 = mtod(m, struct ip6_hdr *); in ipsec6_perform_request()
560 ip = mtod(m, struct ip *); in ipsec6_perform_request()
869 ip = mtod(*mp, struct ip *); in ipsec_encap()
892 ip6 = mtod(*mp, struct ip6_hdr *); in ipsec_encap()
913 ip = mtod(*mp, struct ip *); in ipsec_encap()
[all …]
/freebsd-12.1/tools/regression/net80211/ccmp/
H A Dtest_ccmp.c631 memcpy(mtod(m, void *), t->plaintext, t->plaintext_len); in runtest()
634 hdrlen = ieee80211_anyhdrsize(mtod(m, void *)); in runtest()
650 cmpfail(mtod(m, const void *), m->m_pkthdr.len, in runtest()
653 } else if (memcmp(mtod(m, const void *), t->encrypted, t->encrypted_len)) { in runtest()
656 cmpfail(mtod(m, const void *), m->m_pkthdr.len, in runtest()
668 cmpfail(mtod(m, const void *), m->m_len, in runtest()
678 cmpfail(mtod(m, const void *), m->m_pkthdr.len, in runtest()
681 } else if (memcmp(mtod(m, const void *), t->plaintext, t->plaintext_len)) { in runtest()
684 cmpfail(mtod(m, const void *), m->m_pkthdr.len, in runtest()
/freebsd-12.1/sys/netinet/
H A Dip_options.c104 struct ip *ip = mtod(m, struct ip *); in ip_dooptions()
455 *(mtod(m, struct in_addr *)) = *p--; in ip_srcroute()
464 q = (struct in_addr *)(mtod(m, caddr_t) + in ip_srcroute()
488 struct ip *ip = mtod(m, struct ip *); in ip_stripoptions()
514 struct ip *ip = mtod(m, struct ip *); in ip_insertoptions()
539 bcopy(ip, mtod(m, void *), sizeof(struct ip)); in ip_insertoptions()
544 bcopy(ip, mtod(m, void *), sizeof(struct ip)); in ip_insertoptions()
546 ip = mtod(m, struct ip *); in ip_insertoptions()
639 bcopy(mtod(m, void *), cp, (unsigned)cnt); in ip_pcbopts()
640 bzero(mtod(m, void *), sizeof(struct in_addr)); in ip_pcbopts()
[all …]
H A Dip_icmp.c222 oip = mtod(n, struct ip *); in icmp_error()
255 oip = mtod(n, struct ip *); in icmp_error()
281 oip = mtod(n, struct ip *); in icmp_error()
294 oip = mtod(n, struct ip *); in icmp_error()
330 icp = mtod(m, struct icmp *); in icmp_error()
371 nip = mtod(m, struct ip *); in icmp_error()
398 struct ip *ip = mtod(m, struct ip *); in icmp_input()
433 ip = mtod(m, struct ip *); in icmp_input()
436 icp = mtod(m, struct icmp *); in icmp_input()
551 ip = mtod(m, struct ip *); in icmp_input()
[all …]
/freebsd-12.1/sys/netgraph/bluetooth/l2cap/
H A Dng_l2cap_cmds.h65 c = mtod((_m), struct _cmd_rej *); \
101 c = mtod((_m), struct _con_req *); \
124 c = mtod((_m), struct _con_rsp *); \
151 c = mtod((_m), struct _cfg_req *); \
185 c = mtod((_m), struct _cfg_rsp *); \
215 c = mtod((_m), struct _cmd_urs *); \
233 p = mtod((_m), u_int8_t *); \
311 c = mtod((_m), struct _discon_req *); \
334 c = mtod((_m), struct _discon_rsp *); \
381 c = mtod((_m), struct _info_req *); \
[all …]
/freebsd-12.1/contrib/smbfs/lib/smb/
H A Dmbuf.c115 dp = mtod(nm, char *); in m_lineup()
144 mbp->mb_pos = mtod(m, char *); in mb_initm()
216 mbp->mb_pos = mtod(mn, char *); in mb_fit()
304 dst = mtod(m, char *) + m->m_len; in mb_put_mem()
314 mbp->mb_pos = mtod(m, char *) + m->m_len; in mb_put_mem()
329 mbp->mb_pos = mtod(m, char *) + m->m_len; in mb_put_mbuf()
350 #define mb_left(m,p) (mtod(m, char *) + (m)->m_len - (p))
454 mbp->mb_pos = mtod(m, char *); in mb_get_mem()
/freebsd-12.1/sys/net/
H A Dif_fwsubr.c160 ah = mtod(m, struct arphdr *); in firewire_output()
245 enc = mtod(m, union fw_encap *); in firewire_output()
287 enc = mtod(m, union fw_encap *); in firewire_output()
347 enc = mtod(m, union fw_encap *); in firewire_input_fragment()
376 enc = mtod(mf, union fw_encap *); in firewire_input_fragment()
404 enc = mtod(mf, union fw_encap *); in firewire_input_fragment()
469 enc = mtod(m, union fw_encap *); in firewire_input_fragment()
521 enc = mtod(m, union fw_encap *); in firewire_input()
532 enc = mtod(m, union fw_encap *); in firewire_input()
537 enc = mtod(m, union fw_encap *); in firewire_input()
[all …]
/freebsd-12.1/sys/netinet6/
H A Dip6_input.c423 ip6 = mtod(m, struct ip6_hdr *); in ip6_input_hbh()
578 ip6 = mtod(m, struct ip6_hdr *); in ip6_input()
638 ip6 = mtod(m, struct ip6_hdr *); in ip6_input()
742 ip6 = mtod(m, struct ip6_hdr *); in ip6_input()
772 ip6 = mtod(m, struct ip6_hdr *); in ip6_input()
918 ip6 = mtod(m, struct ip6_hdr *); in ip6_input()
1183 ip6 = mtod(m, struct ip6_hdr *); in ip6_unknown_opt()
1328 ip = mtod(m, struct ip *); in ip6_savecontrol_v4()
1358 ip = mtod(m, struct ip *); in ip6_savecontrol_v4()
1381 ip = mtod(m, struct ip *); in ip6_savecontrol_v4()
[all …]
H A Dicmp6.c245 ip6 = mtod(m, struct ip6_hdr *); in icmp6_error2()
288 oip6 = mtod(m, struct ip6_hdr *); in icmp6_error()
374 nip6 = mtod(m, struct ip6_hdr *); in icmp6_error()
426 ip6 = mtod(m, struct ip6_hdr *); in icmp6_input()
952 (mtod(m, caddr_t) + eoff); in icmp6_notify_error()
1182 ip6 = mtod(m, struct ip6_hdr *); in ni6_input()
1417 bcopy(mtod(m, caddr_t), mtod(n, caddr_t), sizeof(struct ip6_hdr)); in ni6_input()
1518 *mtod(m, char *) = namelen; in ni6_nametodns()
1523 cp = mtod(m, char *); in ni6_nametodns()
2100 ip6 = mtod(m, struct ip6_hdr *); in icmp6_reflect()
[all …]
/freebsd-12.1/sys/netgraph/netflow/
H A Dng_netflow.c701 eh = mtod(m, struct ether_header *); in ng_netflow_rcvdata()
708 eh = mtod(m, struct ether_header *); in ng_netflow_rcvdata()
720 eh = mtod(m, struct ether_header *); in ng_netflow_rcvdata()
731 evh = mtod(m, struct ether_vlan_header *); in ng_netflow_rcvdata()
754 ip = mtod(m, struct ip *); in ng_netflow_rcvdata()
764 ip6 = mtod(m, struct ip6_hdr *); in ng_netflow_rcvdata()
855 ip6e = (struct ip6_ext *)(mtod(m, caddr_t) + in ng_netflow_rcvdata()
864 ip6e = (struct ip6_ext *)(mtod(m, caddr_t) + in ng_netflow_rcvdata()
872 ip6f = (struct ip6_frag *)(mtod(m, caddr_t) + in ng_netflow_rcvdata()
907 ip = (struct ip *)(mtod(m, caddr_t) + l3_off); in ng_netflow_rcvdata()
[all …]
/freebsd-12.1/sys/netpfil/ipfw/
H A Dip_fw_pfil.c261 if (mtod(*m0, struct ip *)->ip_v == 4) in ipfw_check_packet()
263 else if (mtod(*m0, struct ip *)->ip_v == 6) in ipfw_check_packet()
369 eh = mtod(m, struct ether_header *); in ipfw_check_frame()
389 if (eh != mtod(m, struct ether_header *)) in ipfw_check_frame()
390 bcopy(&save_eh, mtod(m, struct ether_header *), in ipfw_check_frame()
454 struct ip *ip = mtod(*m0, struct ip *); in ipfw_divert()
492 ip = mtod(reass, struct ip *); in ipfw_divert()
505 struct ip6_hdr *const ip6 = mtod(clone, struct ip6_hdr *); in ipfw_divert()
/freebsd-12.1/sys/rpc/
H A Drpcm_subs.h91 bpos = mtod(mb, caddr_t); \
98 { t1 = mtod(md, caddr_t)+md->m_len-dpos; \
121 { t1 = mtod(md, caddr_t)+md->m_len-dpos; \

12345678910>>...17