getipsecprotobyname man page on OpenIndiana

Man page or keyword search:  
man Server   20441 pages
apropos Keyword Search (all sections)
Output format
OpenIndiana logo
[printable version]

getipsecprotobyname(3Networking Services Library Funcgetipsecprotobyname(3NSL)

NAME
       getipsecprotobyname, getipsecprotobynum - query IPsec protocols entries

SYNOPSIS
       cc -flag ...  file ...-lnsl [ -library ... ]
       #include <netdb.h>

       int getipsecprotobyname(const char *proto_name

       char *getipsecprotobynum(int proto_nump

DESCRIPTION
       Use  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 algo‐
       rithms. The IPsec algorithms and associated protocol  name  spaces  are
       defined by RFC 2407.

       getipsecprotobyname()  takes as an argument the name of an IPsec proto‐
       col 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	 confidential‐
			  ity.

       IPSEC_PROTO_AH	  Defines  the	authentication algorithms (transforms)
			  that can be used by IPsec to provide authentication.

PARAMETERS
       proto_name    A pointer to the name of an IPsec protocol.

       proto_num     A pointer to a protocol number. conditions.

RETURN VALUES
       The getipsecprotobyname() function returns a protocol number upon  suc‐
       cess, or -1 if the protocol specified does not exist.

	The  getipsecprotobynum()  function  returns a protocol name upon suc‐
       cess, or the NULL value if  the	protocol  number  specified  does  not
       exist.

ATTRIBUTES
       See attributes(5)  for descriptions of the following attributes:

       ┌─────────────────────────────┬─────────────────────────────┐
       │      ATTRIBUTE TYPE	     │	    ATTRIBUTE VALUE	   │
       ├─────────────────────────────┼─────────────────────────────┤
       │Availability		     │system/library (32 bit)	   │
       │			     │SUNWcslx (64 bit)		   │
       ├─────────────────────────────┼─────────────────────────────┤
       │MT Level		     │MT Safe			   │
       ├─────────────────────────────┼─────────────────────────────┤
       │Interface Stability	     │Committed			   │
       └─────────────────────────────┴─────────────────────────────┘

SEE ALSO
       ipsecalgs(1M),	  getipsecalgbyname(3NSL),    getipsecalgbyname(3NSL),
       attributes(5)

       Piper, D. RFC 2407, The Internet IP Security Domain  of	Interpretation
       for ISAKMP. Network Working Group. November, 1998.

SunOS 5.11			  13 Aug 2003	     getipsecprotobyname(3NSL)
[top]

List of man pages available for OpenIndiana

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net