Commit c0d46dc
Fix Conn.Get to correctly set IP family for partial IPv6 filters
Conn.Get supports filters with only one of TupleOrig or TupleReply defined.
However, when using such a partial filter with IPv6 addresses, the function
failed to set the correct IP family (ProtoIPv6) in the netfilter header,
resulting in the error:
netfilter query: netlink receive: invalid argument
This change updates the condition to set the protocol family to IPv6 if
either TupleOrig or TupleReply uses an IPv6 address.
Signed-off-by: Milan Lenco <milan@zededa.com>1 parent 9deed04 commit c0d46dc
2 files changed
+17
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
382 | 382 | | |
383 | 383 | | |
384 | 384 | | |
385 | | - | |
| 385 | + | |
386 | 386 | | |
387 | 387 | | |
388 | 388 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
298 | 298 | | |
299 | 299 | | |
300 | 300 | | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
301 | 317 | | |
302 | 318 | | |
303 | 319 | | |
| |||
0 commit comments