diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2007-11-14 00:33:32 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 17:53:37 -0500 |
commit | b4ce92775c2e7ff9cf79cca4e0a19c8c5fd6287b (patch) | |
tree | c057ff62b03582493b74005f7959a0207e748468 /net/ipv4/xfrm4_policy.c | |
parent | 550ade8432a2a6fbfb48ba7018750b0e8c81e8d0 (diff) |
[IPV6]: Move nfheader_len into rt6_info
The dst member nfheader_len is only used by IPv6. It's also currently
creating a rather ugly alignment hole in struct dst. Therefore this patch
moves it from there into struct rt6_info.
It also reorders the fields in rt6_info to minimize holes.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/xfrm4_policy.c')
-rw-r--r-- | net/ipv4/xfrm4_policy.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/net/ipv4/xfrm4_policy.c b/net/ipv4/xfrm4_policy.c index cc86fb110dd8..5ee3a2f9fb27 100644 --- a/net/ipv4/xfrm4_policy.c +++ b/net/ipv4/xfrm4_policy.c | |||
@@ -161,7 +161,6 @@ __xfrm4_bundle_create(struct xfrm_policy *policy, struct xfrm_state **xfrm, int | |||
161 | dst_prev->flags |= DST_HOST; | 161 | dst_prev->flags |= DST_HOST; |
162 | dst_prev->lastuse = jiffies; | 162 | dst_prev->lastuse = jiffies; |
163 | dst_prev->header_len = header_len; | 163 | dst_prev->header_len = header_len; |
164 | dst_prev->nfheader_len = 0; | ||
165 | dst_prev->trailer_len = trailer_len; | 164 | dst_prev->trailer_len = trailer_len; |
166 | memcpy(&dst_prev->metrics, &x->route->metrics, sizeof(dst_prev->metrics)); | 165 | memcpy(&dst_prev->metrics, &x->route->metrics, sizeof(dst_prev->metrics)); |
167 | 166 | ||