aboutsummaryrefslogtreecommitdiffstats
path: root/net/core/dev_api.c
diff options
context:
space:
mode:
authorAlok Tiwari <[email protected]>2025-07-17 19:35:47 +0000
committerJakub Kicinski <[email protected]>2025-07-19 00:31:16 +0000
commit4701ee5044fb3992f1c910630a9673c2dc600ce5 (patch)
tree7fc5ee572e81814be458901eb400efe1110a7c55 /net/core/dev_api.c
parentnet: bcmasp: Add support for re-starting auto-negotiation (diff)
downloadkernel-4701ee5044fb3992f1c910630a9673c2dc600ce5.tar.gz
kernel-4701ee5044fb3992f1c910630a9673c2dc600ce5.zip
be2net: Use correct byte order and format string for TCP seq and ack_seq
The TCP header fields seq and ack_seq are 32-bit values in network byte order as (__be32). these fields were earlier printed using ntohs(), which converts only 16-bit values and produces incorrect results for 32-bit fields. This patch is changeing the conversion to ntohl(), ensuring correct interpretation of these sequence numbers. Notably, the format specifier is updated from %d to %u to reflect the unsigned nature of these fields. improves the accuracy of debug log messages for TCP sequence and acknowledgment numbers during TX timeouts. Signed-off-by: Alok Tiwari <[email protected]> Reviewed-by: Simon Horman <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/core/dev_api.c')
0 files changed, 0 insertions, 0 deletions