(usagi-users 03770) About IPv6 forwarding

Sébastien Barré <[email protected]> Mon, 30 Oct 2006 10:01:56 +0100
Newsgroups gmane.linux.ipv6.usagi.users
Message-ID <[email protected]>
Hi,

I am looking for a clean way to see, within ip6_output2() 
(net/ipv6/ip6_output.c), if the outgoing skbuff is a forwarded one, or 
is generated by the host.
In Linux 2.6.15, I was doing that by looking skb->input_dev. If NULL I 
declared it as being generated by the host.
But with kernel 2.6.17.11, this does no longer work.

BTW, I am wondering why skb->input_dev is sometimes defined for host 
generated packets (which is why my previous method no longer works).
For example, when doing an ssh, I have input_dev defined for the 
(outgoing, of course)
- SYN and FIN segments
- most, but not all of ssh packets.

Anybody can help ?

Thank you in advance,

Sébastien.

-- 
Sébastien Barré
Researcher,
CSE department, UCLouvain, Belgium