| /src/tests/net/bpf/ |
| h_bpf.h | 55 * holds (pkt + split, pkt + pktsize) bytes. 60 unsigned char pkt[], size_t pktsize, size_t split) 65 mb1->m_next = (split < pktsize) ? mb2 : NULL; 66 mb1->m_len = (split < pktsize) ? split : pktsize; 68 if (split < pktsize) { 72 mb2->m_len = pktsize - split; 83 unsigned char pkt[], size_t pktsize) 90 args.buflen = pktsize; 91 args.wirelen = pktsize; [all...] |
| /src/tests/net/icmp/ |
| t_ping.c | 140 doping(const char *target, int loops, u_int pktsize) 168 if (pktsize < sizeof(*icmp)) 169 pktsize = sizeof(*icmp); 170 if (pktsize > sizeof(sndbuf.buf)) 171 pktsize = sizeof(sndbuf.buf); 174 &pktsize, sizeof(pktsize))); 176 &pktsize, sizeof(pktsize))); 184 icmp->icmp_cksum = in_cksum(icmp, pktsize); [all...] |
| /src/sys/dev/usb/ |
| ualea.c | 231 uint32_t pktsize; local 248 usbd_get_xfer_status(xfer, NULL, &pkt, &pktsize, NULL); 249 KASSERTMSG(pktsize <= sc->sc_maxpktsize, 250 "pktsize %"PRIu32" > %"PRIu16" (max)", 251 pktsize, sc->sc_maxpktsize); 264 rnd_add_data(&sc->sc_rnd, pkt, pktsize, NBBY*pktsize); 265 sc->sc_needed -= MIN(sc->sc_needed, pktsize);
|
| vhci.c | 1117 size_t pktsize, size; local 1137 pktsize = pkt->size; 1139 pktsize = ulmin(vxfer->resbuf.size, pktsize); 1141 KASSERT(pktsize >= pkt->cursor); 1142 size = uimin(uio->uio_resid, pktsize - pkt->cursor); 1154 if (pkt->cursor == pktsize) {
|
| /src/tests/net/ipsec/ |
| t_ipsec_transport.sh | 55 local pktsize= 109 # pktsize == minlen - 1 110 pktsize=$(($(get_minlen $algo) - 8 - 1)) 112 rump.ping -c 1 -n -w 3 -s $pktsize -p ff $ip_peer 116 # pktsize == minlen 117 pktsize=$(($(get_minlen $algo) - 8)) 119 rump.ping -c 1 -n -w 3 -s $pktsize -p ff $ip_peer 195 # pktsize == minlen - 1 196 pktsize=$(($(get_minlen $algo) - 8 - 1)) 198 rump.ping6 -c 1 -n -X 3 -s $pktsize -p ff $ip_pee [all...] |
| t_ipsec_tunnel_ipcomp.sh | 200 # pktsize == minlen - 1 201 pktsize=$(($(get_minlen deflate) - 8 - 20 - 1)) 203 rump.ping -c 1 -n -w 3 -s $pktsize -p ff $ip_remote 209 # pktsize == minlen 210 pktsize=$(($(get_minlen deflate) - 8 - 20)) 212 rump.ping -c 1 -n -w 3 -s $pktsize -p ff $ip_remote 327 # pktsize == minlen - 1 329 pktsize=$(($(get_minlen deflate) - 8 - 40 - 1)) 331 rump.ping6 -c 1 -n -X 3 -s $pktsize -p ff $ip_remote 337 # pktsize == minle [all...] |
| /src/tests/net/bpfilter/ |
| t_bpfilter.c | 160 unsigned int pktsize; local 168 pktsize = wirelen - ETHER_HDR_LEN - sizeof(struct ip); 169 if (pktsize < sizeof(struct icmp) + 7) 189 pkt = calloc(1, pktsize); 194 memcpy(pkt + pktsize - 7, tail, 7); 198 icmp->icmp_cksum = in_cksum(pkt, pktsize); 201 if (rump_sys_sendto(s, pkt, pktsize, 0, 206 if (rump_sys_recvfrom(s, pkt, pktsize, 0,
|
| /src/sys/altq/ |
| altq_cbq.h | 123 u_int pktsize; member in struct:cbq_class_spec
|
| altq_cbq.c | 401 opts->pktsize, opts->flags); 690 acp->cbq_class.pktsize) < 0) 741 spec->pktsize, spec->flags);
|
| altq_rmclass.c | 201 int minidle, u_int offtime, int pktsize, int flags) 290 red_pkttime = PSEC_TO_NSEC(psecPerByte) * pktsize / 1000; 352 int minidle, u_int offtime, int pktsize)
|
| /src/crypto/external/apache2/openssl/dist/test/helpers/ |
| noisydgrambio.c | 138 size_t pktsize = msg[i].data_len; local 140 if ((limit->size_sum + pktsize) / SAMPLING_WINDOW_PERIOD > limit->bw) { 162 limit->pinfos[end].size = pktsize; 164 limit->size_sum += pktsize;
|
| /src/dist/pf/sbin/pfctl/ |
| pfctl_altq.c | 401 if (opts->pktsize == 0) { /* use default */ 402 opts->pktsize = ifmtu; 403 if (opts->pktsize > MCLBYTES) /* do what TCP does */ 404 opts->pktsize &= ~MCLBYTES; 405 } else if (opts->pktsize > ifmtu) 406 opts->pktsize = ifmtu; 410 opts->pktsize = ifmtu; 412 if (opts->pktsize > opts->maxpktsize) 413 opts->pktsize = opts->maxpktsize; 445 ptime = (double)opts->pktsize * ifnsPerByte [all...] |
| /src/sys/rump/net/lib/libshmif/ |
| if_shmem.c | 632 uint32_t pktsize, pktwrote; local 635 pktsize = 0; 637 pktsize += m->m_len; 639 KASSERT(pktsize <= ETHERMTU + ETHER_HDR_LEN); 642 sp.sp_len = pktsize; 670 KASSERT(pktwrote == pktsize); 681 DPRINTF(("shmif_start: send %d bytes at off %d\n", pktsize,
|
| /src/external/bsd/ntp/dist/ntpq/ |
| ntpq.c | 1328 size_t pktsize; local 1354 pktsize = CTL_HEADER_LEN; 1361 pktsize += qsize; 1362 while (pktsize & (sizeof(u_int32) - 1)) { 1364 pktsize++; 1373 return sendpkt(&qpkt, pktsize); 1380 while (pktsize & 7) { 1382 pktsize++; 1411 maclen = authencrypt(info_auth_keyid, (void *)&qpkt, pktsize); 1423 return sendpkt((char *)&qpkt, pktsize + maclen) [all...] |
| /src/external/bsd/unbound/dist/testcode/ |
| testpkts.c | 488 static void add_rr(char* rrstr, uint8_t* pktbuf, size_t pktsize, 493 size_t rr_len = pktsize - *pktlen; 498 if(*pktlen > pktsize || *pktlen < LDNS_HEADER_SIZE) 529 add_edns(uint8_t* pktbuf, size_t pktsize, int do_flag, int co_flag, 545 if(*pktlen + sizeof(edns) + ednslen > pktsize)
|
| /src/tests/lib/libbpfjit/ |
| t_bpfjit.c | 2644 size_t pktsize = sizeof(deadbeef_at_5); local 2658 ATF_CHECK(jitcall(code, pkt, pktsize, l) == 0); 2663 ATF_CHECK(jitcall(code, pkt, pktsize, l) == expected[i]); 2665 l = pktsize; 2814 size_t pktsize = sizeof(deadbeef_at_5); local 2828 ATF_CHECK(jitcall(code, pkt, pktsize, l) == 0); 2833 ATF_CHECK(jitcall(code, pkt, pktsize, l) == expected[i]); 2835 l = pktsize;
|
| /src/tests/net/bpfjit/ |
| t_bpfjit.c | 2464 size_t pktsize = sizeof(deadbeef_at_5); local 2482 ATF_CHECK(jitcall(code, pkt, pktsize, l) == 0); 2487 ATF_CHECK(jitcall(code, pkt, pktsize, l) == expected[i]); 2489 l = pktsize; 2634 size_t pktsize = sizeof(deadbeef_at_5); local 2652 ATF_CHECK(jitcall(code, pkt, pktsize, l) == 0); 2657 ATF_CHECK(jitcall(code, pkt, pktsize, l) == expected[i]); 2659 l = pktsize;
|
| /src/sys/dev/hyperv/ |
| if_hvn.c | 1233 hvn_rndis_pktinfo_append(struct rndis_packet_msg *pkt, size_t pktsize, 1241 pktsize); 1474 size_t pktlen, pktsize; local 1521 pktsize = HVN_PKTSIZE(m, txr->txr_agg_align); 1522 if (pktsize < txr->txr_chim_size) { 1523 chim = hvn_try_txagg(txr, txd, pktsize);
|
| /src/usr.sbin/altq/libaltq/ |
| qop_cbq.c | 911 cl_spec->pktsize = av_pkt_size;
|
| /src/sys/dist/pf/net/ |
| pfvar.h | 1254 u_int pktsize; member in struct:cbq_opts
|