diff options
author | YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> | 2007-03-07 14:19:03 +0900 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-04-25 22:23:56 -0700 |
commit | f576e24ffaf2c6b01af389e3bad3342681a8b84f (patch) | |
tree | bf4972ceb7680483e2df8c2ff401e1e80d246ca2 /net/ethernet | |
parent | 724800d61b8bc574a364707b6a6c6a6252e8cdb4 (diff) | |
download | linux-stable-f576e24ffaf2c6b01af389e3bad3342681a8b84f.tar.gz linux-stable-f576e24ffaf2c6b01af389e3bad3342681a8b84f.tar.bz2 linux-stable-f576e24ffaf2c6b01af389e3bad3342681a8b84f.zip |
[NET] ETHERNET: Use htons() where appropriate.
Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ethernet')
-rw-r--r-- | net/ethernet/eth.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ethernet/eth.c b/net/ethernet/eth.c index 7391f55904d1..41c5065f4a87 100644 --- a/net/ethernet/eth.c +++ b/net/ethernet/eth.c @@ -228,7 +228,7 @@ int eth_header_cache(struct neighbour *neigh, struct hh_cache *hh) 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; |