From 738a93a4613638e9290b80a1a9a7997d1db8a4e8 Mon Sep 17 00:00:00 2001 From: Michael Tuexen Date: Thu, 25 May 2017 14:27:54 +0000 Subject: Improve the decoding of the third argument of the socket() call. Decoding of the third argument depends on the first one. For doing this, add a corresponding function to libsysdecode. Thanks to jhb@ for suggesting this. --- lib/libsysdecode/sysdecode.h | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/libsysdecode/sysdecode.h') diff --git a/lib/libsysdecode/sysdecode.h b/lib/libsysdecode/sysdecode.h index f8d05be37cb3..03c12a5a7f8b 100644 --- a/lib/libsysdecode/sysdecode.h +++ b/lib/libsysdecode/sysdecode.h @@ -99,6 +99,7 @@ const char *sysdecode_sigsegv_code(int _si_code); const char *sysdecode_sigtrap_code(int _si_code); const char *sysdecode_sockaddr_family(int _sa_family); const char *sysdecode_socketdomain(int _domain); +const char *sysdecode_socket_protocol(int _domain, int _protocol); bool sysdecode_socket_type(FILE *_fp, int _type, int *_rem); const char *sysdecode_sockopt_level(int _level); const char *sysdecode_sockopt_name(int _level, int _optname); -- cgit v1.3