Searched refs:big_buf (Results 1 – 1 of 1) sorted by relevance
/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | sockopt_sk.c | 25 char *big_buf = NULL; in getsetsockopt() local 36 big_buf = calloc(1, optlen); in getsetsockopt() 37 if (!big_buf) { in getsetsockopt() 42 *(int *)big_buf = 0x08; in getsetsockopt() 43 err = setsockopt(fd, SOL_IP, IP_TOS, big_buf, optlen); in getsetsockopt() 49 memset(big_buf, 0, optlen); in getsetsockopt() 51 err = getsockopt(fd, SOL_IP, IP_TOS, big_buf, &optlen); in getsetsockopt() 57 if (*big_buf != 0x08) { in getsetsockopt() 59 (int)*big_buf); in getsetsockopt() 101 memset(big_buf, 0, optlen); in getsetsockopt() [all …]
|