You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think that refers to the version of ipset. The netlink code you referenced happens to work just because TCP is 6... We should change that, it's confusing.
I think that refers to the version of ipset. The netlink code you referenced happens to work just because TCP is 6... We should change that, it's confusing.
I tried changing the version to 7 but it didn't work.
bitmap:port itself has nothing to do with the protocol.
I mean if there is an extra protocol attr, it will be considered an error.
This may be a strong check in the new version.
I compared the strace of the ipset command directly add and found two differences.
protocol version 7 (top attr, not attr data)
No protocol attr in the IPSetEntry(IPSET_ATTR_PROTO).
Modification 1 did not solve the problem, modification 2 removed the extra protocol attr and worked well. @aboch
At the same time, the kernel is compared with the mini protocol, so this is no problem with protocol 6
if remove protocol attr, is ok.
bitmap:port seems to be unrelated to the protocol. In higher versions, additional specified protocols will result in an error.
https://github.com/vishvananda/netlink/blob/main/ipset_linux.go#L318-L323
os env
The text was updated successfully, but these errors were encountered: