Skip to content

Commit 5f46783

Browse files
authored
Add missing godoc comments for xfrm stats (prometheus#433)
Add missing godoc comments matching the kernel documentation, see https://www.kernel.org/doc/html/latest/networking/xfrm_proc.html Also rename the `xfrm*.go` files to have a `net_` prefix, as the respective file is found in the `net/` sub-directory and this matches filenames for other network-related stats. Signed-off-by: Tobias Klauser <[email protected]>
1 parent 71acf3d commit 5f46783

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

xfrm.go renamed to net_xfrm.go

+6-3
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,13 @@ type XfrmStat struct {
7979
// Policy is dead
8080
XfrmOutPolDead int
8181
// Policy Error
82-
XfrmOutPolError int
83-
XfrmFwdHdrError int
82+
XfrmOutPolError int
83+
// Forward routing of a packet is not allowed
84+
XfrmFwdHdrError int
85+
// State is invalid, perhaps expired
8486
XfrmOutStateInvalid int
85-
XfrmAcquireError int
87+
// State hasn’t been fully acquired before use
88+
XfrmAcquireError int
8689
}
8790

8891
// NewXfrmStat reads the xfrm_stat statistics.
File renamed without changes.

0 commit comments

Comments
 (0)