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

Version
v0.3.0
Published
Jun 2, 2016
Platform
js/wasm
Imports
2 packages
Last checked
2 days ago

Tools for package owners.