(usagi-users 03771) Re: About IPv6 forwarding
Sébastien Barré <[email protected]> Mon, 30 Oct 2006 17:32:38 +0100
| Newsgroups | gmane.linux.ipv6.usagi.users |
|---|---|
| Message-ID | <[email protected]> |
Well, I have found the solution to the second question, but the first one stay open : - first : I am still looking for a better way to see (in ip6_output2()) if a packet is forwarded or generated by the host (this is for my shim6 implementation). - second : I am currenty using skb->input_dev. This was a problem of config options, not kernel version : when cloning an skbuff (function skb_clone() in net/core/skbuff.c), the input_dev field is copied only if options NET_SCHED and NET_CLS_ACT are defined. I have changed this, and my prototype works fine now. Sébastien. Sébastien Barré escribió: > 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