- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for checkRuleWithoutCheck (0.17 sec)
-
pkg/util/iptables/iptables.go
func (runner *runner) checkRule(table Table, chain Chain, args ...string) (bool, error) { if runner.hasCheck { return runner.checkRuleUsingCheck(makeFullArgs(table, chain, args...)) } return runner.checkRuleWithoutCheck(table, chain, args...) } var hexnumRE = regexp.MustCompile("0x0+([0-9])") func trimhex(s string) string { return hexnumRE.ReplaceAllString(s, "0x$1") }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Dec 19 01:20:51 UTC 2023 - 28.6K bytes - Viewed (0) -
pkg/util/iptables/iptables_test.go
func(cmd string, args ...string) exec.Cmd { return fakeexec.InitFakeCmd(&fcmd, cmd, args...) }, }, } runner := &runner{exec: fexec} exists, err := runner.checkRuleWithoutCheck( TableNAT, ChainPrerouting, "-m", "addrtype", "-m", "mark", "--mark", "0x4000/0x4000", "-j", "DOCKER", "--dst-type", "LOCAL") if err != nil { t.Errorf("expected success, got %v", err)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Nov 08 15:21:59 UTC 2023 - 46.3K bytes - Viewed (0)