mirror of
https://github.com/adulau/aha.git
synced 2024-12-29 12:16:20 +00:00
[NET] ETHERNET: Use htons() where appropriate.
Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
724800d61b
commit
f576e24ffa
1 changed files with 1 additions and 1 deletions
|
@ -228,7 +228,7 @@ int eth_header_cache(struct neighbour *neigh, struct hh_cache *hh)
|
||||||
eth = (struct ethhdr *)
|
eth = (struct ethhdr *)
|
||||||
(((u8 *) hh->hh_data) + (HH_DATA_OFF(sizeof(*eth))));
|
(((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;
|
return -1;
|
||||||
|
|
||||||
eth->h_proto = type;
|
eth->h_proto = type;
|
||||||
|
|
Loading…
Reference in a new issue