From: YOSHIFUJI Hideaki Date: Wed, 7 Mar 2007 05:19:03 +0000 (+0900) Subject: [NET] ETHERNET: Use htons() where appropriate. X-Git-Tag: v2.6.22-rc1~1128^2~389 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f576e24ffaf2c6b01af389e3bad3342681a8b84f;p=linux-2.6 [NET] ETHERNET: Use htons() where appropriate. Signed-off-by: YOSHIFUJI Hideaki Signed-off-by: David S. Miller --- diff --git a/net/ethernet/eth.c b/net/ethernet/eth.c index 7391f55904..41c5065f4a 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;