1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
|
Content-type: text/html
<HTML><HEAD><TITLE>Manpage of IPSEC_PF_KEY</TITLE>
</HEAD><BODY>
<H1>IPSEC_PF_KEY</H1>
Section: File Formats (5)<BR>Updated: 29 Jun 2000<BR><A HREF="#index">Index</A>
<A HREF="http://localhost/cgi-bin/man/man2html">Return to Main Contents</A><HR>
<A NAME="lbAB"> </A>
<H2>NAME</H2>
ipsec_pf_key - lists PF_KEY sockets registered with KLIPS
<A NAME="lbAC"> </A>
<H2>SYNOPSIS</H2>
<B>cat</B>
<B>/proc/net/pf_key</B>
<A NAME="lbAD"> </A>
<H2>DESCRIPTION</H2>
<I>/proc/net/pf_key</I>
is a read-only file which lists the presently open PF_KEY sockets on the
local system and their parameters.
<P>
Each line lists one PF_KEY socket.
A table entry consists of:
<DL COMPACT>
<DT>+<DD>
sock pointer (sock)
<DT>+<DD>
PID of the socket owner (pid)
<DT>+<DD>
flag to indicate if the socket is dead (d)
<DT>+<DD>
socket wait queue (sleep)
<DT>+<DD>
socket pointer (socket)
<DT>+<DD>
next socket in chain (next)
<DT>+<DD>
previous socket in chain (prev)
<DT>+<DD>
last socket error (e)
<DT>+<DD>
pointer to destruct routine (destruct)
<DT>+<DD>
is this a reused socket (r)
<DT>+<DD>
has this socket been zapped (z)
<DT>+<DD>
socket family to which this socket belongs (fa)
<DT>+<DD>
local port number (n)
<DT>+<DD>
protocol version number (p)
<DT>+<DD>
Receive queue bytes committed (r)
<DT>+<DD>
Transmit queue bytes committed (w)
<DT>+<DD>
option memory allocations (o)
<DT>+<DD>
size of send buffer in bytes (sndbf)
<DT>+<DD>
timestamp in seconds (stamp)
<DT>+<DD>
socket flags (Flags)
<DT>+<DD>
socket type (Type)
<DT>+<DD>
connection state (St)
<B>.SH</B>EXAMPLES
<DT>
<DD>
<DT><B>c3b8c140 3553 0 c0599818 c05997fc 0 0 0 0 1 0 15 0 2 0 0 0 65535 0.103232 00000000 00000003 01</B>
<DD>
</DL>
<P>
shows that there is one pf_key socket set up that starts at
<B>c3b8c140</B>,
whose owning process has PID
<B>3553</B>,
the socket is not dead, its wait queue is at
<B>c0599818</B>,
whose owning socket is at
<B>c05997fc</B>,
with no other sockets in the chain, no errors, no destructor, it is a
reused socket which has not been zapped, from protocol family
<B>15</B>
(PF_KEY), local port number
<B>0</B>,
protocol socket version
<B>2</B>,
no memory allocated to transmit, receive or option queues, a send buffer
of almost
<B>64kB</B>,
a timestamp of
<B>0.103232</B>,
no flags set, type
<B>3</B>,
in state
<B>1</B>.
<A NAME="lbAE"> </A>
<H2>FILES</H2>
/proc/net/pf_key
<A NAME="lbAF"> </A>
<H2>SEE ALSO</H2>
<A HREF="ipsec.8.html">ipsec</A>(8), <A HREF="ipsec_manual.8.html">ipsec_manual</A>(8), <A HREF="ipsec_eroute.5.html">ipsec_eroute</A>(5), <A HREF="ipsec_spi.5.html">ipsec_spi</A>(5),
<A HREF="ipsec_spigrp.5.html">ipsec_spigrp</A>(5), <A HREF="ipsec_klipsdebug.5.html">ipsec_klipsdebug</A>(5), <A HREF="ipsec_tncfg.8.html">ipsec_tncfg</A>(8), <A HREF="ipsec_version.5.html">ipsec_version</A>(5)
<A NAME="lbAG"> </A>
<H2>HISTORY</H2>
Written for the Linux FreeS/WAN project
<<A HREF="http://www.freeswan.org/">http://www.freeswan.org/</A>>
by Richard Guy Briggs.
<P>
<HR>
<A NAME="index"> </A><H2>Index</H2>
<DL>
<DT><A HREF="#lbAB">NAME</A><DD>
<DT><A HREF="#lbAC">SYNOPSIS</A><DD>
<DT><A HREF="#lbAD">DESCRIPTION</A><DD>
<DT><A HREF="#lbAE">FILES</A><DD>
<DT><A HREF="#lbAF">SEE ALSO</A><DD>
<DT><A HREF="#lbAG">HISTORY</A><DD>
</DL>
<HR>
This document was created by
<A HREF="http://localhost/cgi-bin/man/man2html">man2html</A>,
using the manual pages.<BR>
Time: 21:40:18 GMT, November 11, 2003
</BODY>
</HTML>
|