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

12

/freebsd-11.0-release/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-11.0-release/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:__anon13628
349 const size_t pktsize = MIN(sndbufsize, rcvbufsize) / 4; local
880 const size_t pktsize = (sndbufsize + rcvbufsize) * 2; local
909 const size_t pktsize = (sndbufsize + rcvbufsize) * 2; local
964 const ssize_t pktsize = 1024; local
[all...]
/freebsd-11.0-release/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-11.0-release/contrib/netbsd-tests/net/bpfilter/
H A Dt_bpfilter.c145 unsigned int pktsize; local
153 pktsize = wirelen - ETHER_HDR_LEN - sizeof(struct ip);
154 if (pktsize < sizeof(struct icmp) + 7)
174 pkt = calloc(1, pktsize);
179 memcpy(pkt + pktsize - 7, tail, 7);
183 icmp->icmp_cksum = in_cksum(pkt, pktsize);
186 if (rump_sys_sendto(s, pkt, pktsize, 0,
191 if (rump_sys_recvfrom(s, pkt, pktsize, 0,
/freebsd-11.0-release/sys/netpfil/pf/
H A Dpf_altq.h39 u_int pktsize; member in struct:cbq_opts
/freebsd-11.0-release/libexec/tftpd/
H A Dtftp-utils.h53 extern uint16_t pktsize;
H A Dtftp-options.c214 pktsize = size + 4;
268 pktsize = size + 4;
H A Dtftp-transfer.c310 n_data = receive_packet(peer, (char *)rp, pktsize,
H A Dtftp-utils.c51 uint16_t pktsize = SEGSIZE + 4; variable
H A Dtftp-io.c452 if (pkt->th_opcode == DATA && n > pktsize) {
/freebsd-11.0-release/sys/arm/ti/
H A Dti_sdma.h98 unsigned int pktsize);
H A Dti_sdma.c700 * @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.0-release/sys/net/altq/
H A Daltq_cbq.h126 u_int pktsize; member in struct:cbq_class_spec
H A Daltq_cbq.c400 opts->pktsize, opts->flags);
693 acp->cbq_class.pktsize) < 0)
744 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-11.0-release/sbin/pfctl/
H A Dpfctl_altq.c448 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.0-release/sys/dev/cxgbe/
H A Dt4_ioctl.h229 int16_t pktsize; /* average packet size */ member in struct:t4_sched_class_params
H A Dt4_main.c8426 if (p->pktsize < 0) {
8431 p->pktsize = 0;
8442 p->weight, p->pktsize, sleep_ok);
/freebsd-11.0-release/contrib/ntp/ntpq/
H A Dntpq.c1249 size_t pktsize; local
1275 pktsize = CTL_HEADER_LEN;
1282 pktsize += qsize;
1283 while (pktsize & (sizeof(u_int32) - 1)) {
1285 pktsize++;
1294 return sendpkt(&qpkt, pktsize);
1301 while (pktsize & 7) {
1303 pktsize++;
1332 maclen = authencrypt(info_auth_keyid, (void *)&qpkt, pktsize);
1344 return sendpkt((char *)&qpkt, pktsize
[all...]
/freebsd-11.0-release/contrib/netbsd-tests/net/bpfjit/
H A Dt_bpfjit.c1779 size_t pktsize = sizeof(deadbeef_at_5); local
1797 ATF_CHECK(jitcall(code, pkt, pktsize, l) == 0);
1802 ATF_CHECK(jitcall(code, pkt, pktsize, l) == expected[i]);
1804 l = pktsize;
1949 size_t pktsize = sizeof(deadbeef_at_5); local
1967 ATF_CHECK(jitcall(code, pkt, pktsize, l) == 0);
1972 ATF_CHECK(jitcall(code, pkt, pktsize, l) == expected[i]);
1974 l = pktsize;
/freebsd-11.0-release/contrib/netbsd-tests/lib/libbpfjit/
H A Dt_bpfjit.c1891 size_t pktsize = sizeof(deadbeef_at_5); local
1905 ATF_CHECK(jitcall(code, pkt, pktsize, l) == 0);
1910 ATF_CHECK(jitcall(code, pkt, pktsize, l) == expected[i]);
1912 l = pktsize;
2061 size_t pktsize = sizeof(deadbeef_at_5); local
2075 ATF_CHECK(jitcall(code, pkt, pktsize, l) == 0);
2080 ATF_CHECK(jitcall(code, pkt, pktsize, l) == expected[i]);
2082 l = pktsize;
/freebsd-11.0-release/tools/tools/cxgbetool/
H A Dcxgbetool.c2351 op.u.params.weight = op.u.params.pktsize = -1;
2448 op.u.params.pktsize = (int16_t)l;
2510 if (op.u.params.pktsize < 0 &&
/freebsd-11.0-release/sys/dev/cxgbe/common/
H A Dcommon.h711 int minrate, int maxrate, int weight, int pktsize,
H A Dt4_hw.c9073 int minrate, int maxrate, int weight, int pktsize,
9095 cmd.u.params.pktsize = cpu_to_be16(pktsize);
9071 t4_sched_params(struct adapter *adapter, int type, int level, int mode, int rateunit, int ratemode, int channel, int cl, int minrate, int maxrate, int weight, int pktsize, int sleep_ok) argument
/freebsd-11.0-release/contrib/ofed/libcxgb4/src/
H A Dt4fw_interface.h6928 __be16 pktsize; member in struct:fw_sched_cmd::fw_sched::fw_sched_params

Completed in 246 milliseconds

12