ipsec_sockaddrof man page on RedHat

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

IPSEC_PORTOF(3)						       IPSEC_PORTOF(3)

NAME
       ipsec_portof,  ipsec_setportof, ipsec_sockaddrof, ipsec_sockaddrlenof -
       get port field of an ip_address, set port field of an  ip_address,  get
       pointer	to  internal sockaddr of an ip_address, get length of internal
       sockaddr of an ip_address

SYNOPSIS
       #include <libreswan.h>

       int portof(const ip_address *src);
       void setportof(int port, ip_address *dst);
       struct sockaddr *sockaddrof(ip_address *src);
       size_t sockaddrlenof(const ip_address *src);

DESCRIPTION
       The <libreswan.h> internal type ip_address contains one of the sockaddr
       types  internally.  Reliance on this feature is discouraged, but it may
       occasionally be necessary.  These functions provide low-level tools for
       this purpose.

       Portof  and setportof respectively read and write the port-number field
       of the internal sockaddr.  The values are in network byte order.

       Sockaddrof returns a pointer to the internal sockaddr, for  passing  to
       other functions.

       Sockaddrlenof  reports  the  size  of the internal sockaddr, for use in
       storage allocation.

SEE ALSO
       inet(3), ipsec_initaddr(3)

DIAGNOSTICS
       Portof returns -1, sockaddrof returns NULL, and sockaddrlenof returns 0
       if an unknown address family is found within the ip_address.

HISTORY
       Written for the FreeS/WAN project by Henry Spencer.

BUGS
       These functions all depend on low-level details of the ip_address type,
       which are in principle subject to  change.   Avoid  using  them	unless
       really necessary.

				  8 Sept 2000		       IPSEC_PORTOF(3)
[top]

List of man pages available for RedHat

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