Documentation ¶
Index ¶
Constants ¶
View Source
const MaxHashLen = sha512.Size * 2
Variables ¶
This section is empty.
Functions ¶
func FormatChainName ¶
FormatChainName generates a chain name to be used with iptables. Ensures that the generated chain name is exactly maxChainLength chars in length.
func FormatComment ¶
FormatComment returns a comment used for easier rule identification within iptables.
func MustFormatChainNameWithPrefix ¶ added in v0.8.2
MustFormatChainNameWithPrefix generates a chain name similar to FormatChainName, but adds a custom prefix between chainPrefix and unique identifier. Ensures that the generated chain name is exactly maxChainLength chars in length. Panics if the given prefix is too long.
Types ¶
This section is empty.
Directories ¶
Path | Synopsis |
---|---|
Buildversion is a destination for the linker trickery so we can auto set the build-version
|
Buildversion is a destination for the linker trickery so we can auto set the build-version |
Click to show internal directories.
Click to hide internal directories.