On Fri, 6 Nov 2020 23:55:50 -0800 Nick Desaulniers wrote: > - ntohs(tuple->src.u.icmp.id)); > + (__be16)ntohs(tuple->src.u.icmp.id)); Joe has a point, besides __be16 clearly is not the right type here, the result of ntohs is in host order.
On Fri, 6 Nov 2020 23:55:50 -0800 Nick Desaulniers wrote: > - ntohs(tuple->src.u.icmp.id)); > + (__be16)ntohs(tuple->src.u.icmp.id)); Joe has a point, besides __be16 clearly is not the right type here, the result of ntohs is in host order.