···12151215{12161216 struct sk_buff *segs = ERR_PTR(-EPROTONOSUPPORT);12171217 struct packet_type *ptype;12181218- int type = skb->protocol;12181218+ __be16 type = skb->protocol;12191219 int err;1220122012211221 BUG_ON(skb_shinfo(skb)->frag_list);···17661766 struct packet_type *ptype, *pt_prev;17671767 struct net_device *orig_dev;17681768 int ret = NET_RX_DROP;17691769- unsigned short type;17691769+ __be16 type;1770177017711771 /* if we've gotten here through NAPI, check netpoll */17721772 if (skb->dev->poll && netpoll_rx(skb))
+3-3
net/core/filter.c
···178178load_w:179179 ptr = load_pointer(skb, k, 4, &tmp);180180 if (ptr != NULL) {181181- A = ntohl(get_unaligned((u32 *)ptr));181181+ A = ntohl(get_unaligned((__be32 *)ptr));182182 continue;183183 }184184 break;···187187load_h:188188 ptr = load_pointer(skb, k, 2, &tmp);189189 if (ptr != NULL) {190190- A = ntohs(get_unaligned((u16 *)ptr));190190+ A = ntohs(get_unaligned((__be16 *)ptr));191191 continue;192192 }193193 break;···261261 */262262 switch (k-SKF_AD_OFF) {263263 case SKF_AD_PROTOCOL:264264- A = htons(skb->protocol);264264+ A = ntohs(skb->protocol);265265 continue;266266 case SKF_AD_PKTTYPE:267267 A = skb->pkt_type;