diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-12-10 07:38:02 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-10 07:38:02 -0500 |
commit | deb00425c2984ea42158ce6afec74474de998bfd (patch) | |
tree | b883177c4cdf101bc862038b3258dc0b450bc243 /vendor/github.com/vishvananda/netlink/rule.go | |
parent | eaa19a1c10c8eb2e5d8a0d864c123c2f3484b01a (diff) | |
parent | eb9e77430406f5223241d785b9f6807296534a3d (diff) | |
download | podman-deb00425c2984ea42158ce6afec74474de998bfd.tar.gz podman-deb00425c2984ea42158ce6afec74474de998bfd.tar.bz2 podman-deb00425c2984ea42158ce6afec74474de998bfd.zip |
Merge pull request #8678 from containers/dependabot/go_modules/github.com/containernetworking/plugins-0.9.0
Bump github.com/containernetworking/plugins from 0.8.7 to 0.9.0
Diffstat (limited to 'vendor/github.com/vishvananda/netlink/rule.go')
-rw-r--r-- | vendor/github.com/vishvananda/netlink/rule.go | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/vendor/github.com/vishvananda/netlink/rule.go b/vendor/github.com/vishvananda/netlink/rule.go index 7fc8ae5df..95f2facfb 100644 --- a/vendor/github.com/vishvananda/netlink/rule.go +++ b/vendor/github.com/vishvananda/netlink/rule.go @@ -12,6 +12,7 @@ type Rule struct { Table int Mark int Mask int + Tos uint TunID uint Goto int Src *net.IPNet @@ -22,6 +23,8 @@ type Rule struct { SuppressIfgroup int SuppressPrefixlen int Invert bool + Dport *RulePortRange + Sport *RulePortRange } func (r Rule) String() string { @@ -40,3 +43,14 @@ func NewRule() *Rule { Flow: -1, } } + +// NewRulePortRange creates rule sport/dport range. +func NewRulePortRange(start, end uint16) *RulePortRange { + return &RulePortRange{Start: start, End: end} +} + +// RulePortRange represents rule sport/dport range. +type RulePortRange struct { + Start uint16 + End uint16 +} |