On Mon, Jun 20, 2022 at 06:11:11PM +0200, Matteo Croce wrote: > Hi, > > I wonder why struct bpf_sock_addr doesn't contain the sin6_scope_id as > in struct sockaddr_in6. > A program with type like BPF_PROG_TYPE_CGROUP_SOCK_ADDR might want to > access that field. I think usually there was no use case? Do you need to read from it or write to it? You can try to extend it. Take a look at sock_addr_is_valid_access() and sock_addr_convert_ctx_access().