/freebsd/tools/test/stress2/misc/ |
H A D | socketpair2.sh | 94 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 D | rpc.c | 129 _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 D | bootptest.c | 109 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 D | unix_seqpacket_test.c | 158 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 D | ctrl_iface_unix.c | 81 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 D | t_ping.c | 145 } 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 D | trap.c | 534 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 D | main.c | 282 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 D | hv_sock.c | 1400 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 D | net_backend_slirp.c | 481 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 D | ggate.c | 273 unsigned sndbuf = G_GATE_SNDBUF; variable 294 bsize = sndbuf; in g_gate_socket_settings()
|
H A D | ggate.h | 67 extern unsigned rcvbuf, sndbuf;
|
/freebsd/sys/dev/cxgb/ |
H A D | cxgb_offload.h | 50 int sndbuf; member
|
/freebsd/usr.sbin/bsnmpd/modules/snmp_netgraph/ |
H A D | snmp_netgraph.h | 67 int ng_send_data(const char *hook, const void *sndbuf, size_t sndlen);
|
H A D | snmp_netgraph.c | 441 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 D | t4_tom.c | 1379 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 D | t4_tom.h | 121 u_int sndbuf; /* controls TP tx pages */ member
|
H A D | t4_cpl_io.c | 133 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 D | offload.h | 213 int sndbuf; member
|
H A D | t4_main.c | 7784 sc->tt.sndbuf = -1; in t4_sysctls() 7786 &sc->tt.sndbuf, 0, "hardware send buffer"); in t4_sysctls()
|
/freebsd/sbin/ggate/ggatec/ |
H A D | ggatec.c | 625 sndbuf = strtoul(optarg, NULL, 10); in main() 626 if (sndbuf == 0 && errno != 0) in main()
|
/freebsd/sbin/ggate/ggated/ |
H A D | ggated.c | 1075 sndbuf = strtoul(optarg, NULL, 10); in main() 1076 if (sndbuf == 0 && errno != 0) in main()
|
/freebsd/contrib/unbound/util/ |
H A D | configlexer.lex | 283 so-sndbuf{COLON} { YDVAR(1, VAR_SO_SNDBUF) }
|
/freebsd/contrib/unbound/doc/ |
H A D | example.conf.in | 120 # so-sndbuf: 0
|
/freebsd/contrib/ntp/sntp/libevent/ |
H A D | ChangeLog | 102 o evdns: add new options -- so-rcvbuf/so-sndbuf (546a366c Azat Khuzhin)
|