Searched refs:pktsize (Results 1 - 25 of 28) sorted by relevance

12

/freebsd-12-stable/contrib/netbsd-tests/net/bpf/
H A Dh_bpf.h55 * 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-12-stable/tests/sys/kern/
H A Dunix_seqpacket_test.c135 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:__anon17109
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-12-stable/contrib/netbsd-tests/net/icmp/
H A Dt_ping.c140 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-12-stable/sys/dev/cxgbe/
H A Dt4_sched.c176 if (p->pktsize < 0)
178 if (!in_range(p->pktsize, 64, pi->vi[0].ifp->if_mtu))
193 tc->pktsize = p->pktsize;
214 p->weight, p->pktsize, 0, sleep_ok);
261 tc->pktsize, tc->burstsize, 1);
448 tc->mode, tc->maxrate, tc->pktsize, 1) != 0)
485 int rc = 0, fa = -1, i, pktsize, burstsize; local
493 if (pi->sched_params->pktsize > 0)
494 pktsize
[all...]
H A Dt4_ioctl.h264 int16_t pktsize; /* average packet size */ member in struct:t4_sched_class_params
H A Dadapter.h267 uint16_t pktsize; member in struct:tx_cl_rl_params
279 /* Class Rate Limiter (including the default pktsize and burstsize). */
280 int pktsize; member in struct:tx_sched_params
/freebsd-12-stable/contrib/netbsd-tests/net/bpfilter/
H A Dt_bpfilter.c160 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-12-stable/libexec/tftpd/
H A Dtftp-utils.h60 extern uint16_t pktsize;
H A Dtftp-options.c217 pktsize = size + 4;
271 pktsize = size + 4;
H A Dtftp-utils.c53 uint16_t pktsize = SEGSIZE + 4; variable
H A Dtftp-transfer.c439 n_data = receive_packet(peer, (char *)rp, pktsize,
H A Dtftp-io.c447 if (pkt->th_opcode == DATA && n > pktsize) {
/freebsd-12-stable/sys/arm/ti/
H A Dti_sdma.h100 unsigned int pktsize);
H A Dti_sdma.c701 * @pktsize: the number of elements in each transfer packet
705 * @pktsize is the size of each individual packet, there might be multiple
708 * frmcnt = 1, elmcnt = 512, pktsize = 128
723 unsigned int elmcnt, unsigned int pktsize)
766 ti_sdma_write_4(sc, DMA4_CSF(ch), pktsize);
768 ti_sdma_write_4(sc, DMA4_CDF(ch), pktsize);
721 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-12-stable/sys/netpfil/pf/
H A Dpf_altq.h41 u_int pktsize; member in struct:cbq_opts
/freebsd-12-stable/sbin/pfctl/
H A Dpfctl_altq.c512 if (opts->pktsize == 0) { /* use default */
513 opts->pktsize = ifmtu;
514 if (opts->pktsize > MCLBYTES) /* do what TCP does */
515 opts->pktsize &= ~MCLBYTES;
516 } else if (opts->pktsize > ifmtu)
517 opts->pktsize = ifmtu;
521 opts->pktsize = ifmtu;
523 if (opts->pktsize > opts->maxpktsize)
524 opts->pktsize = opts->maxpktsize;
561 ptime = (double)opts->pktsize * ifnsPerByt
[all...]
/freebsd-12-stable/sys/net/altq/
H A Daltq_cbq.h141 u_int pktsize; member in struct:cbq_class_spec
H A Daltq_cbq.c399 opts->pktsize, opts->flags);
692 acp->cbq_class.pktsize) < 0)
743 spec->pktsize, spec->flags);
H A Daltq_rmclass.c193 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-12-stable/contrib/ntp/ntpq/
H A Dntpq.c1297 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-12-stable/sys/dev/cxgbe/common/
H A Dcommon.h862 int minrate, int maxrate, int weight, int pktsize,
869 int mode, unsigned int maxrate, int pktsize,
/freebsd-12-stable/contrib/netbsd-tests/lib/libbpfjit/
H A Dt_bpfjit.c2644 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-12-stable/contrib/netbsd-tests/net/bpfjit/
H A Dt_bpfjit.c2464 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-12-stable/sys/dev/hyperv/netvsc/
H A Dif_hn.c2907 hn_rndis_pktinfo_append(struct rndis_packet_msg *pkt, size_t pktsize, argument
2923 KASSERT(pkt->rm_pktinfooffset + pkt->rm_pktinfolen + pi_size <= pktsize,
2980 int pktsize)
2985 if (txr->hn_agg_pktleft >= 1 && txr->hn_agg_szleft > pktsize) {
3012 txr->hn_agg_szleft -= pktsize;
3038 txr->hn_agg_szmax > pktsize + HN_PKTSIZE_MIN(txr->hn_agg_align)) {
3041 txr->hn_agg_szleft = txr->hn_agg_szmax - pktsize;
2979 hn_try_txagg(struct ifnet *ifp, struct hn_tx_ring *txr, struct hn_txdesc *txd, int pktsize) argument
/freebsd-12-stable/usr.sbin/cxgbetool/
H A Dcxgbetool.c2797 op.u.params.weight = op.u.params.pktsize = -1;
2894 op.u.params.pktsize = (int16_t)l;
2963 if (op.u.params.pktsize < 0 &&

Completed in 405 milliseconds

12