Home
last modified time | relevance | path

Searched refs:totlen (Results 1 – 25 of 45) sorted by relevance

12

/NextBSD/sys/netgraph/
HDng_bpf.c418 int totlen; in ng_bpf_rcvdata() local
427 totlen = m->m_pkthdr.len; in ng_bpf_rcvdata()
432 hip->stats.recvOctets += totlen; in ng_bpf_rcvdata()
435 if (totlen == 0) { in ng_bpf_rcvdata()
446 if (m->m_next != NULL && totlen > MHLEN) { in ng_bpf_rcvdata()
448 data = malloc(totlen, M_NETGRAPH_BPF, M_NOWAIT); in ng_bpf_rcvdata()
454 m_copydata(m, 0, totlen, (caddr_t)data); in ng_bpf_rcvdata()
458 NGI_M(item) = m = m_pullup(m, totlen); in ng_bpf_rcvdata()
470 len = (*(hip->jit_prog->func))(data, totlen, totlen); in ng_bpf_rcvdata()
474 len = bpf_filter(hip->prog->bpf_prog, data, totlen, totlen); in ng_bpf_rcvdata()
[all …]
HDng_tag.c512 int totlen; in ng_tag_rcvdata() local
516 totlen = m->m_pkthdr.len; in ng_tag_rcvdata()
520 hip->stats.recvOctets += totlen; in ng_tag_rcvdata()
551 hip->stats.recvMatchOctets += totlen; in ng_tag_rcvdata()
567 dhip->stats.xmitOctets += totlen; in ng_tag_rcvdata()
/NextBSD/sbin/dhclient/
HDprivsep.c110 servername_len, prefix_len, totlen; in dispatch_imsg() local
149 totlen = sizeof(hdr) + sizeof(lease) + sizeof(size_t); in dispatch_imsg()
150 if (hdr.len < totlen) in dispatch_imsg()
155 totlen += filename_len + sizeof(size_t); in dispatch_imsg()
156 if (hdr.len < totlen || filename_len == SIZE_T_MAX) in dispatch_imsg()
166 totlen += servername_len + sizeof(size_t); in dispatch_imsg()
167 if (hdr.len < totlen || servername_len == SIZE_T_MAX) in dispatch_imsg()
178 totlen += prefix_len; in dispatch_imsg()
179 if (hdr.len < totlen || prefix_len == SIZE_T_MAX) in dispatch_imsg()
189 totlen += sizeof(optlen); in dispatch_imsg()
[all …]
/NextBSD/sys/netpfil/pf/
HDpf_ioctl.c2514 size_t totlen; in pfioctl() local
2520 totlen = io->pfrio_size * sizeof(struct pfr_table); in pfioctl()
2521 pfrts = malloc(totlen, M_TEMP, M_WAITOK); in pfioctl()
2522 error = copyin(io->pfrio_buffer, pfrts, totlen); in pfioctl()
2538 size_t totlen; in pfioctl() local
2544 totlen = io->pfrio_size * sizeof(struct pfr_table); in pfioctl()
2545 pfrts = malloc(totlen, M_TEMP, M_WAITOK); in pfioctl()
2546 error = copyin(io->pfrio_buffer, pfrts, totlen); in pfioctl()
2562 size_t totlen; in pfioctl() local
2568 totlen = io->pfrio_size * sizeof(struct pfr_table); in pfioctl()
[all …]
/NextBSD/sys/dev/usb/
HDusb_pf.c358 uint32_t totlen; in usbpf_xfer_precompute_size() local
367 totlen = USBPF_HDR_LEN + (USBPF_FRAME_HDR_LEN * nframes); in usbpf_xfer_precompute_size()
373 totlen += USBPF_FRAME_ALIGN( in usbpf_xfer_precompute_size()
378 totlen += USBPF_FRAME_ALIGN( in usbpf_xfer_precompute_size()
383 return (totlen); in usbpf_xfer_precompute_size()
393 uint32_t totlen; in usbpf_xfertap() local
409 totlen = usbpf_xfer_precompute_size(xfer, type); in usbpf_xfertap()
422 buf = ptr = malloc(totlen, M_TEMP, M_NOWAIT); in usbpf_xfertap()
433 up->up_totlen = htole32(totlen); in usbpf_xfertap()
529 bpf_tap(bus->ifp->if_bpf, buf, totlen); in usbpf_xfertap()
HDusb_util.c194 uint8_t totlen; in usb_make_str_desc() local
214 totlen = (max_len + 1) * 2; in usb_make_str_desc()
216 p->bLength = totlen; in usb_make_str_desc()
222 return (totlen); in usb_make_str_desc()
/NextBSD/lib/libc/db/hash/
HDhash_bigkey.c451 int mylen, totlen; in collect_data() local
459 totlen = len + mylen; in collect_data()
462 if ((hashp->tmp_buf = (char *)malloc(totlen)) == NULL) in collect_data()
482 if (!xbp || ((totlen = in collect_data()
491 return (totlen); in collect_data()
516 int mylen, totlen; in collect_key() local
524 totlen = len + mylen; in collect_key()
528 if ((hashp->tmp_key = (char *)malloc(totlen)) == NULL) in collect_key()
534 if (!xbp || ((totlen = in collect_key()
535 collect_key(hashp, xbp, totlen, val, set)) < 1)) in collect_key()
[all …]
/NextBSD/sys/dev/le/
HDlance.c377 lance_get(struct lance_softc *sc, int boff, int totlen) in lance_get() argument
384 if (totlen <= ETHER_HDR_LEN || totlen > LEBLEN - ETHER_CRC_LEN) { in lance_get()
386 if_printf(ifp, "invalid packet size %d; dropping\n", totlen); in lance_get()
395 m0->m_pkthdr.len = totlen; in lance_get()
399 while (totlen > 0) { in lance_get()
400 if (totlen >= MINCLSIZE) { in lance_get()
413 m->m_len = len = min(totlen, len); in lance_get()
417 totlen -= len; in lance_get()
418 if (totlen > 0) { in lance_get()
/NextBSD/sys/kern/
HDkern_alq.c315 int totlen; in alq_doio() local
323 totlen = 0; in alq_doio()
335 totlen = aiov[0].iov_len = alq->aq_writehead - alq->aq_writetail; in alq_doio()
338 totlen = aiov[0].iov_len = alq->aq_buflen - alq->aq_writetail - in alq_doio()
351 totlen = aiov[0].iov_len + aiov[1].iov_len; in alq_doio()
362 auio.uio_resid = totlen; in alq_doio()
384 alq->aq_writetail = (alq->aq_writetail + totlen + wrapearly) % in alq_doio()
386 alq->aq_freebytes += totlen + wrapearly; in alq_doio()
HDuipc_mbuf.c1163 m_devget(char *buf, int totlen, int off, struct ifnet *ifp, in m_devget() argument
1173 while (totlen > 0) { in m_devget()
1175 if (totlen + off >= MINCLSIZE) { in m_devget()
1183 if (m && totlen + off + max_linkhdr <= MLEN) { in m_devget()
1191 m->m_pkthdr.len = totlen; in m_devget()
1193 if (totlen + off >= MINCLSIZE) { in m_devget()
1210 m->m_len = len = min(totlen, len); in m_devget()
1218 totlen -= len; in m_devget()
1233 int totlen = 0; in m_copyback() local
1239 totlen += mlen; in m_copyback()
[all …]
/NextBSD/usr.sbin/lpr/common_source/
HDrmjob.c306 int i, elem, firstreq, niov, rem, totlen; in rmremote() local
355 for (totlen = i = 0; i < niov; i++) in rmremote()
356 totlen += (iov[i].iov_len = strlen(iov[i].iov_base)); in rmremote()
367 if (writev(rem, iov, niov) != totlen) in rmremote()
/NextBSD/sys/dev/snc/
HDdp83932.c533 u_int totlen = 0; in sonicput() local
560 totlen += len; in sonicput()
564 if (totlen >= TXBSIZE) { in sonicput()
574 if (totlen < ETHERMIN + sizeof(struct ether_header)) { in sonicput()
575 int pad = ETHERMIN + sizeof(struct ether_header) - totlen; in sonicput()
576 (*sc->sc_zerobuf)(sc, mtdp->mtd_vbuf + totlen, pad); in sonicput()
577 totlen = ETHERMIN + sizeof(struct ether_header); in sonicput()
581 totlen); in sonicput()
583 SWO(sc, txp, TXP_PKTSIZE, totlen); in sonicput()
605 return (totlen); in sonicput()
/NextBSD/sys/security/audit/
HDbsm_token.c1287 u_int32_t totlen; in au_to_exec_strings() local
1291 totlen = 0; in au_to_exec_strings()
1295 totlen += strlen(p) + 1; in au_to_exec_strings()
1296 p = strs + totlen; in au_to_exec_strings()
1298 GET_TOKEN_AREA(t, dptr, sizeof(u_char) + sizeof(u_int32_t) + totlen); in au_to_exec_strings()
1301 ADD_STRING(dptr, strs, totlen); in au_to_exec_strings()
1342 size_t totlen = 0; in au_to_exec_args() local
1350 totlen += nextlen + 1; in au_to_exec_args()
1355 GET_TOKEN_AREA(t, dptr, sizeof(u_char) + sizeof(u_int32_t) + totlen); in au_to_exec_args()
1379 size_t totlen = 0; in au_to_exec_env() local
[all …]
/NextBSD/sys/dev/vx/
HDif_vx.c805 vx_get(struct vx_softc *sc, u_int totlen) in vx_get() argument
833 m->m_pkthdr.len = totlen; in vx_get()
852 while (totlen > 0) { in vx_get()
867 if (totlen >= MINCLSIZE) { in vx_get()
871 len = min(totlen, len); in vx_get()
881 totlen -= len; in vx_get()
/NextBSD/tools/tools/net80211/wesside/wesside/
HDwesside.c2295 static unsigned char *get_80211(unsigned char **data, int *totlen, int *plen) in get_80211() argument
2305 assert(*totlen); in get_80211()
2310 *totlen -= bpfh->bh_hdrlen; in get_80211()
2313 if ((int)bpfh->bh_caplen < *totlen) { in get_80211()
2318 *totlen -= offset - tot; /* take into account align bytes */ in get_80211()
2319 } else if ((int)bpfh->bh_caplen > *totlen) in get_80211()
2323 *totlen -= bpfh->bh_caplen; in get_80211()
2324 assert(*totlen >= 0); in get_80211()
2357 static int totlen = 0; in read_packet() local
2365 if (totlen == 0) { in read_packet()
[all …]
/NextBSD/tools/tools/net80211/wlaninject/
HDwlaninject.c124 int totlen; in inject() local
132 totlen = iov[0].iov_len + iov[1].iov_len; in inject()
137 if (rc != totlen) { in inject()
138 printf("Wrote only %d/%d\n", rc, totlen); in inject()
/NextBSD/sys/dev/hifn/
HDhifn7751.c1861 int totlen, len; in hifn_crypto() local
1876 totlen = cmd->src_mapsize; in hifn_crypto()
1893 if (totlen >= MINCLSIZE) { in hifn_crypto()
1902 totlen -= len; in hifn_crypto()
1906 while (totlen > 0) { in hifn_crypto()
1915 if (totlen >= MINCLSIZE) { in hifn_crypto()
1928 totlen -= len; in hifn_crypto()
2768 int totlen, i, u, ivlen; in hifn_callback() local
2783 totlen = cmd->src_mapsize; in hifn_callback()
2785 if (totlen < m->m_len) { in hifn_callback()
[all …]
/NextBSD/sys/compat/ndis/
HDkern_ndis.c653 uint32_t totlen = 0; local
681 totlen += m->m_len;
702 if (totlen > ETHER_MAX_FRAME(ifp, eh->ether_type, FALSE)) {
703 diff = totlen - ETHER_MAX_FRAME(ifp, eh->ether_type, FALSE);
704 totlen -= diff;
707 (*m0)->m_pkthdr.len = totlen;
/NextBSD/sys/amd64/include/pc/
HDbios.h101 size_t totlen; /* total length of BIOS string to copy */ member
/NextBSD/sys/dev/en/
HDmidway.c398 u_int totlen = 0; in en_dump_packet() local
404 totlen += m->m_len; in en_dump_packet()
416 if (totlen != plen) in en_dump_packet()
417 printf("sum of m_len=%u\n", totlen); in en_dump_packet()
1921 u_int totlen, pad; in en_mget() local
1923 totlen = roundup(pktlen, sizeof(uint32_t)); in en_mget()
1924 pad = totlen - pktlen; in en_mget()
1939 if (m->m_len >= totlen) { in en_mget()
1940 m->m_len = totlen; in en_mget()
1943 totlen -= m->m_len; in en_mget()
[all …]
/NextBSD/contrib/openbsm/libbsm/
HDbsm_token.c1364 size_t totlen = 0; in au_to_exec_args() local
1372 totlen += nextlen + 1; in au_to_exec_args()
1377 GET_TOKEN_AREA(t, dptr, sizeof(u_char) + sizeof(u_int32_t) + totlen); in au_to_exec_args()
1403 size_t totlen = 0; in au_to_exec_env() local
1412 totlen += nextlen + 1; in au_to_exec_env()
1417 GET_TOKEN_AREA(t, dptr, sizeof(u_char) + sizeof(u_int32_t) + totlen); in au_to_exec_env()
/NextBSD/contrib/wpa/src/eap_server/
HDeap_server_pwd.c432 u16 totlen = 0; in eap_pwd_build_req() local
504 totlen = wpabuf_len(data->outbuf) + in eap_pwd_build_req()
508 "total length = %d", totlen); in eap_pwd_build_req()
519 (totlen ? sizeof(u16) : 0), in eap_pwd_build_req()
528 wpabuf_put_be16(req, totlen); in eap_pwd_build_req()
/NextBSD/contrib/tcpdump/
HDprint-isakmp.c928 int totlen; in ikev1_attrmap_print() local
932 totlen = 4; in ikev1_attrmap_print()
934 totlen = 4 + EXTRACT_16BITS(&p[2]); in ikev1_attrmap_print()
935 if (ep < p + totlen) { in ikev1_attrmap_print()
958 return p + totlen; in ikev1_attrmap_print()
964 int totlen; in ikev1_attr_print() local
968 totlen = 4; in ikev1_attr_print()
970 totlen = 4 + EXTRACT_16BITS(&p[2]); in ikev1_attr_print()
971 if (ep < p + totlen) { in ikev1_attr_print()
988 return p + totlen; in ikev1_attr_print()
/NextBSD/sys/dev/ie/
HDif_ie.c669 int totlen, resid; in ieget() local
673 totlen = ie_packet_len(sc); in ieget()
674 if (totlen <= 0) in ieget()
703 resid = m->m_pkthdr.len = totlen; in ieget()
745 resid = totlen; /* remaining data */ in ieget()
/NextBSD/sys/netipsec/
HDipsec.c1683 int totlen; in ipsec_dumpmbuf() local
1687 totlen = 0; in ipsec_dumpmbuf()
1693 totlen++; in ipsec_dumpmbuf()
1694 if (totlen % 16 == 0) in ipsec_dumpmbuf()
1699 if (totlen % 16 != 0) in ipsec_dumpmbuf()

12