lkml.org 
[lkml]   [2002]   [Mar]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectIP drops re-injected packets !!!
I am trying to implement an on demand routing protocol for ad-hoc
wireless networks. for this I intercept packets at the IP layer
(using netfilter), queue them in the user space and reinject them
(after route has been discovered) at the IP layer using tun device.

Everyting works fine except that IP drops the re-injected packets.
Basically "fib_validate_source" drops all the packets with local address
as the source address and this is the reason why all the reinjected
packets are being dropped. I could get away with this problem by modifying
fib_validate_source function in fin_frontend.c file as follows:

--if(res.type != RTN_UNICAST)
++if((res.type != RTN_UNICAST) && (res.type != RTN_LOCAL))

I am just wondering if this is the right fix for the problem or should
this be handled in some other way?

In any case I am not clear how the current kernel handles the reinjected
packets which are generated locally? Is this a bug in the kernel or am I
missing something here?

any clarifications will be highly appreciated.

Thanx,
-Binita

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

\
 
 \ /
  Last update: 2005-03-22 13:24    [W:0.028 / U:2.252 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site