2020-05-01 22:44:30 +08:00
|
|
|
.. SPDX-License-Identifier: GPL-2.0
|
|
|
|
|
|
|
|
==================================
|
2007-12-21 12:42:57 +08:00
|
|
|
XFRM proc - /proc/net/xfrm_* files
|
|
|
|
==================================
|
2020-05-01 22:44:30 +08:00
|
|
|
|
2007-12-21 12:42:57 +08:00
|
|
|
Masahide NAKAMURA <nakam@linux-ipv6.org>
|
|
|
|
|
|
|
|
|
|
|
|
Transformation Statistics
|
|
|
|
-------------------------
|
|
|
|
|
2017-12-22 06:26:18 +08:00
|
|
|
The xfrm_proc code is a set of statistics showing numbers of packets
|
|
|
|
dropped by the transformation code and why. These counters are defined
|
|
|
|
as part of the linux private MIB. These counters can be viewed in
|
|
|
|
/proc/net/xfrm_stat.
|
|
|
|
|
|
|
|
|
|
|
|
Inbound errors
|
|
|
|
~~~~~~~~~~~~~~
|
2020-05-01 22:44:30 +08:00
|
|
|
|
2007-12-21 12:42:57 +08:00
|
|
|
XfrmInError:
|
|
|
|
All errors which is not matched others
|
2020-05-01 22:44:30 +08:00
|
|
|
|
2007-12-21 12:42:57 +08:00
|
|
|
XfrmInBufferError:
|
|
|
|
No buffer is left
|
2020-05-01 22:44:30 +08:00
|
|
|
|
2007-12-21 12:42:57 +08:00
|
|
|
XfrmInHdrError:
|
|
|
|
Header error
|
2020-05-01 22:44:30 +08:00
|
|
|
|
2007-12-21 12:42:57 +08:00
|
|
|
XfrmInNoStates:
|
|
|
|
No state is found
|
|
|
|
i.e. Either inbound SPI, address, or IPsec protocol at SA is wrong
|
2020-05-01 22:44:30 +08:00
|
|
|
|
2007-12-21 12:42:57 +08:00
|
|
|
XfrmInStateProtoError:
|
|
|
|
Transformation protocol specific error
|
|
|
|
e.g. SA key is wrong
|
2020-05-01 22:44:30 +08:00
|
|
|
|
2007-12-21 12:42:57 +08:00
|
|
|
XfrmInStateModeError:
|
|
|
|
Transformation mode specific error
|
2020-05-01 22:44:30 +08:00
|
|
|
|
2008-02-01 09:14:58 +08:00
|
|
|
XfrmInStateSeqError:
|
|
|
|
Sequence error
|
|
|
|
i.e. Sequence number is out of window
|
2020-05-01 22:44:30 +08:00
|
|
|
|
2007-12-21 12:42:57 +08:00
|
|
|
XfrmInStateExpired:
|
|
|
|
State is expired
|
2020-05-01 22:44:30 +08:00
|
|
|
|
2007-12-21 12:42:57 +08:00
|
|
|
XfrmInStateMismatch:
|
|
|
|
State has mismatch option
|
|
|
|
e.g. UDP encapsulation type is mismatch
|
2020-05-01 22:44:30 +08:00
|
|
|
|
2007-12-21 12:42:57 +08:00
|
|
|
XfrmInStateInvalid:
|
|
|
|
State is invalid
|
2020-05-01 22:44:30 +08:00
|
|
|
|
2007-12-21 12:42:57 +08:00
|
|
|
XfrmInTmplMismatch:
|
|
|
|
No matching template for states
|
|
|
|
e.g. Inbound SAs are correct but SP rule is wrong
|
2020-05-01 22:44:30 +08:00
|
|
|
|
2007-12-21 12:42:57 +08:00
|
|
|
XfrmInNoPols:
|
|
|
|
No policy is found for states
|
|
|
|
e.g. Inbound SAs are correct but no SP is found
|
2020-05-01 22:44:30 +08:00
|
|
|
|
2007-12-21 12:42:57 +08:00
|
|
|
XfrmInPolBlock:
|
|
|
|
Policy discards
|
2020-05-01 22:44:30 +08:00
|
|
|
|
2007-12-21 12:42:57 +08:00
|
|
|
XfrmInPolError:
|
|
|
|
Policy error
|
2020-05-01 22:44:30 +08:00
|
|
|
|
2017-12-22 06:26:18 +08:00
|
|
|
XfrmAcquireError:
|
|
|
|
State hasn't been fully acquired before use
|
2020-05-01 22:44:30 +08:00
|
|
|
|
2017-12-22 06:26:18 +08:00
|
|
|
XfrmFwdHdrError:
|
|
|
|
Forward routing of a packet is not allowed
|
2007-12-21 12:42:57 +08:00
|
|
|
|
|
|
|
Outbound errors
|
|
|
|
~~~~~~~~~~~~~~~
|
|
|
|
XfrmOutError:
|
|
|
|
All errors which is not matched others
|
2020-05-01 22:44:30 +08:00
|
|
|
|
2007-12-21 12:42:57 +08:00
|
|
|
XfrmOutBundleGenError:
|
|
|
|
Bundle generation error
|
2020-05-01 22:44:30 +08:00
|
|
|
|
2007-12-21 12:42:57 +08:00
|
|
|
XfrmOutBundleCheckError:
|
|
|
|
Bundle check error
|
2020-05-01 22:44:30 +08:00
|
|
|
|
2007-12-21 12:42:57 +08:00
|
|
|
XfrmOutNoStates:
|
|
|
|
No state is found
|
2020-05-01 22:44:30 +08:00
|
|
|
|
2007-12-21 12:42:57 +08:00
|
|
|
XfrmOutStateProtoError:
|
|
|
|
Transformation protocol specific error
|
2020-05-01 22:44:30 +08:00
|
|
|
|
2007-12-21 12:42:57 +08:00
|
|
|
XfrmOutStateModeError:
|
|
|
|
Transformation mode specific error
|
2020-05-01 22:44:30 +08:00
|
|
|
|
2008-02-01 09:14:58 +08:00
|
|
|
XfrmOutStateSeqError:
|
|
|
|
Sequence error
|
|
|
|
i.e. Sequence number overflow
|
2020-05-01 22:44:30 +08:00
|
|
|
|
2007-12-21 12:42:57 +08:00
|
|
|
XfrmOutStateExpired:
|
|
|
|
State is expired
|
2020-05-01 22:44:30 +08:00
|
|
|
|
2007-12-21 12:42:57 +08:00
|
|
|
XfrmOutPolBlock:
|
|
|
|
Policy discards
|
2020-05-01 22:44:30 +08:00
|
|
|
|
2007-12-21 12:42:57 +08:00
|
|
|
XfrmOutPolDead:
|
|
|
|
Policy is dead
|
2020-05-01 22:44:30 +08:00
|
|
|
|
2007-12-21 12:42:57 +08:00
|
|
|
XfrmOutPolError:
|
|
|
|
Policy error
|
2020-05-01 22:44:30 +08:00
|
|
|
|
2017-12-22 06:26:18 +08:00
|
|
|
XfrmOutStateInvalid:
|
|
|
|
State is invalid, perhaps expired
|