Skip to content

Commit

Permalink
qeth: HiperSockets layer-3 interface drop non IPv4 or non IPv6 packets
Browse files Browse the repository at this point in the history
HiperSockets infrastructure (layer-3 mode) supports only IPv4 or
IPv6 packets. Sending other packet types disturbs TCP/IP on z/VM,
which issues messages about invalid packets.
Qeth send routine will detect packet type on sending over a
HiperSockets interface (in layer-3 mode) and drop non IP packets.
The error and drop count of the interface is incremented.

Signed-off-by: Klaus D. Wacker <[email protected]>
Signed-off-by: Ursula Braun <[email protected]>
Signed-off-by: Jeff Garzik <[email protected]>
  • Loading branch information
Klaus D. Wacker authored and David S. Miller committed Oct 10, 2007
1 parent a3138df commit bc4b2b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/s390/net/qeth_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -4719,8 +4719,8 @@ qeth_send_packet(struct qeth_card *card, struct sk_buff *skb)
rc = qeth_do_send_packet(card, queue, new_skb, hdr,
elements_needed, ctx);
else {
if ((skb->protocol == htons(ETH_P_ARP)) &&
(card->dev->flags & IFF_NOARP)) {
if ((!card->options.layer2) &&
(ipv == 0)) {
__qeth_free_new_skb(skb, new_skb);
return -EPERM;
}
Expand Down

0 comments on commit bc4b2b4

Please sign in to comment.