Home
last modified time | relevance | path

Searched refs:m_copydata (Results 1 – 25 of 107) sorted by relevance

12345

/openbsd/sys/netinet/
H A Dip_spd.c204 m_copydata(m, offsetof(struct ip, ip_src), in ipsp_spd_lookup()
206 m_copydata(m, offsetof(struct ip, ip_dst), in ipsp_spd_lookup()
208 m_copydata(m, offsetof(struct ip, ip_p), sizeof(u_int8_t), in ipsp_spd_lookup()
233 m_copydata(m, hlen, sizeof(u_int16_t), in ipsp_spd_lookup()
235 m_copydata(m, hlen + sizeof(u_int16_t), in ipsp_spd_lookup()
255 m_copydata(m, offsetof(struct ip6_hdr, ip6_src), in ipsp_spd_lookup()
258 m_copydata(m, offsetof(struct ip6_hdr, ip6_dst), in ipsp_spd_lookup()
261 m_copydata(m, offsetof(struct ip6_hdr, ip6_nxt), in ipsp_spd_lookup()
287 m_copydata(m, hlen, sizeof(u_int16_t), in ipsp_spd_lookup()
289 m_copydata(m, hlen + sizeof(u_int16_t), in ipsp_spd_lookup()
H A Dip_ipip.c357 m_copydata(m, 0, 1, &tp); in ipip_output()
404 m_copydata(m, sizeof(struct ip) + in ipip_output()
414 m_copydata(m, sizeof(struct ip) + in ipip_output()
426 m_copydata(m, sizeof(struct ip) + in ipip_output()
496 m_copydata(m, sizeof(struct ip6_hdr) + in ipip_output()
508 m_copydata(m, sizeof(struct ip6_hdr) + in ipip_output()
H A Dip_ah.c336 m_copydata(m, 0, sizeof(ip6), &ip6); in ah_massage_headers()
383 m_copydata(m, sizeof(struct ip6_hdr), in ah_massage_headers()
472 m_copydata(m, 0, sizeof(ip6), &ip6); in ah_massage_headers()
550 m_copydata(m, skip + offsetof(struct ah, ah_hl), sizeof(u_int8_t), &hl); in ah_input()
554 m_copydata(m, skip + offsetof(struct ah, ah_rpl), in ah_input()
671 m_copydata(m, 0, skip + rplen + ahx->authsize, ptr); in ah_input()
706 m_copydata(m, skip + rplen, ahx->authsize, calc); in ah_input()
728 m_copydata(m, skip + offsetof(struct ah, ah_rpl), in ah_input()
1013 m_copydata(m, protoff, sizeof(u_int8_t), &ah->ah_nh); in ah_output()
1064 m_copydata(m, 0, skip, ptr); in ah_output()
H A Dipsec_input.c225 m_copydata(m, skip, sizeof(u_int32_t), (caddr_t) &spi); in ipsec_common_input()
228 m_copydata(m, skip + sizeof(u_int32_t), sizeof(u_int32_t), in ipsec_common_input()
232 m_copydata(m, skip + sizeof(u_int16_t), sizeof(u_int16_t), in ipsec_common_input()
253 m_copydata(m, offsetof(struct ip, ip_dst), in ipsec_common_input()
261 m_copydata(m, offsetof(struct ip6_hdr, ip6_dst), in ipsec_common_input()
418 m_copydata(m, protoff, 1, (caddr_t) &prot); in ipsec_common_input_cb()
1003 m_copydata(m, protoff, sizeof(ip6e), in ipsec_protoff()
H A Dip_esp.c384 m_copydata(m, skip + sizeof(u_int32_t), sizeof(u_int32_t), in esp_input()
478 m_copydata(m, m->m_pkthdr.len - alen, alen, abuf); in esp_input()
521 m_copydata(m, m->m_pkthdr.len - esph->authsize, in esp_input()
540 m_copydata(m, skip + sizeof(u_int32_t), sizeof(u_int32_t), in esp_input()
647 m_copydata(m, m->m_pkthdr.len - 3, 3, lastthree); in esp_input()
870 m_copydata(m, protoff, sizeof(u_int8_t), pad + padding - 1); in esp_output()
H A Dudp_usrreq.c317 m_copydata(m, skip, sizeof(u_int32_t), (caddr_t) &spi); in udp_input()
809 m_copydata(m, off, sizeof(*uhp), (caddr_t)&uh); in udp6_ctlinput()
/openbsd/sys/netinet6/
H A Dip6_input.c754 m_copydata(m, off, sizeof(rthdr), &rthdr); in ip6_check_rh0hdr()
778 m_copydata(m, off, sizeof(opt6), &opt6); in ip6_check_rh0hdr()
1249 m_copydata(m, off, sizeof(ip6e), &ip6e); in ip6_pullexthdr()
1277 m_copydata(m, off, elen, mtod(n, caddr_t)); in ip6_pullexthdr()
1303 m_copydata(m, len, sizeof(ip6e), &ip6e); in ip6_get_prevhdr()
1344 m_copydata(m, off, sizeof(ip6), &ip6); in ip6_nexthdr()
1357 m_copydata(m, off, sizeof(fh), &fh); in ip6_nexthdr()
1368 m_copydata(m, off, sizeof(ip6e), &ip6e); in ip6_nexthdr()
1381 m_copydata(m, off, sizeof(ip6e), &ip6e); in ip6_nexthdr()
H A Dip6_forward.c176 m_copydata(m, 0, icmp_len, icmp_buf); in ip6_forward()
/openbsd/sys/kern/
H A Duipc_mbuf2.c164 m_copydata(n->m_next, 0, tlen, mtod(n, caddr_t) + n->m_len); in m_pulldown()
207 m_copydata(n->m_next, 0, tlen, mtod(o, caddr_t) + o->m_len); in m_pulldown()
252 m_copydata(m, off, len, mtod(n, caddr_t)); in m_dup1()
H A Duipc_mbuf.c559 m_copydata(m, 0, m->m_pkthdr.len, mtod(m0, caddr_t)); in m_defrag()
700 m_copydata(struct mbuf *m, int off, int len, void *p) in m_copydata() function
706 panic("m_copydata: off %d < 0", off); in m_copydata()
708 panic("m_copydata: len %d < 0", len); in m_copydata()
710 panic("m_copydata: short mbuf chain"); in m_copydata()
713 panic("m_copydata: null mbuf"); in m_copydata()
1434 m_copydata(m0, 0, m0->m_pkthdr.len, mtod(m, caddr_t)); in m_dup_pkt()
/openbsd/sys/arch/octeon/dev/
H A Doctcrypto.c735 m_copydata((struct mbuf *)crp->crp_buf, in octcrypto_authenc_gmac()
753 m_copydata((struct mbuf *)crp->crp_buf, in octcrypto_authenc_gmac()
763 m_copydata((struct mbuf *)crp->crp_buf, in octcrypto_authenc_gmac()
778 m_copydata((struct mbuf *)crp->crp_buf, crde->crd_skip, in octcrypto_authenc_gmac()
1032 m_copydata((struct mbuf *)crp->crp_buf, in octcrypto_authenc_hmac()
1045 m_copydata((struct mbuf *)crp->crp_buf, skip, len, buf); in octcrypto_authenc_hmac()
/openbsd/sys/net/
H A Dif_bridge.c980 m_copydata(m, 0, ETHER_HDR_LEN, &eh); in bridgeintr_frame()
1479 m_copydata(m, ETHER_HDR_LEN, LLC_SNAPFRAMELEN, &llc); in bridge_blocknonip()
1532 m_copydata(m, offsetof(struct ip, ip_dst), in bridge_ipsec()
1554 m_copydata(m, offsetof(struct ip6_hdr, ip6_dst), in bridge_ipsec()
1565 m_copydata(m, hlen, sizeof(u_int32_t), &spi); in bridge_ipsec()
1568 m_copydata(m, hlen + sizeof(u_int32_t), in bridge_ipsec()
1572 m_copydata(m, hlen + sizeof(u_int16_t), in bridge_ipsec()
1691 m_copydata(m, ETHER_HDR_LEN, LLC_SNAPFRAMELEN, &llc); in bridge_ip()
1851 m_copydata(m, ETHER_HDR_LEN, LLC_SNAPFRAMELEN, &llc); in bridge_fragment()
H A Dpipex.c1175 m_copydata(m0, hlen + ppphlen, 1, &code); in pipex_common_input()
1235 m_copydata(m0, off, sizeof(pktbuf), pktbuf); in pipex_ppp_proto()
1282 m_copydata(m0, sizeof(struct ether_header), in pipex_pppoe_lookup_session()
1311 m_copydata(m0, sizeof(struct ether_header), in pipex_pppoe_input()
1474 m_copydata(m0, 0, sizeof(struct ip), &ip); in pipex_pptp_lookup_session()
1483 m_copydata(m0, hlen, sizeof(gre), &gre); in pipex_pptp_lookup_session()
1727 m_copydata(m0, 0, sizeof(struct pipex_gre_header), &gre); in pipex_pptp_userland_lookup_session()
1785 m_copydata(m0, 0, len, &gre0); in pipex_pptp_userland_output()
1986 m_copydata(m0, off, sizeof(buf), buf); in pipex_l2tp_lookup_session()
2043 m_copydata(m0, off0, sizeof(flags), &flags); in pipex_l2tp_input()
[all …]
H A Dif_veb.c504 m_copydata(m, sizeof(*eh), sizeof(ea), (caddr_t)&ea); in veb_rule_arp_match()
694 m_copydata(m, iphlen, sizeof(spi), &spi);
697 m_copydata(m, iphlen + sizeof(uint32_t), sizeof(spi), &spi);
700 m_copydata(m, iphlen + sizeof(uint16_t), sizeof(cpi), &cpi);
/openbsd/sys/arch/amd64/amd64/
H A Daesni.c492 m_copydata((struct mbuf *)crp->crp_buf, in aesni_encdec()
507 m_copydata((struct mbuf *)crp->crp_buf, in aesni_encdec()
519 m_copydata((struct mbuf *)crp->crp_buf, in aesni_encdec()
534 m_copydata((struct mbuf *)crp->crp_buf, crd->crd_skip, in aesni_encdec()
H A Dvia.c370 m_copydata((struct mbuf *)crp->crp_buf, in viac3_crypto_encdec()
382 m_copydata((struct mbuf *)crp->crp_buf, in viac3_crypto_encdec()
/openbsd/sys/dev/sdmmc/
H A Dif_bwfm_sdio.c1139 m_copydata(m, 0, m->m_len, (caddr_t)&swhdr[1]); in bwfm_sdio_tx_ctrlframe()
1185 m_copydata(m, 0, m->m_pkthdr.len, (caddr_t)&bcdc[1]); in bwfm_sdio_tx_dataframe()
1353 m_copydata(m, 0, sizeof(hwhdr), (caddr_t)&hwhdr); in bwfm_sdio_rx_glom()
1354 m_copydata(m, sizeof(hwhdr), sizeof(swhdr), (caddr_t)&swhdr); in bwfm_sdio_rx_glom()
1364 m_copydata(m, 0, sizeof(hwhdr), (caddr_t)&hwhdr); in bwfm_sdio_rx_glom()
1365 m_copydata(m, sizeof(hwhdr), sizeof(swhdr), (caddr_t)&swhdr); in bwfm_sdio_rx_glom()
/openbsd/sys/arch/arm64/arm64/
H A Dcryptox.c396 m_copydata((struct mbuf *)crp->crp_buf, in cryptox_encdec()
406 m_copydata((struct mbuf *)crp->crp_buf, crd->crd_skip, in cryptox_encdec()
/openbsd/sys/arch/i386/i386/
H A Dvia.c378 m_copydata((struct mbuf *)crp->crp_buf, in viac3_crypto_encdec()
390 m_copydata((struct mbuf *)crp->crp_buf, in viac3_crypto_encdec()
/openbsd/sys/dev/pci/
H A Dif_lii.c749 m_copydata(m, 0, m->m_pkthdr.len, in lii_tx_put()
753 m_copydata(m, 0, left, sc->sc_txdbase + sc->sc_txd_cur); in lii_tx_put()
754 m_copydata(m, left, m->m_pkthdr.len - left, sc->sc_txdbase); in lii_tx_put()
/openbsd/sys/arch/i386/pci/
H A Dglxsb.c703 m_copydata((struct mbuf *)crp->crp_buf, in glxsb_crypto_encdec()
722 m_copydata((struct mbuf *)crp->crp_buf, in glxsb_crypto_encdec()
/openbsd/sys/arch/alpha/isa/
H A Disadma_bounce.c453 m_copydata(m0, offset, len, in isadma_bounce_dmamap_sync()
/openbsd/sys/net80211/
H A Dieee80211_crypto_wep.c287 m_copydata(m, moff, IEEE80211_WEP_CRCLEN, (caddr_t)&crc0); in ieee80211_wep_decrypt()
/openbsd/sys/sys/
H A Dmbuf.h450 void m_copydata(struct mbuf *, int, int, void *);
/openbsd/sys/crypto/
H A Dcryptosoft.c90 m_copydata((struct mbuf *)a,b,c,d); \
167 m_copydata(m, k, blks, blk); in swcr_encdec()

12345