/freebsd-11-stable/contrib/netbsd-tests/net/bpf/ |
H A D | 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; 59 init_mchain2(struct mbuf *mb1, struct mbuf *mb2, unsigned char pkt[], size_t pktsize, size_t split) argument 82 exec_prog(struct bpf_insn *insns, size_t insn_count, unsigned char pkt[], size_t pktsize) argument 110 interp_prog_mchain2(struct bpf_insn *insns, unsigned char pkt[], size_t pktsize, size_t split) argument 134 exec_prog_mchain2(struct bpf_insn *insns, size_t insn_count, unsigned char pkt[], size_t pktsize, size_t split) argument [all...] |
/freebsd-11-stable/tests/sys/kern/ |
H A D | unix_seqpacket_test.c | 135 const size_t pktsize = MIN(sndbufsize, rcvbufsize) / 4; local 136 const int numpkts = totalsize / pktsize; 137 char sndbuf[pktsize]; 148 bzero(sndbuf, pktsize); 151 ssize = send(sv[0], sndbuf, pktsize, MSG_EOR); 171 const ssize_t pktsize = bufsize / 2; local 172 char sndbuf[pktsize]; 173 char recv_buf[pktsize]; 189 bzero(sndbuf, pktsize); 192 ssize = send(sv[0], sndbuf, pktsize, MSG_EO 216 const ssize_t pktsize = MIN(sndbufsize, rcvbufsize) / 4; local 289 ssize_t pktsize; member in struct:__anon8592 349 const size_t pktsize = MIN(sndbufsize, rcvbufsize) / 4; local 883 const size_t pktsize = (sndbufsize + rcvbufsize) * 2; local 912 const size_t pktsize = (sndbufsize + rcvbufsize) * 2; local 967 const ssize_t pktsize = 1024; local [all...] |
/freebsd-11-stable/contrib/netbsd-tests/net/icmp/ |
H A D | t_ping.c | 140 doping(const char *target, int loops, u_int pktsize) argument 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...] |
/freebsd-11-stable/sys/dev/cxgbe/ |
H A D | t4_sched.c | 175 if (p->pktsize < 0) 177 if (!in_range(p->pktsize, 64, pi->vi[0].ifp->if_mtu)) 192 tc->pktsize = p->pktsize; 213 p->weight, p->pktsize, 0, sleep_ok); 260 tc->pktsize, tc->burstsize, 1); 447 tc->mode, tc->maxrate, tc->pktsize, 1) != 0) 484 int rc = 0, fa = -1, i, pktsize, burstsize; local 492 if (pi->sched_params->pktsize > 0) 493 pktsize [all...] |
H A D | t4_ioctl.h | 262 int16_t pktsize; /* average packet size */ member in struct:t4_sched_class_params
|
H A D | adapter.h | 255 uint16_t pktsize; member in struct:tx_cl_rl_params 267 /* Class Rate Limiter (including the default pktsize and burstsize). */ 268 int pktsize; member in struct:tx_sched_params
|
/freebsd-11-stable/contrib/netbsd-tests/net/bpfilter/ |
H A D | 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,
|
/freebsd-11-stable/libexec/tftpd/ |
H A D | tftp-utils.h | 53 extern uint16_t pktsize;
|
H A D | tftp-options.c | 214 pktsize = size + 4; 268 pktsize = size + 4;
|
H A D | tftp-transfer.c | 312 n_data = receive_packet(peer, (char *)rp, pktsize,
|
H A D | tftp-utils.c | 51 uint16_t pktsize = SEGSIZE + 4; variable
|
H A D | tftp-io.c | 445 if (pkt->th_opcode == DATA && n > pktsize) {
|
/freebsd-11-stable/sys/netpfil/pf/ |
H A D | pf_altq.h | 39 u_int pktsize; member in struct:cbq_opts
|
/freebsd-11-stable/sys/arm/ti/ |
H A D | ti_sdma.h | 98 unsigned int pktsize);
|
H A D | ti_sdma.c | 700 * @pktsize: the number of elements in each transfer packet 704 * @pktsize is the size of each individual packet, there might be multiple 707 * frmcnt = 1, elmcnt = 512, pktsize = 128 722 unsigned int elmcnt, unsigned int pktsize) 765 ti_sdma_write_4(sc, DMA4_CSF(ch), pktsize); 767 ti_sdma_write_4(sc, DMA4_CDF(ch), pktsize); 720 ti_sdma_start_xfer_packet(unsigned int ch, unsigned int src_paddr, unsigned long dst_paddr, unsigned int frmcnt, unsigned int elmcnt, unsigned int pktsize) argument
|
/freebsd-11-stable/sys/net/altq/ |
H A D | altq_cbq.h | 126 u_int pktsize; member in struct:cbq_class_spec
|
H A D | altq_cbq.c | 400 opts->pktsize, opts->flags); 693 acp->cbq_class.pktsize) < 0) 744 spec->pktsize, spec->flags);
|
H A D | altq_rmclass.c | 193 int minidle, u_int offtime, int pktsize, int flags) 289 red_pkttime = nsecPerByte * pktsize / 1000; 360 int minidle, u_int offtime, int pktsize) 190 rmc_newclass(int pri, struct rm_ifdat *ifd, u_int nsecPerByte, void (*action)(rm_class_t *, rm_class_t *), int maxq, struct rm_class *parent, struct rm_class *borrow, u_int maxidle, int minidle, u_int offtime, int pktsize, int flags) argument 359 rmc_modclass(struct rm_class *cl, u_int nsecPerByte, int maxq, u_int maxidle, int minidle, u_int offtime, int pktsize) argument
|
/freebsd-11-stable/sbin/pfctl/ |
H A D | pfctl_altq.c | 448 if (opts->pktsize == 0) { /* use default */ 449 opts->pktsize = ifmtu; 450 if (opts->pktsize > MCLBYTES) /* do what TCP does */ 451 opts->pktsize &= ~MCLBYTES; 452 } else if (opts->pktsize > ifmtu) 453 opts->pktsize = ifmtu; 457 opts->pktsize = ifmtu; 459 if (opts->pktsize > opts->maxpktsize) 460 opts->pktsize = opts->maxpktsize; 492 ptime = (double)opts->pktsize * ifnsPerByt [all...] |
/freebsd-11-stable/contrib/ntp/ntpq/ |
H A D | ntpq.c | 1297 size_t pktsize; local 1323 pktsize = CTL_HEADER_LEN; 1330 pktsize += qsize; 1331 while (pktsize & (sizeof(u_int32) - 1)) { 1333 pktsize++; 1342 return sendpkt(&qpkt, pktsize); 1349 while (pktsize & 7) { 1351 pktsize++; 1380 maclen = authencrypt(info_auth_keyid, (void *)&qpkt, pktsize); 1392 return sendpkt((char *)&qpkt, pktsize [all...] |
/freebsd-11-stable/sys/dev/cxgbe/common/ |
H A D | common.h | 819 int minrate, int maxrate, int weight, int pktsize, 826 int mode, unsigned int maxrate, int pktsize,
|
/freebsd-11-stable/contrib/netbsd-tests/net/bpfjit/ |
H A D | 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;
|
/freebsd-11-stable/contrib/netbsd-tests/lib/libbpfjit/ |
H A D | 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;
|
/freebsd-11-stable/usr.sbin/cxgbetool/ |
H A D | cxgbetool.c | 2651 op.u.params.weight = op.u.params.pktsize = -1; 2748 op.u.params.pktsize = (int16_t)l; 2810 if (op.u.params.pktsize < 0 &&
|
/freebsd-11-stable/sys/dev/hyperv/netvsc/ |
H A D | if_hn.c | 2891 hn_rndis_pktinfo_append(struct rndis_packet_msg *pkt, size_t pktsize, argument 2907 KASSERT(pkt->rm_pktinfooffset + pkt->rm_pktinfolen + pi_size <= pktsize, 2963 int pktsize) 2968 if (txr->hn_agg_pktleft >= 1 && txr->hn_agg_szleft > pktsize) { 2995 txr->hn_agg_szleft -= pktsize; 3021 txr->hn_agg_szmax > pktsize + HN_PKTSIZE_MIN(txr->hn_agg_align)) { 3024 txr->hn_agg_szleft = txr->hn_agg_szmax - pktsize; 2962 hn_try_txagg(struct ifnet *ifp, struct hn_tx_ring *txr, struct hn_txdesc *txd, int pktsize) argument
|