Home
last modified time | relevance | path

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

12345678910>>...17

/freebsd-13.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-13.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()
261 wh = mtod(m, struct ieee80211_frame *); in wep_decap()
272 ovbcopy(mtod(m, void *), mtod(m, uint8_t *) + wep.ic_header, hdrlen); in wep_decap()
383 pos = mtod(m, uint8_t *) + off; in wep_encrypt()
399 ether_sprintf(mtod(m0, in wep_encrypt()
409 pos = mtod(m, uint8_t *); in wep_encrypt()
466 pos = mtod(m, uint8_t *) + off; in wep_decrypt()
484 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()
220 ivp = mtod(m, uint8_t *); in tkip_encap()
246 wh = mtod(m, struct ieee80211_frame *); in tkip_enmic()
309 wh = mtod(m, struct ieee80211_frame *); in tkip_decap()
310 ivp = mtod(m, uint8_t *) + hdrlen; in tkip_decap()
366 memmove(mtod(m, uint8_t *) + tkip.ic_header, mtod(m, void *), in tkip_decap()
691 pos = mtod(m, uint8_t *) + off; in wep_encrypt()
710 pos = mtod(m, uint8_t *); in wep_encrypt()
748 pos = mtod(m, uint8_t *) + off; in wep_decrypt()
768 pos = mtod(m, uint8_t *); in wep_decrypt()
[all …]
H A Dieee80211_input.c226 lwh = mtod(mfrag, struct ieee80211_frame *); in ieee80211_defrag()
268 wh = mtod(mfrag, struct ieee80211_frame *); in ieee80211_defrag()
328 memcpy(&wh, mtod(m, caddr_t), hdrlen); in ieee80211_decap()
329 llc = (struct llc *)(mtod(m, caddr_t) + hdrlen); in ieee80211_decap()
343 eh = mtod(m, struct ether_header *); in ieee80211_decap()
370 eh = mtod(m, struct ether_header *); in ieee80211_decap()
524 wh = mtod(m, struct ieee80211_frame *); in ieee80211_parse_beacon()
526 efrm = mtod(m, uint8_t *) + m->m_len; in ieee80211_parse_beacon()
600 scan->timoff = frm - mtod(m, uint8_t *); in ieee80211_parse_beacon()
803 wh = mtod(m, struct ieee80211_frame *); in ieee80211_parse_action()
[all …]
/freebsd-13.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-13.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-13.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-13.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-13.1/sys/netipsec/
H A Dipsec_mbuf.c88 bcopy(mtodo(m, hlen), mtod(m, caddr_t), skip); in m_makespace()
117 memcpy(n->m_data, mtod(m, char *) + skip + done, len); in m_makespace()
158 bcopy(mtod(m, caddr_t) + skip, in m_makespace()
159 mtod(m, caddr_t) + skip + hlen, remain); in m_makespace()
300 bcopy(mtod(m1, u_char *) + roff + hlen, in m_striphdr()
301 mtod(m1, u_char *) + roff, in m_striphdr()
323 addr = mtod(m, caddr_t) + roff; in m_checkalignment()
340 addr = m ? mtod(m, caddr_t) : NULL; in m_checkalignment()
343 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()
333 ip = mtod(m, struct ip *); in ipsec4_common_output()
441 ip6 = mtod(m, struct ip6_hdr *); in ipsec6_allocsa()
520 ip6 = mtod(m, struct ip6_hdr *); in ipsec6_perform_request()
561 ip = mtod(m, struct ip *); in ipsec6_perform_request()
877 ip = mtod(*mp, struct ip *); in ipsec_encap()
900 ip6 = mtod(*mp, struct ip6_hdr *); in ipsec_encap()
921 ip = mtod(*mp, struct ip *); in ipsec_encap()
[all …]
/freebsd-13.1/sys/netgraph/bluetooth/hci/
H A Dng_hci_evnt.c98 hdr = mtod(event, ng_hci_event_pkt_t *); in ng_hci_process_event()
400 event_type = *mtod(event, u_int8_t *); in le_advertizing_report()
403 addr_type = *mtod(event, u_int8_t *); in le_advertizing_report()
437 length_data = *mtod(event, u_int8_t *); in le_advertizing_report()
457 n->page_scan_mode = *mtod(event, char *); in le_advertizing_report()
586 lep = mtod(event, ng_hci_le_ep *); in le_event()
683 ep = mtod(event, ng_hci_con_compl_ep *); in con_compl()
761 lp = mtod(m, struct __link_policy *); in con_compl()
809 ep = mtod(event, ng_hci_con_req_ep *); in con_req()
1094 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-13.1/sys/netinet/
H A Dip_options.c105 struct ip *ip = mtod(m, struct ip *); in ip_dooptions()
452 *(mtod(m, struct in_addr *)) = *p--; in ip_srcroute()
461 q = (struct in_addr *)(mtod(m, caddr_t) + in ip_srcroute()
485 struct ip *ip = mtod(m, struct ip *); in ip_stripoptions()
511 struct ip *ip = mtod(m, struct ip *); in ip_insertoptions()
536 bcopy(ip, mtod(m, void *), sizeof(struct ip)); in ip_insertoptions()
541 bcopy(ip, mtod(m, void *), sizeof(struct ip)); in ip_insertoptions()
543 ip = mtod(m, struct ip *); in ip_insertoptions()
636 bcopy(mtod(m, void *), cp, (unsigned)cnt); in ip_pcbopts()
637 bzero(mtod(m, void *), sizeof(struct in_addr)); in ip_pcbopts()
[all …]
H A Dip_icmp.c231 oip = mtod(n, struct ip *); in icmp_error()
264 oip = mtod(n, struct ip *); in icmp_error()
276 oip = mtod(n, struct ip *); in icmp_error()
291 oip = mtod(n, struct ip *); in icmp_error()
304 oip = mtod(n, struct ip *); in icmp_error()
340 icp = mtod(m, struct icmp *); in icmp_error()
381 nip = mtod(m, struct ip *); in icmp_error()
443 ip = mtod(m, struct ip *); in icmp_input()
446 icp = mtod(m, struct icmp *); in icmp_input()
559 ip = mtod(m, struct ip *); in icmp_input()
[all …]
/freebsd-13.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-13.1/sys/kern/
H A Duipc_mbuf.c544 bcopy(mtod(m, caddr_t)+off, mtod(n, caddr_t), in m_copym()
587 bcopy(mtod(m, char *), mtod(n, char *), n->m_len); in m_copypacket()
604 bcopy(mtod(m, char *), mtod(n, char *), n->m_len); in m_copypacket()
765 bcopy(mtod(n, caddr_t), mtod(m, caddr_t) + m->m_len, in m_cat()
926 bcopy(mtod(n, caddr_t), mtod(m, caddr_t) + m->m_len, in m_pullup()
970 memcpy(mtod(m, caddr_t) + m->m_len, mtod(n, caddr_t), in m_copyup()
1071 bcopy(mtod(m, caddr_t) + len, mtod(n, caddr_t), remain); in m_split()
1189 bzero(mtod(n, caddr_t), MLEN); in m_copyback()
1281 off += mtod(m, vm_offset_t); in m_apply_extpg_one()
1913 off = mtod(m, vm_offset_t); in m_unmapped_uiomove()
[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-13.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()
H A Drq.c108 dst = mtod(m, char *) + m->m_len; in smb_rq_dmem()
115 mbp->mb_pos = mtod(m, char *) + m->m_len; in smb_rq_dmem()
135 data = mtod(mbp->mb_top, char*); in smb_rq_simple()
144 krq.ioc_rpbuf = mtod(mbp->mb_top, char *); in smb_rq_simple()
/freebsd-13.1/sys/netinet6/
H A Dicmp6.c245 ip6 = mtod(m, struct ip6_hdr *); in icmp6_error2()
287 oip6 = mtod(m, struct ip6_hdr *); in icmp6_error()
331 oip6 = mtod(m, struct ip6_hdr *); in icmp6_error()
370 nip6 = mtod(m, struct ip6_hdr *); in icmp6_error()
434 ip6 = mtod(m, struct ip6_hdr *); in icmp6_input()
955 (mtod(m, caddr_t) + eoff); in icmp6_notify_error()
1190 ip6 = mtod(m, struct ip6_hdr *); in ni6_input()
1422 bcopy(mtod(m, caddr_t), mtod(n, caddr_t), sizeof(struct ip6_hdr)); in ni6_input()
1522 *mtod(m, char *) = namelen; in ni6_nametodns()
1527 cp = mtod(m, char *); in ni6_nametodns()
[all …]
H A Ddest6.c84 dstopts = (struct ip6_dest *)(mtod(m, caddr_t) + off); in dest6_input()
95 dstopts = (struct ip6_dest *)(mtod(m, caddr_t) + off); in dest6_input()
117 opt - mtod(m, u_int8_t *)); in dest6_input()
/freebsd-13.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; \
/freebsd-13.1/sys/netgraph/netflow/
H A Dng_netflow.c699 eh = mtod(m, struct ether_header *); in ng_netflow_rcvdata()
707 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()
756 ip = mtod(m, struct ip *); in ng_netflow_rcvdata()
766 ip6 = mtod(m, struct ip6_hdr *); in ng_netflow_rcvdata()
860 ip6e = (struct ip6_ext *)(mtod(m, caddr_t) + in ng_netflow_rcvdata()
869 ip6e = (struct ip6_ext *)(mtod(m, caddr_t) + in ng_netflow_rcvdata()
877 ip6f = (struct ip6_frag *)(mtod(m, caddr_t) + in ng_netflow_rcvdata()
912 ip = (struct ip *)(mtod(m, caddr_t) + l3_off); in ng_netflow_rcvdata()
[all …]
/freebsd-13.1/sys/net/
H A Dif_fwsubr.c180 ah = mtod(m, struct arphdr *); in firewire_output()
263 enc = mtod(m, union fw_encap *); in firewire_output()
305 enc = mtod(m, union fw_encap *); in firewire_output()
365 enc = mtod(m, union fw_encap *); in firewire_input_fragment()
394 enc = mtod(mf, union fw_encap *); in firewire_input_fragment()
422 enc = mtod(mf, union fw_encap *); in firewire_input_fragment()
487 enc = mtod(m, union fw_encap *); in firewire_input_fragment()
539 enc = mtod(m, union fw_encap *); in firewire_input()
550 enc = mtod(m, union fw_encap *); in firewire_input()
555 enc = mtod(m, union fw_encap *); in firewire_input()
[all …]

12345678910>>...17