ipset
ipset copied to clipboard
netlink ipset package for Go(Golang).
https://github.com/nadoo/ipset/blob/08468a77bef6982063d2fdb9fed0a5710e4f5764/internal/netlink/netlink.go#L123 if the setName has exist in the kernel before, I don't know this line? or check it 1st: if exist then destroy; Create... else flush?
it is useful.
For example, creating a `newSet` with different timeout and then swapping the IPs from "oldSet" to "newSet"
Hello. After 08468a7 changes (timeout 0 support), timeout attribute assigned to every rule. I've fixed this.