aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390/net/qeth_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/s390/net/qeth_main.c')
-rw-r--r--drivers/s390/net/qeth_main.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/s390/net/qeth_main.c b/drivers/s390/net/qeth_main.c
index c0ee6d94ea38..0ff29e0628b5 100644
--- a/drivers/s390/net/qeth_main.c
+++ b/drivers/s390/net/qeth_main.c
@@ -3778,9 +3778,11 @@ qeth_get_cast_type(struct qeth_card *card, struct sk_buff *skb)
3778 } 3778 }
3779 /* try something else */ 3779 /* try something else */
3780 if (skb->protocol == ETH_P_IPV6) 3780 if (skb->protocol == ETH_P_IPV6)
3781 return (skb->nh.raw[24] == 0xff) ? RTN_MULTICAST : 0; 3781 return (skb_network_header(skb)[24] == 0xff) ?
3782 RTN_MULTICAST : 0;
3782 else if (skb->protocol == ETH_P_IP) 3783 else if (skb->protocol == ETH_P_IP)
3783 return ((skb->nh.raw[16] & 0xf0) == 0xe0) ? RTN_MULTICAST : 0; 3784 return ((skb_network_header(skb)[16] & 0xf0) == 0xe0) ?
3785 RTN_MULTICAST : 0;
3784 /* ... */ 3786 /* ... */
3785 if (!memcmp(skb->data, skb->dev->broadcast, 6)) 3787 if (!memcmp(skb->data, skb->dev->broadcast, 6))
3786 return RTN_BROADCAST; 3788 return RTN_BROADCAST;