Home
last modified time | relevance | path

Searched refs:sndbuf (Results 1 – 25 of 27) sorted by relevance

12

/freebsd/tools/test/stress2/misc/
H A Dsocketpair2.sh94 size_t *sndbuf, size_t *sndbuf_set,
103 size_t sent, packetcount, sndbuf, sndbuf_set, rcvbuf, rcvbuf_set;
116 &sndbuf, &sndbuf_set,
119 packetcount = MIN(sndbuf, sndbuf_set) / PACKETSIZE;
123 (long)sndbuf, (long)sndbuf_set,
127 if (sent >= (size_t)sndbuf) {
134 * a large sndbuf.
148 &sndbuf, &sndbuf_set,
155 (long)sndbuf, (long)sndbuf_set,
169 setsockets(doreverse, packetsize, s, r, sndbuf, sndbuf_set, rcvbuf, rcvbuf_set)
[all …]
/freebsd/contrib/ofed/libibmad/
H A Drpc.c129 _do_madrpc(int port_id, void *sndbuf, void *rcvbuf, int agentid, int len, in _do_madrpc() argument
138 xdump(stderr, "send buf\n", sndbuf, umad_size() + len); in _do_madrpc()
142 memcpy(save_mad, umad_get_mad(sndbuf), in _do_madrpc()
155 (uint32_t) mad_get_field64(umad_get_mad(sndbuf), 0, IB_MAD_TRID_F); in _do_madrpc()
162 if (umad_send(port_id, agentid, sndbuf, length, timeout, 0) < 0) { in _do_madrpc()
225 uint8_t sndbuf[1024], rcvbuf[1024], *mad; in mad_rpc() local
233 memset(sndbuf, 0, umad_size() + IB_MAD_SIZE); in mad_rpc()
235 if ((len = mad_build_pkt(sndbuf, rpc, dport, 0, payload)) < 0) in mad_rpc()
238 if ((len = _do_madrpc(port->port_id, sndbuf, rcvbuf, in mad_rpc()
290 uint8_t sndbuf[1024], rcvbuf[1024], *mad; in mad_rpc_rmpp() local
[all …]
/freebsd/libexec/bootpd/tools/bootptest/
H A Dbootptest.c109 char *sndbuf; /* Send packet buffer */ variable
166 sndbuf = malloc(BUFLEN); in main()
168 if (!sndbuf || !rcvbuf) { in main()
300 bp = (struct bootp *) sndbuf; in main()
375 snapend = (unsigned char *) sndbuf + snaplen; in main()
442 bootp_print((struct bootp *)sndbuf, snaplen, sin_from.sin_port, 0); in send_request()
446 if (sendto(s, sndbuf, snaplen, 0, in send_request()
/freebsd/tests/sys/kern/
H A Dunix_seqpacket_test.c158 char sndbuf[pktsize]; in test_eagain() local
169 bzero(sndbuf, pktsize); in test_eagain()
172 ssize = send(sv[0], sndbuf, pktsize, MSG_EOR); in test_eagain()
193 char sndbuf[pktsize]; in test_sendrecv_symmetric_buffers() local
210 bzero(sndbuf, pktsize); in test_sendrecv_symmetric_buffers()
213 ssize = send(sv[0], sndbuf, pktsize, MSG_EOR); in test_sendrecv_symmetric_buffers()
239 char sndbuf[pktsize]; in test_pipe_simulator() local
260 memset(sndbuf, num_sent, pktsize); in test_pipe_simulator()
261 ssize = send(sv[0], sndbuf, pktsize, MSG_EOR); in test_pipe_simulator()
314 char sndbuf[td->pktsize]; in test_pipe_writer() local
[all …]
/freebsd/contrib/wpa/wpa_supplicant/
H A Dctrl_iface_unix.c81 int sndbuf, outq; in wpas_ctrl_sock_debug() local
87 optlen = sizeof(sndbuf); in wpas_ctrl_sock_debug()
88 sndbuf = 0; in wpas_ctrl_sock_debug()
89 if (getsockopt(sock, SOL_SOCKET, SO_SNDBUF, &sndbuf, &optlen) < 0) in wpas_ctrl_sock_debug()
90 sndbuf = -1; in wpas_ctrl_sock_debug()
97 title, sock, sndbuf, outq, (int) len); in wpas_ctrl_sock_debug()
299 int sndbuf, outq; in wpas_ctrl_iface_throttle() local
301 optlen = sizeof(sndbuf); in wpas_ctrl_iface_throttle()
302 sndbuf = 0; in wpas_ctrl_iface_throttle()
303 if (getsockopt(sock, SOL_SOCKET, SO_SNDBUF, &sndbuf, &optlen) < 0 || in wpas_ctrl_iface_throttle()
[all …]
/freebsd/contrib/netbsd-tests/net/icmp/
H A Dt_ping.c145 } sndbuf; in doping() local
163 icmp = (struct icmp *)&sndbuf; in doping()
170 if (pktsize > sizeof(sndbuf.buf)) in doping()
171 pktsize = sizeof(sndbuf.buf); in doping()
/freebsd/contrib/bsnmp/snmpd/
H A Dtrap.c534 u_char *sndbuf; in snmp_send_trap() local
560 if ((sndbuf = buf_alloc(1)) == NULL) { in snmp_send_trap()
565 snmp_output(&pdu, sndbuf, &sndlen, "TRAP"); in snmp_send_trap()
567 if ((len = send(t->socket, sndbuf, sndlen, 0)) == -1) in snmp_send_trap()
573 free(sndbuf); in snmp_send_trap()
627 if ((sndbuf = buf_alloc(1)) == NULL) { in snmp_send_trap()
632 snmp_output(&pdu, sndbuf, &sndlen, "TRAP"); in snmp_send_trap()
634 if ((len = send(ta->socket, sndbuf, sndlen, 0)) == -1) in snmp_send_trap()
640 free(sndbuf); in snmp_send_trap()
H A Dmain.c282 snmp_output(struct snmp_pdu *pdu, u_char *sndbuf, size_t *sndlen, in snmp_output() argument
288 resp_b.asn_ptr = sndbuf; in snmp_output()
299 *sndlen = (size_t)(resp_b.asn_ptr - sndbuf); in snmp_output()
661 u_char *sndbuf, size_t *sndlen, const char *source, in snmp_input_finish() argument
668 resp_b.asn_ptr = sndbuf; in snmp_input_finish()
697 *sndlen = (size_t)(resp_b.asn_ptr - sndbuf); in snmp_input_finish()
732 *sndlen = (size_t)(resp_b.asn_ptr - sndbuf); in snmp_input_finish()
744 resp_b.asn_ptr = sndbuf; in snmp_input_finish()
755 *sndlen = (size_t)(resp_b.asn_ptr - sndbuf); in snmp_input_finish()
1035 u_char *sndbuf; in snmpd_input() local
[all …]
/freebsd/sys/dev/hyperv/hvsock/
H A Dhv_sock.c1400 unsigned int rcvbuf, sndbuf; in hvsock_open_channel() local
1405 sndbuf = HVS_RINGBUF_SND_SIZE; in hvsock_open_channel()
1408 sndbuf = MAX(so->so_snd.sb_hiwat, HVS_RINGBUF_SND_SIZE); in hvsock_open_channel()
1409 sndbuf = MIN(sndbuf, HVS_RINGBUF_MAX_SIZE); in hvsock_open_channel()
1410 sndbuf = rounddown2(sndbuf, PAGE_SIZE); in hvsock_open_channel()
1422 ret = vmbus_chan_open(chan, sndbuf, rcvbuf, NULL, 0, in hvsock_open_channel()
1428 "rcvbuf = %u\n", __func__, sndbuf, rcvbuf); in hvsock_open_channel()
1432 "rcvbuf = %u\n", __func__, sndbuf, rcvbuf); in hvsock_open_channel()
/freebsd/usr.sbin/bhyve/
H A Dnet_backend_slirp.c481 int error, sndbuf; in _slirp_init() local
522 sndbuf = 1024 * 1024; in _slirp_init()
523 error = setsockopt(priv->pipe[1], SOL_SOCKET, SO_SNDBUF, &sndbuf, in _slirp_init()
524 sizeof(sndbuf)); in _slirp_init()
/freebsd/sbin/ggate/shared/
H A Dggate.c273 unsigned sndbuf = G_GATE_SNDBUF; variable
294 bsize = sndbuf; in g_gate_socket_settings()
H A Dggate.h67 extern unsigned rcvbuf, sndbuf;
/freebsd/sys/dev/cxgb/
H A Dcxgb_offload.h50 int sndbuf; member
/freebsd/usr.sbin/bsnmpd/modules/snmp_netgraph/
H A Dsnmp_netgraph.h67 int ng_send_data(const char *hook, const void *sndbuf, size_t sndlen);
H A Dsnmp_netgraph.c441 ng_send_data(const char *hook, const void *sndbuf, size_t sndlen) in ng_send_data() argument
443 return (NgSendData(dsock, hook, sndbuf, sndlen)); in ng_send_data()
/freebsd/sys/dev/cxgbe/tom/
H A Dt4_tom.c1379 if (tt->sndbuf > 0) in init_conn_params()
1380 cp->sndbuf = tt->sndbuf; in init_conn_params()
1383 cp->sndbuf = 256 * 1024; in init_conn_params()
1385 cp->sndbuf = so->sol_sbsnd_hiwat; in init_conn_params()
1420 if (tt->sndbuf > 0) in init_conn_params()
1421 cp->sndbuf = tt->sndbuf; in init_conn_params()
1426 cp->sndbuf = 256 * 1024; in init_conn_params()
1428 cp->sndbuf = so->so_snd.sb_hiwat; in init_conn_params()
H A Dt4_tom.h121 u_int sndbuf; /* controls TP tx pages */ member
H A Dt4_cpl_io.c133 FLOWC_PARAM(SNDBUF, toep->params.sndbuf); in send_flowc_wr()
142 __func__, toep->tid, toep->params.emss, toep->params.sndbuf, in send_flowc_wr()
2249 if (len > toep->params.sndbuf) { in t4_aiotx_process_job()
2250 len = toep->params.sndbuf; in t4_aiotx_process_job()
/freebsd/sys/dev/cxgbe/
H A Doffload.h213 int sndbuf; member
H A Dt4_main.c7784 sc->tt.sndbuf = -1; in t4_sysctls()
7786 &sc->tt.sndbuf, 0, "hardware send buffer"); in t4_sysctls()
/freebsd/sbin/ggate/ggatec/
H A Dggatec.c625 sndbuf = strtoul(optarg, NULL, 10); in main()
626 if (sndbuf == 0 && errno != 0) in main()
/freebsd/sbin/ggate/ggated/
H A Dggated.c1075 sndbuf = strtoul(optarg, NULL, 10); in main()
1076 if (sndbuf == 0 && errno != 0) in main()
/freebsd/contrib/unbound/util/
H A Dconfiglexer.lex283 so-sndbuf{COLON} { YDVAR(1, VAR_SO_SNDBUF) }
/freebsd/contrib/unbound/doc/
H A Dexample.conf.in120 # so-sndbuf: 0
/freebsd/contrib/ntp/sntp/libevent/
H A DChangeLog102 o evdns: add new options -- so-rcvbuf/so-sndbuf (546a366c Azat Khuzhin)

12