[IPSEC]: Use IPv6 calling convention as the convention for x->mode->output
authorHerbert Xu <herbert@gondor.apana.org.au>
Wed, 10 Oct 2007 22:44:44 +0000 (15:44 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Wed, 10 Oct 2007 23:55:54 +0000 (16:55 -0700)
The IPv6 calling convention for x->mode->output is more general and could
help an eventual protocol-generic x->type->output implementation.  This
patch adopts it for IPv4 as well and modifies the IPv4 type output functions
accordingly.

It also rewrites the IPv6 mac/transport header calculation to be based off
the network header where practical.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>

No differences found