1 .TH IPSEC_PORTOF 3 "8 Sept 2000"
3 ipsec portof \- get port field of an ip_address
5 ipsec setportof \- set port field of an ip_address
7 ipsec sockaddrof \- get pointer to internal sockaddr of an ip_address
9 ipsec sockaddrlenof \- get length of internal sockaddr of an ip_address
11 .B "#include <freeswan.h>"
13 .B "int portof(const ip_address *src);"
15 .B "void setportof(int port, ip_address *dst);"
17 .B "struct sockaddr *sockaddrof(ip_address *src);"
19 .B "size_t sockaddrlenof(const ip_address *src);"
28 \fIReliance on this feature is discouraged\fR,
29 but it may occasionally be necessary.
30 These functions provide low-level tools for this purpose.
35 respectively read and write the port-number field of the internal
37 The values are in network byte order.
40 returns a pointer to the internal
42 for passing to other functions.
45 reports the size of the internal
47 for use in storage allocation.
49 inet(3), ipsec_initaddr(3)
61 if an unknown address family is found within the
64 Written for the FreeS/WAN project by Henry Spencer.
66 These functions all depend on low-level details of the
68 type, which are in principle subject to change.
69 Avoid using them unless really necessary.