IPSEC_PF_KEY(5) IPSEC_PF_KEY(5)
NAME
ipsec_pf_key - lists PF_KEY sockets registered with KLIPS
SYNOPSIS
cat /proc(5,n)/net/pf_key(5,8)
DESCRIPTION
/proc(5,n)/net/pf_key(5,8) is a read-only file(1,n) which lists the presently open(2,3,n)
PF_KEY sockets on the local system and their parameters.
Each line lists one PF_KEY socket. A table entry consists of:
+ sock pointer (sock)
+ PID of the socket(2,7,n) owner (pid)
+ flag to indicate if(3,n) the socket(2,7,n) is dead (d)
+ socket(2,7,n) wait queue(1,3) (sleep(1,3))
+ socket(2,7,n) pointer (socket(2,7,n))
+ next socket(2,7,n) in(1,8) chain (next)
+ previous socket(2,7,n) in(1,8) chain (prev)
+ last socket(2,7,n) error(8,n) (e)
+ pointer to destruct routine (destruct)
+ is this a reused socket(2,7,n) (r)
+ has this socket(2,7,n) been zapped (z)
+ socket(2,7,n) family to which this socket(2,7,n) belongs (fa)
+ local port number (n)
+ protocol version(1,3,5) number (p)
+ Receive queue(1,3) bytes committed (r)
+ Transmit queue(1,3) bytes committed (w)
+ option memory allocations (o)
+ size of send(2,n) buffer in(1,8) bytes (sndbf)
+ timestamp in(1,8) seconds (stamp)
+ socket(2,7,n) flags (Flags)
+ socket(2,7,n) type (Type)
+ connection state (St)
EXAMPLES
c3b8c140 3553 0 c0599818 c05997fc 0 0 0 0 1 0 15 0 2 0 0 0 65535
0.103232 00000000 00000003 01
shows that there is one pf_key(5,8) socket(2,7,n) set(7,n,1 builtins) up that starts at
c3b8c140, whose owning process has PID 3553, the socket(2,7,n) is not
dead, its wait queue(1,3) is at c0599818, whose owning socket(2,7,n) is at
c05997fc, with no other sockets in(1,8) the chain, no errors, no
destructor, it is a reused socket(2,7,n) which has not been zapped,
from protocol family 15 (PF_KEY), local port number 0, protocol
socket(2,7,n) version(1,3,5) 2, no memory allocated to transmit, receive or
option queues, a send(2,n) buffer of almost 64kB, a timestamp of
0.103232, no flags set(7,n,1 builtins), type 3, in(1,8) state 1.
FILES
/proc(5,n)/net/pf_key(5,8)
SEE ALSO
ipsec(5,8)(8), ipsec_manual(8), ipsec_eroute(5), ipsec_spi(5),
ipsec_spigrp(5), ipsec_klipsdebug(5), ipsec_tncfg(8), ipsec_ver-
sion(5)
HISTORY
Written for the Linux FreeS/WAN project
<http://www.freeswan.org/> by Richard Guy Briggs.
29 Jun 2000 IPSEC_PF_KEY(5)