[NET]: Use hton{l,s}() for non-initializers.
Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
4244f8a9f8
commit
496c98dff8
@@ -611,8 +611,8 @@ static int ipgre_rcv(struct sk_buff *skb)
|
||||
* - When dealing with WCCPv2, Skip extra 4 bytes in GRE header
|
||||
*/
|
||||
if (flags == 0 &&
|
||||
skb->protocol == __constant_htons(ETH_P_WCCP)) {
|
||||
skb->protocol = __constant_htons(ETH_P_IP);
|
||||
skb->protocol == htons(ETH_P_WCCP)) {
|
||||
skb->protocol = htons(ETH_P_IP);
|
||||
if ((*(h + offset) & 0xF0) != 0x40)
|
||||
offset += 4;
|
||||
}
|
||||
|
Reference in New Issue
Block a user