Re: [RFC v2 bpf-next 5/7] libbpf: add API to get XDP/XSK supported features

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

 



> On Sat, 14 Jan 2023 16:54:35 +0100 Lorenzo Bianconi wrote:
> > +	struct nlattr *na = (struct nlattr *)(NLMSG_DATA(nh) + GENL_HDRLEN);
> > +
> > +	na = (struct nlattr *)((void *)na + NLA_ALIGN(na->nla_len));
> > +	if (na->nla_type == CTRL_ATTR_FAMILY_ID) {
> 
> Assuming layout of attributes within a message is a hard no-no.

ack, right. I will fix it.

Regards,
Lorenzo

Attachment: signature.asc
Description: PGP signature


[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