From: Joerg Reuter (oloiidim.cvprubi@statscout.com)
Date: Wed Feb 07 2001 - 13:46:39 EET
On Thu, Feb 01, 2001 at 01:37:25PM +0200, zilvinas wrote:
> I am using baycom/tnos/linux system. I've almost lost hope to get answer
> how to avoid these messages which fill my logs:
Thomas DL9SAU apparently has found the cause of these messages. If
this doesn't solve the problem it isn't caused by kernel AX.25 ;-)
Here's a patch for kernel 2.2.18 and 2.4.1:
diff -ur linux-2.2.18/net/ax25/ax25_in.c linux-2.2.18-bke/net/ax25/ax25_in.c
--- linux-2.2.18/net/ax25/ax25_in.c Tue Jan 4 19:12:26 2000
+++ linux-2.2.18-bke/net/ax25/ax25_in.c Wed Feb 7 12:29:10 2001
@@ -36,6 +36,7 @@
* AX.25 036 Jonathan(G4KLX) Move DAMA code into own file.
* Joerg(DL1BKE) Fixed DAMA Slave.
* AX.25 037 Jonathan(G4KLX) New timer architecture.
+ * Thomas(DL9SAU) Fixed missing initialization of skb->protocol.
*/
#include <linux/config.h>
@@ -159,6 +160,7 @@
skb->nh.raw = skb->data;
skb->dev = ax25->ax25_dev->dev;
skb->pkt_type = PACKET_HOST;
+ skb->protocol = htons(ETH_P_IP);
ip_rcv(skb, skb->dev, NULL); /* Wrong ptype */
return 1;
}
@@ -293,6 +295,7 @@
skb->nh.raw = skb->data;
skb->dev = dev;
skb->pkt_type = PACKET_HOST;
+ skb->protocol = htons(ETH_P_IP);
ip_rcv(skb, dev, ptype); /* Note ptype here is the wrong one, fix me later */
break;
@@ -302,6 +305,7 @@
skb->nh.raw = skb->data;
skb->dev = dev;
skb->pkt_type = PACKET_HOST;
+ skb->protocol = htons(ETH_P_ARP);
arp_rcv(skb, dev, ptype); /* Note ptype here is wrong... */
break;
#endif
This also fixes the problem that the kernel doesn't route a datagram back
to the originating interface despite the correct /proc entries.
73,
-- Joerg Reuter DL1BKE http://yaina.de/jreuter And I make my way to where the warm scent of soil fills the evening air. Everything is waiting quietly out there.... (Anne Clark)
This archive was generated by hypermail 2b30 : Wed Feb 07 2001 - 13:47:32 EET