diff options
| author | Michael Tuexen <tuexen@FreeBSD.org> | 2017-05-25 14:27:54 +0000 |
|---|---|---|
| committer | Michael Tuexen <tuexen@FreeBSD.org> | 2017-05-25 14:27:54 +0000 |
| commit | 738a93a4613638e9290b80a1a9a7997d1db8a4e8 (patch) | |
| tree | d07363963608c5598f716ef85c7935951eaf8a74 /lib/libsysdecode/flags.c | |
| parent | fa5f501d0ad7576e208a1ad1052d3e79cde0f36b (diff) | |
Notes
Diffstat (limited to 'lib/libsysdecode/flags.c')
| -rw-r--r-- | lib/libsysdecode/flags.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/libsysdecode/flags.c b/lib/libsysdecode/flags.c index 82c8de8353e9..ea477b0e239c 100644 --- a/lib/libsysdecode/flags.c +++ b/lib/libsysdecode/flags.c @@ -730,6 +730,19 @@ sysdecode_socketdomain(int domain) } const char * +sysdecode_socket_protocol(int domain, int protocol) +{ + + switch (domain) { + case PF_INET: + case PF_INET6: + return (lookup_value(sockipproto, protocol)); + default: + return (NULL); + } +} + +const char * sysdecode_sockaddr_family(int sa_family) { |
