Explorar el Código

[IPV4]: struct inet_request_sock annotations

->port is net-endian

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
Al Viro hace 19 años
padre
commit
e11be94bf6
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      include/net/inet_sock.h

+ 1 - 1
include/net/inet_sock.h

@@ -64,7 +64,7 @@ struct inet_request_sock {
 #endif
 #endif
 	__be32			loc_addr;
 	__be32			loc_addr;
 	__be32			rmt_addr;
 	__be32			rmt_addr;
-	u16			rmt_port;
+	__be16			rmt_port;
 	u16			snd_wscale : 4, 
 	u16			snd_wscale : 4, 
 				rcv_wscale : 4, 
 				rcv_wscale : 4, 
 				tstamp_ok  : 1,
 				tstamp_ok  : 1,