diff options
author | Alexander Lobakin <alobakin@pm.me> | 2021-03-12 23:08:57 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-03-15 00:30:20 +0300 |
commit | a25f822285420486f5da434efc8d940d42a83bce (patch) | |
tree | c519628bcb0154d5af1f28d3641c0495c8f59d92 /net/wireless/wext-proc.c | |
parent | 50535249f624d0072cd885bcdce4e4b6fb770160 (diff) | |
download | linux-a25f822285420486f5da434efc8d940d42a83bce.tar.xz |
flow_dissector: fix byteorder of dissected ICMP ID
flow_dissector_key_icmp::id is of type u16 (CPU byteorder),
ICMP header has its ID field in network byteorder obviously.
Sparse says:
net/core/flow_dissector.c:178:43: warning: restricted __be16 degrades to integer
Convert ID value to CPU byteorder when storing it into
flow_dissector_key_icmp.
Fixes: 5dec597e5cd0 ("flow_dissector: extract more ICMP information")
Signed-off-by: Alexander Lobakin <alobakin@pm.me>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/wireless/wext-proc.c')
0 files changed, 0 insertions, 0 deletions