Thread (5 messages) flat view 5 messages, 5 authors, 2021-03-14

Re: [PATCH net] flow_dissector: fix byteorder of dissected ICMP ID

From: David Miller <davem@davemloft.net>
Date: 2021-03-14 21:31:50
Also in: lkml

From: Vladimir Oltean <vladimir.oltean@nxp.com>
Date: Sun, 14 Mar 2021 20:44:49 +0000
On Sun, Mar 14, 2021 at 09:21:40PM +0100, Jakub Sitnicki wrote:
quoted
On Fri, Mar 12, 2021 at 09:08 PM CET, Alexander Lobakin wrote:

Smells like a breaking change for existing consumers of this value.

How about we change the type of flow_dissector_key_icmp{}.id to __be16
instead to make sparse happy?
The struct flow_dissector_key_icmp::id only appears to be used in
bond_xmit_hash, and there, the exact value doesn't seem to matter.

This appears to be a real bug and not just to appease sparse:
ih->un.echo.id has one endianness and "1" has another. Both cannot
be correct.
Agreed, so I will apply this, thanks.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help