mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-02-22 15:19:12 +00:00
The /proc/net/nf_conntrack file uses fully expanded IPv6 addresses with leading zeros in each 16-bit group. For example: fc00:f853:ccd:e793::3 -> fc00:f853:0ccd:e793:0000:0000:0000:0003 Add expandIPv6ForConntrack() helper function to expand IPv6 addresses to the format used by /proc/net/nf_conntrack before using them in the grep pattern. Signed-off-by: Davanum Srinivas <davanum@gmail.com>