IPSEC_PORTOF(3) Library Functions Manual 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 <freeswan.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 <freeswan.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)
Check Out this Related Man Page
IPSEC_PORTOF(3) Library Functions Manual 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)
Hi all,
Currently im using a hp laserjet 5100tn, and im gona connect it to my new net-work. Current ip_address of the printer is 0.0.19.236.
So may i know how do i change the ip_address of the printer?
Using HP-UX B.11.11 ver 1, for my OS.
Thank you (0 Replies)
Hi All,
I have a rather stange set of requirements that I'm hoping someone here could help me with. We receive a file that is actually a concatenation of 4 files (don't believe this would change, but ideally the solution would handle n files).
The super-file looks like:... (7 Replies)
Hi Friends,
Can someone help me with below issue , thanks.
Subject : Unable to configure "Reliance NetConnect" on RHEL 5
Here some helpful information :
# lsusb
Bus 001 Device 001: ID 0000:0000
Bus 001 Device 002: ID 8087:0020
Bus 001 Device 003: ID 192f:0416
Bus 002 Device... (0 Replies)
Recently moved a HP Unix B.10.20 system from US to Thailand, and everything is work well in US but after we changed:
1. set_parms ip_address (change the IP to TH range)
2. set_parms addl_netwrk (change the Subnet, Gateway, Domain name, DNS Svr Name, and DNS IP)
3. vi /etc/hosts (to commented... (4 Replies)