commit | f576e24ffaf2c6b01af389e3bad3342681a8b84f | [log] [tgz] |
---|---|---|
author | YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> | Wed Mar 07 14:19:03 2007 +0900 |
committer | David S. Miller <davem@sunset.davemloft.net> | Wed Apr 25 22:23:56 2007 -0700 |
tree | bf4972ceb7680483e2df8c2ff401e1e80d246ca2 | |
parent | 724800d61b8bc574a364707b6a6c6a6252e8cdb4 [diff] |
[NET] ETHERNET: Use htons() where appropriate. Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> Signed-off-by: David S. Miller <davem@davemloft.net>
diff --git a/net/ethernet/eth.c b/net/ethernet/eth.c index 7391f55..41c5065 100644 --- a/net/ethernet/eth.c +++ b/net/ethernet/eth.c
@@ -228,7 +228,7 @@ eth = (struct ethhdr *) (((u8 *) hh->hh_data) + (HH_DATA_OFF(sizeof(*eth)))); - if (type == __constant_htons(ETH_P_802_3)) + if (type == htons(ETH_P_802_3)) return -1; eth->h_proto = type;