/freebsd-10-stable/tools/regression/netipx/spxloopback/ |
H A D | spxloopback.c | 61 packet_check(u_char *packet, size_t totlen, ssize_t len) argument 65 for (i = totlen; i < totlen + len; i++) { 77 size_t totlen; local 80 totlen = 0; 82 while (totlen < PACKETLEN) { 83 len = send(sock, packet + totlen, PACKETLEN - totlen, 0); 94 totlen += len; 103 size_t totlen; local [all...] |
/freebsd-10-stable/sbin/dhclient/ |
H A D | privsep.c | 110 servername_len, prefix_len, totlen; local 149 totlen = sizeof(hdr) + sizeof(lease) + sizeof(size_t); 150 if (hdr.len < totlen) 155 totlen += filename_len + sizeof(size_t); 156 if (hdr.len < totlen || filename_len == SIZE_T_MAX) 166 totlen += servername_len + sizeof(size_t); 167 if (hdr.len < totlen || servername_len == SIZE_T_MAX) 178 totlen += prefix_len; 179 if (hdr.len < totlen || prefix_len == SIZE_T_MAX) 189 totlen [all...] |
/freebsd-10-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 | 512 int totlen; local 516 totlen = m->m_pkthdr.len; 520 hip->stats.recvOctets += totlen; 551 hip->stats.recvMatchOctets += totlen; 567 dhip->stats.xmitOctets += totlen;
|
/freebsd-10-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 | 357 uint32_t totlen; local 366 totlen = USBPF_HDR_LEN + (USBPF_FRAME_HDR_LEN * nframes); 372 totlen += USBPF_FRAME_ALIGN( 377 totlen += USBPF_FRAME_ALIGN( 382 return (totlen); 392 uint32_t totlen; local 408 totlen = usbpf_xfer_precompute_size(xfer, type); 421 buf = ptr = malloc(totlen, M_TEMP, M_NOWAIT); 432 up->up_totlen = htole32(totlen); 528 bpf_tap(bus->ifp->if_bpf, buf, totlen); [all...] |
/freebsd-10-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-10-stable/sys/amd64/include/pc/ |
H A D | bios.h | 101 size_t totlen; /* total length of BIOS string to copy */ member in struct:bios_oem_signature
|
/freebsd-10-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-10-stable/sys/dev/le/ |
H A D | lance.c | 376 lance_get(struct lance_softc *sc, int boff, int totlen) argument 383 if (totlen <= ETHER_HDR_LEN || totlen > LEBLEN - ETHER_CRC_LEN) { 385 if_printf(ifp, "invalid packet size %d; dropping\n", totlen); 394 m0->m_pkthdr.len = totlen; 398 while (totlen > 0) { 399 if (totlen >= MINCLSIZE) { 413 m->m_len = len = min(totlen, len); 417 totlen -= len; 418 if (totlen > [all...] |
/freebsd-10-stable/sys/netpfil/pf/ |
H A D | pf_ioctl.c | 2512 size_t totlen; local 2524 totlen = io->pfrio_size * sizeof(struct pfr_table); 2527 error = copyin(io->pfrio_buffer, pfrts, totlen); 2543 size_t totlen; local 2555 totlen = io->pfrio_size * sizeof(struct pfr_table); 2558 error = copyin(io->pfrio_buffer, pfrts, totlen); 2574 size_t totlen, n; local 2584 totlen = io->pfrio_size * sizeof(struct pfr_table); 2597 error = copyout(pfrts, io->pfrio_buffer, totlen); 2605 size_t totlen, local 2635 size_t totlen, n; local 2670 size_t totlen, n; local 2720 size_t totlen; local 2757 size_t totlen; local 2794 size_t totlen, count; local 2836 size_t totlen; local 2867 size_t totlen; local 2898 size_t totlen; local 2935 size_t totlen; local 2972 size_t totlen; local 3023 size_t totlen; local 3099 size_t totlen; local 3175 size_t totlen; local [all...] |
/freebsd-10-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 | 1259 m_devget(char *buf, int totlen, int off, struct ifnet *ifp, argument 1269 while (totlen > 0) { 1271 if (totlen + off >= MINCLSIZE) { 1279 if (m && totlen + off + max_linkhdr <= MLEN) { 1287 m->m_pkthdr.len = totlen; 1289 if (totlen + off >= MINCLSIZE) { 1306 m->m_len = len = min(totlen, len); 1314 totlen -= len; 1329 int totlen = 0; local 1335 totlen [all...] |
/freebsd-10-stable/sys/dev/snc/ |
H A D | dp83932.c | 532 u_int totlen = 0; local 559 totlen += len; 563 if (totlen >= TXBSIZE) { 573 if (totlen < ETHERMIN + sizeof(struct ether_header)) { 574 int pad = ETHERMIN + sizeof(struct ether_header) - totlen; 575 (*sc->sc_zerobuf)(sc, mtdp->mtd_vbuf + totlen, pad); 576 totlen = ETHERMIN + sizeof(struct ether_header); 580 totlen); 582 SWO(sc, txp, TXP_PKTSIZE, totlen); 604 return (totlen); [all...] |
/freebsd-10-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-10-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-10-stable/sys/dev/vx/ |
H A D | if_vx.c | 804 vx_get(struct vx_softc *sc, u_int totlen) argument 832 m->m_pkthdr.len = totlen; 847 * we can assume that totlen <= 1500bytes. 851 while (totlen > 0) { 866 if (totlen >= MINCLSIZE) { 871 len = min(totlen, len); 881 totlen -= len;
|
/freebsd-10-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-10-stable/sys/compat/ndis/ |
H A D | kern_ndis.c | 654 uint32_t totlen = 0; local 682 totlen += m->m_len; 703 if (totlen > ETHER_MAX_FRAME(ifp, eh->ether_type, FALSE)) { 704 diff = totlen - ETHER_MAX_FRAME(ifp, eh->ether_type, FALSE); 705 totlen -= diff; 708 (*m0)->m_pkthdr.len = totlen;
|
/freebsd-10-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-10-stable/usr.sbin/mountd/ |
H A D | mountd.c | 2881 int totlen, cont_line; local 2887 totlen = 0; 2904 if (linesize < len + totlen + 1) { 2905 linesize = len + totlen + 1; 2910 memcpy(line + totlen, p, len); 2911 totlen += len; 2912 line[totlen] = '\0'; 2913 } while (totlen == 0 || cont_line);
|
/freebsd-10-stable/sys/i386/include/pc/ |
H A D | bios.h | 271 size_t totlen; /* total length of BIOS string to copy */ member in struct:bios_oem_signature
|
/freebsd-10-stable/contrib/tcpdump/ |
H A D | print-isakmp.c | 473 int totlen; local 478 totlen = 4; 480 totlen = 4 + EXTRACT_16BITS(&q[1]); 481 if (ep < p + totlen) { 504 return p + totlen; 511 int totlen; local 516 totlen = 4; 518 totlen = 4 + EXTRACT_16BITS(&q[1]); 519 if (ep < p + totlen) { 536 return p + totlen; [all...] |
/freebsd-10-stable/contrib/wpa/src/eap_server/ |
H A D | eap_server_pwd.c | 420 u16 totlen = 0; local 492 totlen = wpabuf_len(data->outbuf) + 496 "total length = %d", totlen); 507 (totlen ? sizeof(u16) : 0), 516 wpabuf_put_be16(req, totlen);
|
/freebsd-10-stable/sys/netipsec/ |
H A D | ipsec.c | 1687 int totlen; local 1691 totlen = 0; 1697 totlen++; 1698 if (totlen % 16 == 0) 1703 if (totlen % 16 != 0)
|