Documentation ¶
Rendered for windows/amd64
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeRuleSpecText ¶
func MakeRuleSpecText(winRuleSpec *WindowsRuleSpec, validate bool) (string, error)
converts a WindowsRuleSpec back into a string for an iptables rule
func WideCharPointerToString ¶
WideCharPointerToString converts a pointer to a zero-terminated wide character string to a golang string
Types ¶
type WindowsRuleMatchSet ¶
type WindowsRuleMatchSet struct { MatchSetName string MatchSetNegate bool MatchSetDstIp bool MatchSetDstPort bool MatchSetSrcIp bool MatchSetSrcPort bool }
structure representing result of parsed --match-set
func (*WindowsRuleMatchSet) Equal ¶
func (w *WindowsRuleMatchSet) Equal(other *WindowsRuleMatchSet) bool
Equal compares a WindowsRuleMatchSet to another for equality
type WindowsRulePortRange ¶
structure representing parsed port range
func ParsePortString ¶
func ParsePortString(portString string) ([]*WindowsRulePortRange, error)
parse comma-separated list of port or port ranges
func (*WindowsRulePortRange) Equal ¶
func (w *WindowsRulePortRange) Equal(other *WindowsRulePortRange) bool
Equal compares a WindowsRulePortRange to another for equality
type WindowsRuleSpec ¶
type WindowsRuleSpec struct { Protocol int Action int // FilterAction (allow, drop, nfq, proxy) ProxyPort int Mark int Log bool LogPrefix string GroupId int MatchSrcPort []*WindowsRulePortRange MatchDstPort []*WindowsRulePortRange MatchBytes []byte MatchBytesOffset int MatchSet []*WindowsRuleMatchSet }
structure representing result of parsed iptables rule
func ParseRuleSpec ¶
func ParseRuleSpec(rulespec ...string) (*WindowsRuleSpec, error)
ParseRuleSpec parses a windows iptable rule
func (*WindowsRuleSpec) Equal ¶
func (w *WindowsRuleSpec) Equal(other *WindowsRuleSpec) bool
Equal compares a WindowsRuleSpec to another for equality
Click to show internal directories.
Click to hide internal directories.