浏览代码

[IPV4]: fib_hn ->nh_gw is net-endian

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
Al Viro 18 年之前
父节点
当前提交
ed49e3caaa
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      include/net/ip_fib.h

+ 1 - 1
include/net/ip_fib.h

@@ -63,7 +63,7 @@ struct fib_nh {
 	__u32			nh_tclassid;
 	__u32			nh_tclassid;
 #endif
 #endif
 	int			nh_oif;
 	int			nh_oif;
-	u32			nh_gw;
+	__be32			nh_gw;
 };
 };
 
 
 /*
 /*