mirror of
https://github.com/openvswitch/ovs
synced 2025-10-17 14:28:02 +00:00
Fix incorrect byte order annotations.
These are not actual bugs, just deceptive use of the wrong function or type. Found by sparse.
This commit is contained in:
@@ -328,8 +328,8 @@ BUILD_ASSERT_DECL(UDP_HEADER_LEN == sizeof(struct udp_header));
|
||||
#define TCP_ACK 0x10
|
||||
#define TCP_URG 0x20
|
||||
|
||||
#define TCP_FLAGS(tcp_ctl) (htons(tcp_ctl) & 0x003f)
|
||||
#define TCP_OFFSET(tcp_ctl) (htons(tcp_ctl) >> 12)
|
||||
#define TCP_FLAGS(tcp_ctl) (ntohs(tcp_ctl) & 0x003f)
|
||||
#define TCP_OFFSET(tcp_ctl) (ntohs(tcp_ctl) >> 12)
|
||||
|
||||
#define TCP_HEADER_LEN 20
|
||||
struct tcp_header {
|
||||
|
Reference in New Issue
Block a user