GETIPSECPROTOBYNAME(3NSL) | Networking Services Library Functions | GETIPSECPROTOBYNAME(3NSL) |
cc -flag ... file ...-lnsl [ -library ... ] #include <netdb.h> int getipsecprotobyname(const char *proto_name);
char *getipsecprotobynum(int proto_num);
getipsecprotobyname() takes as an argument the name of an IPsec protocol and returns its assigned protocol number. The character string returned by the getipsecprotobyname() function must be freed by the called when it is no longer needed.
getipsecprotobynum() takes as an argument a protocol number and returns the corresponding protocol name.
The following protocol numbers are pre-defined:
IPSEC_PROTO_ESP
IPSEC_PROTO_AH
proto_num
The getipsecprotobynum() function returns a protocol name upon success, or the NULL value if the protocol number specified does not exist.
ATTRIBUTE TYPE | ATTRIBUTE VALUE |
MT Level | MT Safe |
Interface Stability | Evolving |
Piper, D. RFC 2407, The Internet IP Security Domain of Interpretation for ISAKMP. Network Working Group. November, 1998.
August 27, 2020 | OmniOS |