Query: ipsec_portof
OS: centos
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
IPSEC_PORTOF(3) Library Functions Manual IPSEC_PORTOF(3)NAMEipsec_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_addressSYNOPSIS#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);DESCRIPTIONThe <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 ALSOinet(3), ipsec_initaddr(3)DIAGNOSTICSPortof returns -1, sockaddrof returns NULL, and sockaddrlenof returns 0 if an unknown address family is found within the ip_address.HISTORYWritten for the FreeS/WAN project by Henry Spencer.BUGSThese 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)
Related Man Pages |
---|
ipsec_portof(3) - debian |
ipsec_sockaddrof(3) - debian |
ipsec_addrbytesof(3) - centos |
ipsec_initaddr(3) - centos |
ipsec_setportof(3) - centos |
Similar Topics in the Unix Linux Community |
---|
5010-633 error |
File splitting, naming file according to internal field |
Unable to connect "Reliance Netconnect" on Redh Hat Linux 5 |
[HP UNIX B.10.20] NFS Client SubSystem fail |