a228405a08
SO_ATTACH_FILTER and SO_GET_FILTER have the same value; the former constant is intended for use in setsockopt, and the latter is for getsockopt. Handle that the same way as similar SOL_IP/SOL_IPV6 socket options are handled. * xlat/getsock_options.in: New file. * xlat/setsock_options.in: Likewise. * xlat/sockoptions.in (SO_ATTACH_FILTER): Move to xlat/setsock_options.in. * net.c: Include "xlat/setsock_options.h" and "xlat/getsock_options.h". (print_sockopt_fd_level_name) <case SOL_SOCKET>: Use getsock_options or setsock_options as auxiliary xlats based on the value of is_getsockopt flag. * tests/sock_filter-v.c: Update expected output. Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
6 lines
77 B
Plaintext
6 lines
77 B
Plaintext
#if defined __hppa__
|
|
SO_ATTACH_FILTER 16410
|
|
#else
|
|
SO_ATTACH_FILTER 26
|
|
#endif
|