github.com/aporeto-inc/trireme-lib@v10.358.0+incompatible/controller/internal/supervisor/iptablesctrl/icmp_windows.go (about) 1 // +build windows 2 3 package iptablesctrl 4 5 import ( 6 "go.aporeto.io/enforcerd/trireme-lib/controller/internal/windows" 7 "go.uber.org/zap" 8 ) 9 10 func allowICMPv6(cfg *ACLInfo) { 11 // appropriate rules are in rules_windows.go already 12 } 13 14 func icmpRule(icmpTypeCode string, policyRestrictions []string) []string { 15 ruleSub, err := windows.ReduceIcmpProtoString(icmpTypeCode, policyRestrictions) 16 if err != nil { 17 zap.L().Debug("could not formulate ICMP rule", zap.Error(err)) 18 // we cannot return empty because it will match all icmp 19 ruleSub = windows.GetIcmpNoMatch() 20 } 21 return ruleSub 22 }