utils

package
v0.1.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 13, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompareInterfaceName

func CompareInterfaceName(current, prev string) bool

CompareInterfaceName compare name from given current and prev by directory order example: net1 > eth0, true net2 > net1, true

func GetRuleNumber

func GetRuleNumber(iface string) int

GetRuleNumber return the number of rule table corresponding to the previous interface from the given interface. the input format must be 'net+number' for example: input: net1, output: 100(eth0) input: net2, output: 101(net1)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL