Query: getipsecprotobyname
OS: x11r4
Section: 3nsl
Links: x11r4 man pages all man pages
Forums: unix linux community forum categories
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
getipsecprotobyname(3NSL) Networking Services Library Functions getipsecprotobyname(3NSL)NAMEgetipsecprotobyname, getipsecprotobynum - query IPsec protocols entriesSYNOPSIScc -flag ... file ...-lnsl [-library ...] #include <netdb.h> int getipsecprotobyname(const char *proto_name); char *getipsecprotobynum(int proto_num);DESCRIPTIONUse the getipsecprotobyname() and getipsecprotobynum() functions to obtain the IPsec algorithm mappings that are defined by ipsecalgs(1M). You can also use the getipsecprotobyname() and getipsecprotobynum() functions in conjunction with getipsecalgbyname(3NSL) and getipsecal- gbynum(3NSL) to obtain information about the supported IPsec algorithms. The IPsec algorithms and associated protocol name spaces are defined by RFC 2407. 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 Defines the encryption algorithms (transforms) that can be used by IPsec to provide data confidentiality. IPSEC_PROTO_AH Defines the authentication algorithms (transforms) that can be used by IPsec to provide authentication.PARAMETERSproto_name A pointer to the name of an IPsec protocol. proto_num A pointer to a protocol number. conditions.RETURN VALUESThe getipsecprotobyname() function returns a protocol number upon success, or -1 if the protocol specified does not exist. The getipsecprotobynum() function returns a protocol name upon success, or the NULL value if the protocol number specified does not exist.ATTRIBUTESSee attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWcsl (32 bit) | +-----------------------------+-----------------------------+ | |SUNWcslx (64 bit) | +-----------------------------+-----------------------------+ |MT Level |MT Safe | +-----------------------------+-----------------------------+ |Interface Stability |Evolving | +-----------------------------+-----------------------------+SEE ALSOipsecalgs(1M), getipsecalgbyname(3NSL), getipsecalgbynum(3NSL), attributes(5) Piper, D. RFC 2407, The Internet IP Security Domain of Interpretation for ISAKMP. Network Working Group. November, 1998. SunOS 5.10 13 Aug 2003 getipsecprotobyname(3NSL)
Related Man Pages |
---|
getipsecprotobyname(3nsl) - plan9 |
getipsecprotobyname(3nsl) - php |
getipsecprotobynum(3nsl) - debian |
getipsecprotobyname(3nsl) - v7 |
getipsecprotobynum(3nsl) - xfree86 |
Similar Topics in the Unix Linux Community |
---|
OpenNHRP 0.4 (Default branch) |
Vortex Library 1.0.13 (Default branch) |
Vortex Library 1.0.15 (Default branch) |
Vortex Library 1.0.17 (Default branch) |
Vortex Library 1.1.0 (Current branch) |