man.bsd.lv manual page server

Manual Page Search Parameters

sysdecode_socket_protocol(3) Library Functions Manual sysdecode_socket_protocol(3)

sysdecode_socket_protocollookup name of socket protocol

library “libsysdecode”

#include <sys/types.h>
#include <stdbool.h>
#include <sysdecode.h>

const char *
sysdecode_socket_protocol(int domain, int protocol);

The () function returns a text description of the protocol passed in the protocol argument to socket(2). sysdecode_socket_protocol() takes the protocol as well as the domain to uniquely identify the protocol.
May 25, 2017 FreeBSD-13.0