[PATCH] 2.2.14 breaks plip

From: Lennert Buytenhek (lbuijten@cs.leidenuniv.nl)
Date: Thu Jan 06 2000 - 03:16:26 EST


Hello there,

patch-2.2.14 'breaks' reception of plip packets. Destination MAC
address checking (unicast/broadcast et al.) has been tightened up in
2.2.14, and the plip driver doesn't set the h_dest addr of received
packets to its own dev->dev_addr. Which causes eth_type_trans to mark
each incoming packet as an OTHERHOST packet. Et cetera.

Fix included.

Greetings,
Lennert Buytenhek

--- plip.c~ Wed Jan 5 13:26:45 2000
+++ plip.c Wed Jan 5 16:21:44 2000
@@ -595,6 +595,7 @@
 
         case PLIP_PK_DONE:
                 /* Inform the upper layer for the arrival of a packet. */
+ memcpy(rcv->skb->data, dev->dev_addr, ETH_ALEN);
                 rcv->skb->protocol=eth_type_trans(rcv->skb, dev);
                 netif_rx(rcv->skb);
                 nl->enet_stats.rx_bytes += rcv->length.h;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Jan 07 2000 - 21:00:05 EST