3798b04eab
* print_fields.h (PRINT_FIELD_NET_PORT): Handle xlat styles. * sockaddr.c (print_sll_protocol): New function. (print_sockaddr_data_ll, print_inet_addr, print_sockaddr_data_in6): Handle xlat styles. * NEWS: Mention this. * tests/sockaddr_xlat.c: New file. * tests/sockaddr_xlat-Xabbrev.c: Likewise. * tests/sockaddr_xlat-Xraw.c: Likewise. * tests/sockaddr_xlat-Xverbose.c: Likewise. * tests/Makefile.am (EXTRA_DIST): Add sockaddr_xlat.c. * tests/gen_tests.in (sockaddr_xlat-Xabbrev, sockaddr_xlat-Xraw, sockaddr_xlat-Xverbose): New tests. * tests/pure_executables.list: Add sockaddr_xlat-Xabbrev, sockaddr_xlat-Xraw, and sockaddr_xlat-Xverbose. * tests/.gitignore: Likewise.
3 lines
46 B
C
3 lines
46 B
C
#define XLAT_RAW 1
|
|
#include "sockaddr_xlat.c"
|