On Fri, 2006-01-09 at 22:22 +1000, Herbert Xu wrote: > Right, you're testing the receiver side.
both in/out sides (on the receiver); i just count and drop all packets coming back to the sender (the pktgenerator) > In that case I suggest that > you replicate the IPsec transport mode logic in the generator. Tunnel mode you mean, i think. > Just > as pktgen doesn't use net/ipv4/udp.c to generate UDP traffic, it doesn't > really need to use xfrm4_output.c to generate IPsec traffic. > IPsec is slightly different since i need to use state in the core. i.e it is stateful. Nothing that pktgen does today has such requirements. > You can still call down to esp4.c through the type pointer of course. Thats one idea i havent thought of. i.e the code would look like: ----- if (mode == tunnel) err = mytunneloutput (x, skb); else err = x->mode->output(x, skb); if (err) goto error; err = x->type->output(x, skb); -- This is what you are suggesting? I am probably better off going back to creating a dummy dst with just those two fields when in tunnel mode;-> cheers, jamal - 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