Searched refs:tfo_cfg (Results 1 – 1 of 1) sorted by relevance
/external/ltp/testcases/network/netstress/ |
D | netstress.c | 63 static const char tfo_cfg[] = "/proc/sys/net/ipv4/tcp_fastopen"; variable 193 tfo_cfg, tfo_cfg_value); in do_cleanup() 194 SAFE_FILE_PRINTF(tfo_cfg, "%d", tfo_cfg_value); in do_cleanup() 783 if (access(tfo_cfg, W_OK) < 0) { in check_tfo_value() 786 tfo_cfg); in check_tfo_value() 790 SAFE_FILE_SCANF(tfo_cfg, "%d", &tfo_cfg_value); in check_tfo_value() 791 tst_res(TINFO, "'%s' is %d", tfo_cfg, tfo_cfg_value); in check_tfo_value() 802 require_root(tfo_cfg); in check_tfo_value() 804 tst_res(TINFO, "set '%s' to '%d'", tfo_cfg, tfo_value); in check_tfo_value() 806 SAFE_FILE_PRINTF(tfo_cfg, "%d", tfo_value); in check_tfo_value() [all …]
|