Re: scope id field in bpf_sock_addr

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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().



[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux