Hi Sridhar: On Mon, Oct 30, 2006 at 05:31:24PM -0800, Sridhar Samudrala wrote: > > I think we currently assume atleast the SCTP header and the data > chunk header to be in the skb head. > But we do handle skbs with data in the frag_list. > Not sure about skb's with paged fragments.
You can't assume the chunk header to be in the head. Think about what happens when some malicious person sends you a fragmented SCTP packet. > Does XEN use frag_list or frags array? Xen creates paged frags in domU=>dom0 or domU=>domU traffic. Of course frag_list can always occur as a result of IP fragmentation. > Is there a simple way to simulate incoming packets with transport > headers and data in skb's frag_list/pages without having to use XEN. You can use IP fragments to create them. But the important thing is to work through the code. Basically wherever you see things like skb_pull/skb->data without a preceding pskb_may_pull call, then you have a problem. Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmV>HI~} <[EMAIL PROTECTED]> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt - 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