Home
last modified time | relevance | path

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

/external/ltp/testcases/kernel/syscalls/setsockopt/
Dsetsockopt04.c29 unsigned int sndbuf, rec_sndbuf; in run() local
32 sndbuf = SNDBUF; in run()
34 optlen = sizeof(sndbuf); in run()
36 SAFE_SETSOCKOPT(sockfd, SOL_SOCKET, SO_SNDBUFFORCE, &sndbuf, optlen); in run()
39 tst_res(TINFO, "Try to set send buffer size to: %u", sndbuf); in run()
/external/iproute2/tc/
Dq_atm.c56 int sndbuf = 0; in atm_parse_class_opt() local
88 sndbuf = strtol(*argv, &end, 0); in atm_parse_class_opt()
149 if (sndbuf) in atm_parse_class_opt()
150 if (setsockopt(s, SOL_SOCKET, SO_SNDBUF, &sndbuf, sizeof(sndbuf)) < 0) { in atm_parse_class_opt()
/external/linux-kselftest/tools/testing/selftests/net/
Dtcp_mmap.c80 static int sndbuf; /* Default: autotuning. Can be set with -w <integer> option */ variable
246 if (sndbuf && setsockopt(fd, SOL_SOCKET, in apply_rcvsnd_buf()
247 SO_SNDBUF, &sndbuf, sizeof(sndbuf)) == -1) { in apply_rcvsnd_buf()
374 sndbuf = atoi(optarg); in main()
/external/wpa_supplicant_8/wpa_supplicant/
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()
296 int sndbuf, outq; in wpas_ctrl_iface_throttle() local
298 optlen = sizeof(sndbuf); in wpas_ctrl_iface_throttle()
299 sndbuf = 0; in wpas_ctrl_iface_throttle()
300 if (getsockopt(sock, SOL_SOCKET, SO_SNDBUF, &sndbuf, &optlen) < 0 || in wpas_ctrl_iface_throttle()
[all …]
/external/iputils/
Dping_common.c9 int sndbuf; variable
329 sndbuf = atoi(optarg); in common_options()
330 if (sndbuf <= 0) { in common_options()
594 if (!sndbuf) in sock_setbufs()
595 sndbuf = alloc; in sock_setbufs()
596 setsockopt(icmp_sock, SOL_SOCKET, SO_SNDBUF, (char *)&sndbuf, sizeof(sndbuf)); in sock_setbufs()
Dping_common.h135 extern int sndbuf;
DRELNOTES546 * ping: option -S allows to change sndbuf
/external/kernel-headers/original/uapi/linux/
Drds.h196 __u32 sndbuf; member
206 __u32 sndbuf; member
/external/ltp/testcases/kernel/sched/process_stress/
Dprocess.c221 Msgbuf sndbuf; in send_message() local
223 strcpy(sndbuf.mtext, text); in send_message()
224 sndbuf.mtyp = type; in send_message()
226 rc = msgsnd(id, &sndbuf, sizeof(struct messagebuf), IPC_NOWAIT); in send_message()
/external/iproute2/lib/
Dlibnetlink.c141 int sndbuf = 32768; in rtnl_open_byproto() local
154 &sndbuf, sizeof(sndbuf)) < 0) { in rtnl_open_byproto()
/external/iputils/doc/
Dping.sgml31 <arg choice="opt">-S <replaceable/sndbuf/</arg>
361 <term><option>-S <replaceable/sndbuf/</option></term>
363 Set socket sndbuf. If not specified, it is selected to buffer
/external/libevent/
DChangeLog21 o evdns: add new options -- so-rcvbuf/so-sndbuf (546a366c Azat Khuzhin)