package utils

import "github.com/containernetworking/cni/pkg/utils"

Index

Functions

func FormatChainName

func FormatChainName(name string, id string) string

Generates a chain name to be used with iptables. Ensures that the generated chain name is exactly maxChainLength chars in length

func FormatComment

func FormatComment(name string, id string) string

FormatComment returns a comment used for easier rule identification within iptables.

Source Files

utils.go

Directories

PathSynopsis
pkg/utils/hwaddr
Version
v0.5.0
Published
Mar 6, 2017
Platform
js/wasm
Imports
2 packages
Last checked
17 hours ago

Tools for package owners.