On Fri, Sep 01, 2006 at 08:56:18AM -0400, jamal wrote:
> 
> 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?

Yes, I suppose you could even replace x->mode directly.

> I am probably better off going back to creating a dummy dst with just
> those two fields when in  tunnel mode;->

Probably.  Although if you write your own output function you could
make it go faster by adapting it to the specifics of pktgen.

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

Reply via email to