mirror of
https://github.com/netbirdio/netbird.git
synced 2025-07-16 14:25:01 +02:00
Add initial support to ingress ports on the client code. - new types where added - new protocol messages and controller
22 lines
327 B
Go
22 lines
327 B
Go
package nftables
|
|
|
|
import (
|
|
"net"
|
|
|
|
"github.com/google/nftables"
|
|
)
|
|
|
|
// Rule to handle management of rules
|
|
type Rule struct {
|
|
nftRule *nftables.Rule
|
|
mangleRule *nftables.Rule
|
|
nftSet *nftables.Set
|
|
ruleID string
|
|
ip net.IP
|
|
}
|
|
|
|
// GetRuleID returns the rule id
|
|
func (r *Rule) ID() string {
|
|
return r.ruleID
|
|
}
|