xfrm_proc.rst 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. .. SPDX-License-Identifier: GPL-2.0
  2. ==================================
  3. XFRM proc - /proc/net/xfrm_* files
  4. ==================================
  5. Masahide NAKAMURA <nakam@linux-ipv6.org>
  6. Transformation Statistics
  7. -------------------------
  8. The xfrm_proc code is a set of statistics showing numbers of packets
  9. dropped by the transformation code and why. These counters are defined
  10. as part of the linux private MIB. These counters can be viewed in
  11. /proc/net/xfrm_stat.
  12. Inbound errors
  13. ~~~~~~~~~~~~~~
  14. XfrmInError:
  15. All errors which is not matched others
  16. XfrmInBufferError:
  17. No buffer is left
  18. XfrmInHdrError:
  19. Header error
  20. XfrmInNoStates:
  21. No state is found
  22. i.e. Either inbound SPI, address, or IPsec protocol at SA is wrong
  23. XfrmInStateProtoError:
  24. Transformation protocol specific error
  25. e.g. SA key is wrong
  26. XfrmInStateModeError:
  27. Transformation mode specific error
  28. XfrmInStateSeqError:
  29. Sequence error
  30. i.e. Sequence number is out of window
  31. XfrmInStateExpired:
  32. State is expired
  33. XfrmInStateMismatch:
  34. State has mismatch option
  35. e.g. UDP encapsulation type is mismatch
  36. XfrmInStateInvalid:
  37. State is invalid
  38. XfrmInTmplMismatch:
  39. No matching template for states
  40. e.g. Inbound SAs are correct but SP rule is wrong
  41. XfrmInNoPols:
  42. No policy is found for states
  43. e.g. Inbound SAs are correct but no SP is found
  44. XfrmInPolBlock:
  45. Policy discards
  46. XfrmInPolError:
  47. Policy error
  48. XfrmAcquireError:
  49. State hasn't been fully acquired before use
  50. XfrmFwdHdrError:
  51. Forward routing of a packet is not allowed
  52. XfrmInStateDirError:
  53. State direction mismatch (lookup found an output state on the input path, expected input or no direction)
  54. Outbound errors
  55. ~~~~~~~~~~~~~~~
  56. XfrmOutError:
  57. All errors which is not matched others
  58. XfrmOutBundleGenError:
  59. Bundle generation error
  60. XfrmOutBundleCheckError:
  61. Bundle check error
  62. XfrmOutNoStates:
  63. No state is found
  64. XfrmOutStateProtoError:
  65. Transformation protocol specific error
  66. XfrmOutStateModeError:
  67. Transformation mode specific error
  68. XfrmOutStateSeqError:
  69. Sequence error
  70. i.e. Sequence number overflow
  71. XfrmOutStateExpired:
  72. State is expired
  73. XfrmOutPolBlock:
  74. Policy discards
  75. XfrmOutPolDead:
  76. Policy is dead
  77. XfrmOutPolError:
  78. Policy error
  79. XfrmOutStateInvalid:
  80. State is invalid, perhaps expired
  81. XfrmOutStateDirError:
  82. State direction mismatch (lookup found an input state on the output path, expected output or no direction)