Re: a question on skb_copy_expand

Richard Guy Briggs <[email protected]>
Newsgroups gmane.network.freeswan.devel
Message-ID <[email protected]>
On Fri, Jan 10, 2003 at 10:10:20AM +0800, ³Âì¿ wrote:
> hi,
>     in freeswan-1.97/klips/net/ipsec/ipsec_tunnel.c, at line 1349, we will use skb_copy_expand to creat a tskb.At line 1985, we will free the oskb.
>     I want to know if oskb's next pointer and prev pointer is not null, then is it necessary to modify tskb's next pointer and prev pointer ?

I have no idea what you are talking about.  skbs don't have prev and
next pointers.

>     By the way, I want to know the difference between TCP and UDP on
>     sk_buff organization.Does TCP use a chain to organize sk_buff, and
>     will not kfree them until the response come?On the contrary, UDP
>     will kfree the sk_buff when the sk_buff has been sent out? thanks
>     very much!!!

No difference.  The sk_buff doesn't know about them other than knowing
where they start.


	slainte mhath, RGB

-- 
Richard Guy Briggs           --    ~\                 Auto-Free Ottawa! Canada
<www.TriColour.net>            --    \@       @           <www.flora.org/afo/>
No Internet Wiretapping!        --   _\\/\%___\\/\%        Vote! -- <Green.ca>
<www.FreeSWAN.org>_______GTVS6#790__(*)_______(*)(*)_______<www.Marillion.com>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.