/freebsd-11-stable/sbin/dhclient/ |
H A D | privsep.c | 111 servername_len, optlen, prefix_len, totlen; local 151 totlen = sizeof(hdr) + sizeof(lease) + sizeof(size_t); 152 if (hdr.len < totlen) 157 totlen += filename_len + sizeof(size_t); 158 if (hdr.len < totlen || filename_len == SIZE_T_MAX) 168 totlen += servername_len + sizeof(size_t); 169 if (hdr.len < totlen || servername_len == SIZE_T_MAX) 180 totlen += prefix_len; 181 if (hdr.len < totlen || prefix_len == SIZE_T_MAX) 191 totlen [all...] |
/freebsd-11-stable/sys/netgraph/ |
H A D | ng_bpf.c | 418 int totlen; local 427 totlen = m->m_pkthdr.len; 430 /* atomic_add_int64(&hip->stats.recvOctets, totlen); */ 432 hip->stats.recvOctets += totlen; 434 /* Don't call bpf_filter() with totlen == 0! */ 435 if (totlen == 0) { 446 if (m->m_next != NULL && totlen > MHLEN) { 448 data = malloc(totlen, M_NETGRAPH_BPF, M_NOWAIT); 454 m_copydata(m, 0, totlen, (caddr_t)data); 458 NGI_M(item) = m = m_pullup(m, totlen); [all...] |
H A D | ng_tag.c | 510 int totlen; local 514 totlen = m->m_pkthdr.len; 518 hip->stats.recvOctets += totlen; 549 hip->stats.recvMatchOctets += totlen; 565 dhip->stats.xmitOctets += totlen;
|
/freebsd-11-stable/sys/dev/usb/ |
H A D | usb_util.c | 194 uint8_t totlen; local 214 totlen = (max_len + 1) * 2; 216 p->bLength = totlen; 222 return (totlen);
|
H A D | usb_pf.c | 358 uint32_t totlen; local 367 totlen = USBPF_HDR_LEN + (USBPF_FRAME_HDR_LEN * nframes); 373 totlen += USBPF_FRAME_ALIGN( 378 totlen += USBPF_FRAME_ALIGN( 383 return (totlen); 393 uint32_t totlen; local 409 totlen = usbpf_xfer_precompute_size(xfer, type); 422 buf = ptr = malloc(totlen, M_TEMP, M_NOWAIT); 433 up->up_totlen = htole32(totlen); 529 bpf_tap(bus->ifp->if_bpf, buf, totlen); [all...] |
/freebsd-11-stable/lib/libc/db/hash/ |
H A D | hash_bigkey.c | 451 int mylen, totlen; local 459 totlen = len + mylen; 462 if ((hashp->tmp_buf = (char *)malloc(totlen)) == NULL) 482 if (!xbp || ((totlen = 491 return (totlen); 516 int mylen, totlen; local 524 totlen = len + mylen; 528 if ((hashp->tmp_key = (char *)malloc(totlen)) == NULL) 534 if (!xbp || ((totlen = 535 collect_key(hashp, xbp, totlen, va [all...] |
/freebsd-11-stable/usr.sbin/lpr/common_source/ |
H A D | rmjob.c | 306 int i, elem, firstreq, niov, rem, totlen; local 355 for (totlen = i = 0; i < niov; i++) 356 totlen += (iov[i].iov_len = strlen(iov[i].iov_base)); 367 if (writev(rem, iov, niov) != totlen)
|
/freebsd-11-stable/sys/dev/le/ |
H A D | lance.c | 378 lance_get(struct lance_softc *sc, int boff, int totlen) argument 385 if (totlen <= ETHER_HDR_LEN || totlen > LEBLEN - ETHER_CRC_LEN) { 387 if_printf(ifp, "invalid packet size %d; dropping\n", totlen); 396 m0->m_pkthdr.len = totlen; 400 while (totlen > 0) { 401 if (totlen >= MINCLSIZE) { 414 m->m_len = len = min(totlen, len); 418 totlen -= len; 419 if (totlen > [all...] |
/freebsd-11-stable/sys/netpfil/pf/ |
H A D | pf_ioctl.c | 2537 size_t totlen; local 2550 totlen = io->pfrio_size * sizeof(struct pfr_table); 2553 error = copyin(io->pfrio_buffer, pfrts, totlen); 2569 size_t totlen; local 2582 totlen = io->pfrio_size * sizeof(struct pfr_table); 2585 error = copyin(io->pfrio_buffer, pfrts, totlen); 2601 size_t totlen; local 2617 totlen = io->pfrio_size * sizeof(struct pfr_table); 2630 error = copyout(pfrts, io->pfrio_buffer, totlen); 2638 size_t totlen; local 2674 size_t totlen; local 2715 size_t totlen; local 2768 size_t totlen; local 2806 size_t totlen; local 2844 size_t totlen, count; local 2887 size_t totlen; local 2919 size_t totlen; local 2951 size_t totlen; local 2989 size_t totlen; local 3027 size_t totlen; local 3079 size_t totlen; local 3156 size_t totlen; local 3233 size_t totlen; local [all...] |
/freebsd-11-stable/sys/kern/ |
H A D | kern_alq.c | 315 int totlen; local 323 totlen = 0; 335 totlen = aiov[0].iov_len = alq->aq_writehead - alq->aq_writetail; 338 totlen = aiov[0].iov_len = alq->aq_buflen - alq->aq_writetail - 351 totlen = aiov[0].iov_len + aiov[1].iov_len; 362 auio.uio_resid = totlen; 384 alq->aq_writetail = (alq->aq_writetail + totlen + wrapearly) % 386 alq->aq_freebytes += totlen + wrapearly;
|
H A D | uipc_mbuf.c | 974 m_devget(char *buf, int totlen, int off, struct ifnet *ifp, argument 984 while (totlen > 0) { 986 if (totlen + off >= MINCLSIZE) { 994 if (m && totlen + off + max_linkhdr <= MHLEN) { 1002 m->m_pkthdr.len = totlen; 1004 if (totlen + off >= MINCLSIZE) { 1021 m->m_len = len = min(totlen, len); 1029 totlen -= len; 1044 int totlen = 0; local 1050 totlen [all...] |
/freebsd-11-stable/sys/amd64/include/pc/ |
H A D | bios.h | 104 size_t totlen; /* total length of BIOS string to copy */ member in struct:bios_oem_signature
|
/freebsd-11-stable/sys/dev/snc/ |
H A D | dp83932.c | 533 u_int totlen = 0; local 560 totlen += len; 564 if (totlen >= TXBSIZE) { 574 if (totlen < ETHERMIN + sizeof(struct ether_header)) { 575 int pad = ETHERMIN + sizeof(struct ether_header) - totlen; 576 (*sc->sc_zerobuf)(sc, mtdp->mtd_vbuf + totlen, pad); 577 totlen = ETHERMIN + sizeof(struct ether_header); 581 totlen); 583 SWO(sc, txp, TXP_PKTSIZE, totlen); 605 return (totlen); [all...] |
/freebsd-11-stable/sys/security/audit/ |
H A D | bsm_token.c | 1287 u_int32_t totlen; local 1291 totlen = 0; 1295 totlen += strlen(p) + 1; 1296 p = strs + totlen; 1298 GET_TOKEN_AREA(t, dptr, sizeof(u_char) + sizeof(u_int32_t) + totlen); 1301 ADD_STRING(dptr, strs, totlen); 1342 size_t totlen = 0; local 1350 totlen += nextlen + 1; 1355 GET_TOKEN_AREA(t, dptr, sizeof(u_char) + sizeof(u_int32_t) + totlen); 1379 size_t totlen local [all...] |
/freebsd-11-stable/tools/tools/net80211/wlaninject/ |
H A D | wlaninject.c | 124 int totlen; local 132 totlen = iov[0].iov_len + iov[1].iov_len; 137 if (rc != totlen) { 138 printf("Wrote only %d/%d\n", rc, totlen);
|
/freebsd-11-stable/sys/dev/vx/ |
H A D | if_vx.c | 807 vx_get(struct vx_softc *sc, u_int totlen) argument 835 m->m_pkthdr.len = totlen; 850 * we can assume that totlen <= 1500bytes. 854 while (totlen > 0) { 869 if (totlen >= MINCLSIZE) { 873 len = min(totlen, len); 883 totlen -= len;
|
/freebsd-11-stable/tools/tools/net80211/wesside/wesside/ |
H A D | wesside.c | 2295 static unsigned char *get_80211(unsigned char **data, int *totlen, int *plen) argument 2305 assert(*totlen); 2310 *totlen -= bpfh->bh_hdrlen; 2313 if ((int)bpfh->bh_caplen < *totlen) { 2318 *totlen -= offset - tot; /* take into account align bytes */ 2319 } else if ((int)bpfh->bh_caplen > *totlen) 2323 *totlen -= bpfh->bh_caplen; 2324 assert(*totlen >= 0); 2357 static int totlen = 0; local 2365 if (totlen [all...] |
/freebsd-11-stable/contrib/tcpdump/ |
H A D | print-isakmp.c | 918 int totlen; local 923 totlen = 4; 926 totlen = 4 + EXTRACT_16BITS(&p[2]); 928 if (ep2 < p + totlen) { 953 ND_PRINT((ndo,"len=%d value=", totlen - 4)); 954 if (!rawprint(ndo, (const uint8_t *)&p[4], totlen - 4)) { 960 return p + totlen; 969 int totlen; local 974 totlen = 4; 977 totlen [all...] |
/freebsd-11-stable/contrib/wpa/src/eap_server/ |
H A D | eap_server_pwd.c | 419 u16 totlen = 0; local 491 totlen = wpabuf_len(data->outbuf) + 495 "total length = %d", totlen); 506 (totlen ? sizeof(u16) : 0), 515 wpabuf_put_be16(req, totlen);
|
/freebsd-11-stable/contrib/openbsm/libbsm/ |
H A D | bsm_token.c | 1364 size_t totlen = 0; local 1372 totlen += nextlen + 1; 1377 GET_TOKEN_AREA(t, dptr, sizeof(u_char) + sizeof(u_int32_t) + totlen); 1403 size_t totlen = 0; local 1412 totlen += nextlen + 1; 1417 GET_TOKEN_AREA(t, dptr, sizeof(u_char) + sizeof(u_int32_t) + totlen);
|
/freebsd-11-stable/sys/compat/ndis/ |
H A D | kern_ndis.c | 656 uint32_t totlen = 0; local 684 totlen += m->m_len; 705 if (ifp && totlen > ETHER_MAX_FRAME(ifp, eh->ether_type, FALSE)) { 706 diff = totlen - ETHER_MAX_FRAME(ifp, eh->ether_type, FALSE); 707 totlen -= diff; 710 (*m0)->m_pkthdr.len = totlen;
|
/freebsd-11-stable/sys/dev/iwm/ |
H A D | if_iwm_util.c | 232 size_t totlen = hdrlen + paylen; local 236 totlen);
|
/freebsd-11-stable/usr.sbin/ypldap/ |
H A D | ber.c | 1072 ssize_t len, r, totlen = 0; local 1079 totlen += r; 1083 totlen += r + len; 1179 return totlen;
|
/freebsd-11-stable/sys/i386/include/pc/ |
H A D | bios.h | 274 size_t totlen; /* total length of BIOS string to copy */ member in struct:bios_oem_signature
|
/freebsd-11-stable/sys/dev/ie/ |
H A D | if_ie.c | 671 int totlen, resid; local 675 totlen = ie_packet_len(sc); 676 if (totlen <= 0) 705 resid = m->m_pkthdr.len = totlen; 747 resid = totlen; /* remaining data */
|