1 Content-type: text/html
3 <HTML><HEAD><TITLE>Manpage of IPSEC_PORTOF
</TITLE>
6 Section: C Library Functions (
3)
<BR>Updated:
8 Sept
2000<BR><A HREF=
"#index">Index
</A>
7 <A HREF=
"http://localhost/cgi-bin/man/man2html">Return to Main Contents
</A><HR>
10 <A NAME=
"lbAB"> </A>
13 ipsec portof - get port field of an ip_address
16 ipsec setportof - set port field of an ip_address
19 ipsec sockaddrof - get pointer to internal sockaddr of an ip_address
22 ipsec sockaddrlenof - get length of internal sockaddr of an ip_address
23 <A NAME=
"lbAC"> </A>
26 <B>#include
<<A HREF=
"file:/usr/include/freeswan.h">freeswan.h
</A>></B>
29 <B>int portof(const ip_address *src);
</B>
33 <B>void setportof(int port, ip_address *dst);
</B>
37 <B>struct sockaddr *sockaddrof(ip_address *src);
</B>
41 <B>size_t sockaddrlenof(const ip_address *src);
</B>
43 <A NAME=
"lbAD"> </A>
47 <B><<A HREF=
"file:/usr/include/freeswan.h">freeswan.h
</A>></B>
56 <I>Reliance on this feature is discouraged
</I>,
57 but it may occasionally be necessary.
58 These functions provide low-level tools for this purpose.
66 respectively read and write the port-number field of the internal
69 The values are in network byte order.
74 returns a pointer to the internal
77 for passing to other functions.
82 reports the size of the internal
85 for use in storage allocation.
86 <A NAME=
"lbAE"> </A>
89 <A HREF=
"inet.3.html">inet
</A>(
3),
<A HREF=
"ipsec_initaddr.3.html">ipsec_initaddr
</A>(
3)
90 <A NAME=
"lbAF"> </A>
109 if an unknown address family is found within the
112 <A NAME=
"lbAG"> </A>
115 Written for the FreeS/WAN project by Henry Spencer.
116 <A NAME=
"lbAH"> </A>
119 These functions all depend on low-level details of the
122 type, which are in principle subject to change.
123 Avoid using them unless really necessary.
127 <A NAME=
"index"> </A><H2>Index
</H2>
129 <DT><A HREF=
"#lbAB">NAME
</A><DD>
130 <DT><A HREF=
"#lbAC">SYNOPSIS
</A><DD>
131 <DT><A HREF=
"#lbAD">DESCRIPTION
</A><DD>
132 <DT><A HREF=
"#lbAE">SEE ALSO
</A><DD>
133 <DT><A HREF=
"#lbAF">DIAGNOSTICS
</A><DD>
134 <DT><A HREF=
"#lbAG">HISTORY
</A><DD>
135 <DT><A HREF=
"#lbAH">BUGS
</A><DD>
138 This document was created by
139 <A HREF=
"http://localhost/cgi-bin/man/man2html">man2html
</A>,
140 using the manual pages.
<BR>
141 Time:
21:
40:
18 GMT, November
11,
2003