attach additional value to skb

2007-10-22 Thread Yakov Lerner
1. How can I attach my 32-bit value to the skb in the PRE_ROUTNIG hook such that FORWARD and POST_ROUTING hooks can later access this value from the skb ? Can I use sk_buff->cb for that ? 2. I want to add my custom destructor to the skb, the function pointer to be called at skb destruction time.

NF_IP_POST_ROUTING hook question (2.4)

2007-10-16 Thread Yakov Lerner
In the NF_IP_POST_ROUTING hook function, how can I tell that packet originated locally vs was forwarded ? I need to hook NF_IP_POST_ROUTING not NF_IP_FORWARD. I'd expect that 'net_device *in' argument to be not NULL for forwarded packets. But what I see is NULL for both forwarded and locally se

Re: 2.4/2.6 share in linux routers ?

2006-10-27 Thread Yakov Lerner
On 10/28/06, David Miller <[EMAIL PROTECTED]> wrote: Please stop all of this cross posting. I've just seen you post this same exact email on the netfilter lists too. Sorry - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More ma

2.4/2.6 share in linux routers ?

2006-10-27 Thread Yakov Lerner
or correction ? Which factors make 2.4 or 2.6 more attractive for small linux router (128-256 mb RAM) ? Yakov Lerner P.S. Sorry if the message is duplicate. - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at

2.4/2.6 share in linux routers ?

2006-10-27 Thread Yakov Lerner
or correction ? Which factors make 2.4 or 2.6 more attractive for small linux router (128-256 mb RAM) ? Yakov Lerner - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html