Home
last modified time | relevance | path

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

12345678910>>...16

/freebsd-14.2/sys/netgraph/
H A Dng_rfc1490.c389 mtod(m, u_char *)[0] = HDLC_UI; in ng_rfc1490_rcvdata()
390 mtod(m, u_char *)[1] = NLPID_PPP; in ng_rfc1490_rcvdata()
398 mtod(m, u_char *)[0] = HDLC_UI; in ng_rfc1490_rcvdata()
399 mtod(m, u_char *)[1] = NLPID_IP; in ng_rfc1490_rcvdata()
410 mtod(m, u_char *)[0] = HDLC_UI; in ng_rfc1490_rcvdata()
412 mtod(m, u_char *)[2] = NLPID_SNAP; in ng_rfc1490_rcvdata()
429 mtod(m, u_char *)[0] = HDLC_UI; in ng_rfc1490_rcvdata()
431 mtod(m, u_char *)[2] = NLPID_SNAP; in ng_rfc1490_rcvdata()
433 mtod(m, u_char *)[4] = 0x80; in ng_rfc1490_rcvdata()
434 mtod(m, u_char *)[5] = 0xc2; in ng_rfc1490_rcvdata()
[all …]
H A Dng_l2tp.c792 hdr = (mtod(m, uint8_t *)[0] << 8) + mtod(m, uint8_t *)[1]; in ng_l2tp_rcvdata_lower()
821 len = (mtod(m, uint8_t *)[0] << 8) + mtod(m, uint8_t *)[1] - 4; in ng_l2tp_rcvdata_lower()
839 tid = (mtod(m, u_int8_t *)[0] << 8) + mtod(m, u_int8_t *)[1]; in ng_l2tp_rcvdata_lower()
840 sid = (mtod(m, u_int8_t *)[2] << 8) + mtod(m, u_int8_t *)[3]; in ng_l2tp_rcvdata_lower()
871 ns = (mtod(m, u_int8_t *)[0] << 8) + mtod(m, u_int8_t *)[1]; in ng_l2tp_rcvdata_lower()
872 nr = (mtod(m, u_int8_t *)[2] << 8) + mtod(m, u_int8_t *)[3]; in ng_l2tp_rcvdata_lower()
887 offset = (mtod(m, u_int8_t *)[0] << 8) + mtod(m, u_int8_t *)[1]; in ng_l2tp_rcvdata_lower()
940 mtod(m, u_int8_t *)[0] = sid >> 8; in ng_l2tp_rcvdata_lower()
1123 p = mtod(m, uint8_t *); in ng_l2tp_rcvdata()
1523 session_id = (mtod(m, u_int8_t *)[0] << 8) + mtod(m, u_int8_t *)[1]; in ng_l2tp_xmit_ctrl()
[all …]
/freebsd-14.2/sys/net80211/
H A Dieee80211_crypto_wep.c188 hdrlen = ieee80211_hdrspace(ic, mtod(m, void *)); in wep_encap()
189 wh = mtod(m, struct ieee80211_frame *); in wep_encap()
206 ivp = mtod(m, uint8_t *); in wep_encap()
259 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.c193 ivp = mtod(m, uint8_t *); in ccmp_encap()
251 wh = mtod(m, struct ieee80211_frame *); in ccmp_decap()
252 ivp = mtod(m, uint8_t *) + hdrlen; in ccmp_decap()
290 ovbcopy(mtod(m, void *), mtod(m, uint8_t *) + ccmp.ic_header, in ccmp_decap()
460 wh = mtod(m, struct ieee80211_frame *); in ccmp_encrypt()
512 pos_next = mtod(n, uint8_t *); in ccmp_encrypt()
541 pos_next = mtod(m, uint8_t *); in ccmp_encrypt()
570 pos = mtod(m, uint8_t *); in ccmp_encrypt()
608 wh = mtod(m, struct ieee80211_frame *); in ccmp_decrypt()
645 pos_next = mtod(m, uint8_t *); in ccmp_decrypt()
[all …]
H A Dieee80211_crypto_tkip.c185 wh = mtod(m, struct ieee80211_frame *); in tkip_encap()
218 ivp = mtod(m, uint8_t *); in tkip_encap()
244 wh = mtod(m, struct ieee80211_frame *); in tkip_enmic()
307 wh = mtod(m, struct ieee80211_frame *); in tkip_decap()
308 ivp = mtod(m, uint8_t *) + hdrlen; in tkip_decap()
364 memmove(mtod(m, uint8_t *) + tkip.ic_header, mtod(m, void *), in tkip_decap()
689 pos = mtod(m, uint8_t *) + off; in wep_encrypt()
708 pos = mtod(m, uint8_t *); in wep_encrypt()
746 pos = mtod(m, uint8_t *) + off; in wep_decrypt()
766 pos = mtod(m, uint8_t *); in wep_decrypt()
[all …]
H A Dieee80211_input.c225 lwh = mtod(mfrag, struct ieee80211_frame *); in ieee80211_defrag()
267 wh = mtod(mfrag, struct ieee80211_frame *); in ieee80211_defrag()
330 memcpy(&wh, mtod(m, caddr_t), hdrlen); in ieee80211_decap()
331 llc = (struct llc *)(mtod(m, caddr_t) + hdrlen); in ieee80211_decap()
345 eh = mtod(m, struct ether_header *); in ieee80211_decap()
372 eh = mtod(m, struct ether_header *); in ieee80211_decap()
526 wh = mtod(m, struct ieee80211_frame *); in ieee80211_parse_beacon()
528 efrm = mtod(m, uint8_t *) + m->m_len; in ieee80211_parse_beacon()
602 scan->timoff = frm - mtod(m, uint8_t *); in ieee80211_parse_beacon()
805 wh = mtod(m, struct ieee80211_frame *); in ieee80211_parse_action()
[all …]
/freebsd-14.2/tools/regression/net80211/tkip/
H A Dtest_tkip.c219 memcpy(mtod(m, void *), t->plaintext, len); in runtest()
222 hdrlen = ieee80211_anyhdrsize(mtod(m, void *)); in runtest()
236 cmpfail(mtod(m, const void *), m->m_pkthdr.len, in runtest()
240 if (memcmp(mtod(m, const void *), t->plaintext, t->plaintext_len)) { in runtest()
242 cmpfail(mtod(m, const void *), m->m_pkthdr.len, in runtest()
269 cmpfail(mtod(m, const void *), m->m_pkthdr.len, in runtest()
274 cmpfail(mtod(m, const void *), m->m_pkthdr.len, in runtest()
298 cmpfail(mtod(m, const void *), m->m_pkthdr.len, in runtest()
308 cmpfail(mtod(m, const void *), m->m_pkthdr.len, in runtest()
312 if (memcmp(mtod(m, const void *), t->plaintext, t->plaintext_len)) { in runtest()
[all …]
/freebsd-14.2/tools/regression/net80211/wep/
H A Dtest_wep.c220 memcpy(mtod(m, void *), t->encrypted, t->encrypted_len); in runtest()
223 hdrlen = ieee80211_anyhdrsize(mtod(m, void *)); in runtest()
230 cmpfail(mtod(m, const void *), m->m_pkthdr.len, in runtest()
239 cmpfail(mtod(m, const void *), m->m_pkthdr.len, in runtest()
242 } else 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()
265 cmpfail(mtod(m, const void *), m->m_pkthdr.len, in runtest()
268 } else if (memcmp(mtod(m, const void *), t->encrypted, m->m_pkthdr.len)) { in runtest()
270 cmpfail(mtod(m, const void *), m->m_pkthdr.len, in runtest()
/freebsd-14.2/lib/libcuse/
H A Dcuse_lib.c76 const struct cuse_methods *mtod; member
382 cdev->mtod = mtod; in cuse_dev_create()
488 if (cdev->mtod->cm_open != NULL) in cuse_wait_and_process()
489 error = (cdev->mtod->cm_open) (cdev, (int)info.fflags); in cuse_wait_and_process()
523 if (cdev->mtod->cm_close != NULL) in cuse_wait_and_process()
530 if (cdev->mtod->cm_read != NULL) { in cuse_wait_and_process()
531 error = (cdev->mtod->cm_read) (cdev, (int)info.fflags, in cuse_wait_and_process()
539 if (cdev->mtod->cm_write != NULL) { in cuse_wait_and_process()
548 if (cdev->mtod->cm_ioctl != NULL) { in cuse_wait_and_process()
557 if (cdev->mtod->cm_poll != NULL) { in cuse_wait_and_process()
[all …]
/freebsd-14.2/tools/regression/net80211/ccmp/
H A Dtest_ccmp.c629 memcpy(mtod(m, void *), t->plaintext, t->plaintext_len); in runtest()
632 hdrlen = ieee80211_anyhdrsize(mtod(m, void *)); in runtest()
648 cmpfail(mtod(m, const void *), m->m_pkthdr.len, in runtest()
651 } else if (memcmp(mtod(m, const void *), t->encrypted, t->encrypted_len)) { in runtest()
654 cmpfail(mtod(m, const void *), m->m_pkthdr.len, in runtest()
666 cmpfail(mtod(m, const void *), m->m_len, in runtest()
676 cmpfail(mtod(m, const void *), m->m_pkthdr.len, in runtest()
679 } else if (memcmp(mtod(m, const void *), t->plaintext, t->plaintext_len)) { in runtest()
682 cmpfail(mtod(m, const void *), m->m_pkthdr.len, in runtest()
/freebsd-14.2/sys/netipsec/
H A Dipsec_mbuf.c86 bcopy(mtodo(m, hlen), mtod(m, caddr_t), skip); in m_makespace()
113 memcpy(n->m_data, mtod(m, char *) + skip + done, len); in m_makespace()
153 bcopy(mtod(m, caddr_t) + skip, in m_makespace()
154 mtod(m, caddr_t) + skip + hlen, remain); in m_makespace()
295 bcopy(mtod(m1, u_char *) + roff + hlen, in m_striphdr()
296 mtod(m1, u_char *) + roff, in m_striphdr()
318 addr = mtod(m, caddr_t) + roff; in m_checkalignment()
335 addr = m ? mtod(m, caddr_t) : NULL; in m_checkalignment()
338 printf(" [%p:%u]", mtod(m, caddr_t), m->m_len); in m_checkalignment()
H A Dipsec_output.c143 ip = mtod(m, struct ip *); in ipsec4_allocsa()
224 ip = mtod(m, struct ip *); in ipsec4_perform_request()
261 ip = mtod(m, struct ip *); in ipsec4_perform_request()
314 ip = mtod(m, struct ip *); in ipsec4_check_pmtu()
408 ip = mtod(m, struct ip *); in ipsec4_common_output()
524 ip6 = mtod(m, struct ip6_hdr *); in ipsec6_allocsa()
603 ip6 = mtod(m, struct ip6_hdr *); in ipsec6_perform_request()
644 ip = mtod(m, struct ip *); in ipsec6_perform_request()
1090 ip = mtod(*mp, struct ip *); in ipsec_encap()
1113 ip6 = mtod(*mp, struct ip6_hdr *); in ipsec_encap()
[all …]
/freebsd-14.2/sys/netgraph/bluetooth/hci/
H A Dng_hci_evnt.c97 hdr = mtod(event, ng_hci_event_pkt_t *); in ng_hci_process_event()
405 addr_type = *mtod(event, u_int8_t *); in le_advertizing_report()
439 length_data = *mtod(event, u_int8_t *); in le_advertizing_report()
459 n->page_scan_mode = *mtod(event, char *); in le_advertizing_report()
588 lep = mtod(event, ng_hci_le_ep *); in le_event()
685 ep = mtod(event, ng_hci_con_compl_ep *); in con_compl()
763 lp = mtod(m, struct __link_policy *); in con_compl()
811 ep = mtod(event, ng_hci_con_req_ep *); in con_req()
897 ep = mtod(event, ng_hci_discon_compl_ep *); in discon_compl()
1096 ep = mtod(event, ng_hci_role_change_ep *); in role_change()
[all …]
H A Dng_hci_main.c727 switch (*mtod(m, u_int8_t *)) { in ng_hci_drv_rcvdata()
772 *mtod(m, u_int8_t *)); in ng_hci_drv_rcvdata()
805 *mtod(m, u_int8_t *)); in ng_hci_acl_rcvdata()
828 mtod(m, ng_hci_acldata_pkt_t *)->con_handle)); in ng_hci_acl_rcvdata()
923 *mtod(m, u_int8_t *)); in ng_hci_sco_rcvdata()
947 mtod(m, ng_hci_scodata_pkt_t *)->con_handle)); in ng_hci_sco_rcvdata()
948 size = mtod(m, ng_hci_scodata_pkt_t *)->length; in ng_hci_sco_rcvdata()
1035 if (*mtod(m, u_int8_t *) != NG_HCI_CMD_PKT) { in ng_hci_raw_rcvdata()
1039 *mtod(m, u_int8_t *)); in ng_hci_raw_rcvdata()
1065 mtod(m, ng_hci_cmd_pkt_t *)->length); in ng_hci_raw_rcvdata()
[all …]
/freebsd-14.2/sys/netinet/
H A Dip_options.c103 struct ip *ip = mtod(m, struct ip *); in ip_dooptions()
450 *(mtod(m, struct in_addr *)) = *p--; in ip_srcroute()
459 q = (struct in_addr *)(mtod(m, caddr_t) + in ip_srcroute()
483 struct ip *ip = mtod(m, struct ip *); in ip_stripoptions()
509 struct ip *ip = mtod(m, struct ip *); in ip_insertoptions()
534 bcopy(ip, mtod(m, void *), sizeof(struct ip)); in ip_insertoptions()
539 bcopy(ip, mtod(m, void *), sizeof(struct ip)); in ip_insertoptions()
541 ip = mtod(m, struct ip *); in ip_insertoptions()
634 bcopy(mtod(m, void *), cp, (unsigned)cnt); in ip_pcbopts()
635 bzero(mtod(m, void *), sizeof(struct in_addr)); in ip_pcbopts()
[all …]
H A Dip_icmp.c239 oip = mtod(n, struct ip *); in icmp_error()
272 oip = mtod(n, struct ip *); in icmp_error()
284 oip = mtod(n, struct ip *); in icmp_error()
299 oip = mtod(n, struct ip *); in icmp_error()
312 oip = mtod(n, struct ip *); in icmp_error()
348 icp = mtod(m, struct icmp *); in icmp_error()
389 nip = mtod(m, struct ip *); in icmp_error()
499 ip = mtod(m, struct ip *); in icmp_input()
502 icp = mtod(m, struct icmp *); in icmp_input()
583 ip = mtod(m, struct ip *); in icmp_input()
[all …]
/freebsd-14.2/sys/netgraph/bluetooth/l2cap/
H A Dng_l2cap_cmds.h64 c = mtod((_m), struct _cmd_rej *); \
100 c = mtod((_m), struct _con_req *); \
123 c = mtod((_m), struct _con_rsp *); \
150 c = mtod((_m), struct _cfg_req *); \
184 c = mtod((_m), struct _cfg_rsp *); \
214 c = mtod((_m), struct _cmd_urs *); \
232 p = mtod((_m), u_int8_t *); \
310 c = mtod((_m), struct _discon_req *); \
333 c = mtod((_m), struct _discon_rsp *); \
380 c = mtod((_m), struct _info_req *); \
[all …]
/freebsd-14.2/sys/kern/
H A Duipc_mbuf.c581 bcopy(mtod(m, caddr_t)+off, mtod(n, caddr_t), in m_copym()
624 bcopy(mtod(m, char *), mtod(n, char *), n->m_len); in m_copypacket()
641 bcopy(mtod(m, char *), mtod(n, char *), n->m_len); in m_copypacket()
802 bcopy(mtod(n, caddr_t), mtod(m, caddr_t) + m->m_len, in m_cat()
963 bcopy(mtod(n, caddr_t), mtod(m, caddr_t) + m->m_len, in m_pullup()
1007 memcpy(mtod(m, caddr_t) + m->m_len, mtod(n, caddr_t), in m_copyup()
1108 bcopy(mtod(m, caddr_t) + len, mtod(n, caddr_t), remain); in m_split()
1226 bzero(mtod(n, caddr_t), MLEN); in m_copyback()
1318 off += mtod(m, vm_offset_t); in m_apply_extpg_one()
1954 off = mtod(m, vm_offset_t); in m_unmapped_uiomove()
[all …]
H A Duipc_mbuf2.c211 m_copydata(n->m_next, 0, tlen, mtod(n, caddr_t) + n->m_len); in m_pulldown()
220 bcopy(mtod(n, caddr_t) + off, mtod(n->m_next, caddr_t), hlen); in m_pulldown()
241 bcopy(mtod(n, caddr_t) + off, mtod(o, caddr_t), hlen); in m_pulldown()
244 m_copydata(n->m_next, 0, tlen, mtod(o, caddr_t) + o->m_len); in m_pulldown()
297 m_copydata(m, off, len, mtod(n, caddr_t)); in m_dup1()
/freebsd-14.2/contrib/smbfs/lib/smb/
H A Dmbuf.c112 dp = mtod(nm, char *); in m_lineup()
141 mbp->mb_pos = mtod(m, char *); in mb_initm()
213 mbp->mb_pos = mtod(mn, char *); in mb_fit()
301 dst = mtod(m, char *) + m->m_len; in mb_put_mem()
311 mbp->mb_pos = mtod(m, char *) + m->m_len; in mb_put_mem()
326 mbp->mb_pos = mtod(m, char *) + m->m_len; in mb_put_mbuf()
347 #define mb_left(m,p) (mtod(m, char *) + (m)->m_len - (p))
451 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-14.2/sys/rpc/
H A Drpcm_subs.h90 bpos = mtod(mb, caddr_t); \
97 { t1 = mtod(md, caddr_t)+md->m_len-dpos; \
120 { t1 = mtod(md, caddr_t)+md->m_len-dpos; \
/freebsd-14.2/sys/netinet6/
H A Dicmp6.c252 ip6 = mtod(m, struct ip6_hdr *); in icmp6_error2()
294 oip6 = mtod(m, struct ip6_hdr *); in icmp6_error()
338 oip6 = mtod(m, struct ip6_hdr *); in icmp6_error()
375 nip6 = mtod(m, struct ip6_hdr *); in icmp6_error()
483 ip6 = mtod(m, struct ip6_hdr *); in icmp6_input()
975 (mtod(m, caddr_t) + eoff); in icmp6_notify_error()
1219 ip6 = mtod(m, struct ip6_hdr *); in ni6_input()
1451 bcopy(mtod(m, caddr_t), mtod(n, caddr_t), sizeof(struct ip6_hdr)); in ni6_input()
1551 *mtod(m, char *) = namelen; in ni6_nametodns()
1556 cp = mtod(m, char *); in ni6_nametodns()
[all …]
H A Ddest6.c82 dstopts = (struct ip6_dest *)(mtod(m, caddr_t) + off); in dest6_input()
93 dstopts = (struct ip6_dest *)(mtod(m, caddr_t) + off); in dest6_input()
115 opt - mtod(m, u_int8_t *)); in dest6_input()
/freebsd-14.2/sys/net/
H A Dif_fwsubr.c179 ah = mtod(m, struct arphdr *); in firewire_output()
262 enc = mtod(m, union fw_encap *); in firewire_output()
304 enc = mtod(m, union fw_encap *); in firewire_output()
364 enc = mtod(m, union fw_encap *); in firewire_input_fragment()
393 enc = mtod(mf, union fw_encap *); in firewire_input_fragment()
421 enc = mtod(mf, union fw_encap *); in firewire_input_fragment()
486 enc = mtod(m, union fw_encap *); in firewire_input_fragment()
538 enc = mtod(m, union fw_encap *); in firewire_input()
549 enc = mtod(m, union fw_encap *); in firewire_input()
554 enc = mtod(m, union fw_encap *); in firewire_input()
[all …]

12345678910>>...16