----- Original Message ----- From: <aksingh@hss.hns.com> To: <kernelnewbies@nl.linux.org> Sent: Monday, May 31, 2004 9:55 PM Subject: ip_local_deliver > > HI, > > can I call ip_local_deliver/ip_route_output from my kernel module, though > it is not exported in /usr/src/linux-2.4/netsyms.c, is there no way that i > can use it directly ?. Also, I see a problem with the linux kernel, any > packet that comes from user applications, even one whose dest_ip_addr == > that of the local machine(the machine on which that application is > running), even then the packet goes out of the machine, i.e if i write one > such packet to ip using a raw socket,ip_local_deliver is not called for > that packet immediately, Calling ip_local_deliver for loopback packets immediately is bad idea ( I think so). Think of tcp 3 way handshake, where tcp output function will call ip output function. If ip output function immediately calls ip input (ip_local_deliver) , ip input shall call tcp input and that will call again tcp output for sending syn-ack. This process will continute further for ack. it first goes out of the ethernet interface and > then is caught again, why so ? why is it kept this way ? > > thanks > Amit > > > -- > Kernelnewbies: Help each other learn about the Linux kernel. > Archive: http://mail.nl.linux.org/kernelnewbies/ > FAQ: http://kernelnewbies.org/faq/ > > -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/