|
Hello! I have a bpf map of type BPF_MAP_TYPE_HASH for IPv6 addresses as a key: Key size is 16bytes long. In Go I declare keys and values as [][]byte and It seems that Map.BatchUpdate() function doesn't like it. Any ideas what is wrong and how to make BatchUpdate() work? Addresses are loaded from K/V db in the following way: |
Answered by
ti-mo
May 13, 2026
Replies: 1 comment
|
Slices are not fixed-size types since their length varies at runtime. Same goes for |
0 replies
Answer selected by
matpuk
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Slices are not fixed-size types since their length varies at runtime. Same goes for
intanduintsince their sizes are architecture-specific. In this case, it sounds like you want to use an array, not a slice:[16]byte. Or, when doing batch operations:[][16]byte.