net: replace __constant_{endian} uses in net headers
Base versions handle constant folding now. For headers exposed to userspace, we must only expose the __ prefixed versions. Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
35c26c2cf6
commit
f3a7c66b5c
@@ -184,8 +184,8 @@ static inline const char *ip_vs_dbg_addr(int af, char *buf, size_t buf_len,
|
||||
/*
|
||||
* The port number of FTP service (in network order).
|
||||
*/
|
||||
#define FTPPORT __constant_htons(21)
|
||||
#define FTPDATA __constant_htons(20)
|
||||
#define FTPPORT cpu_to_be16(21)
|
||||
#define FTPDATA cpu_to_be16(20)
|
||||
|
||||
/*
|
||||
* TCP State Values
|
||||
|
Reference in New Issue
Block a user