Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 78089
b: refs/heads/master
c: b4ce927
h: refs/heads/master
i:
  78087: 57ca414
v: v3
  • Loading branch information
Herbert Xu authored and David S. Miller committed Jan 28, 2008
1 parent ad82e1a commit 408ab7a
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 550ade8432a2a6fbfb48ba7018750b0e8c81e8d0
refs/heads/master: b4ce92775c2e7ff9cf79cca4e0a19c8c5fd6287b
1 change: 0 additions & 1 deletion trunk/include/net/dst.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ struct dst_entry
unsigned long expires;

unsigned short header_len; /* more space at head required */
unsigned short nfheader_len; /* more non-fragment space at head required */
unsigned short trailer_len; /* space to reserve at tail */

u32 metrics[RTAX_MAX];
Expand Down
11 changes: 8 additions & 3 deletions trunk/include/net/ip6_fib.h
Original file line number Diff line number Diff line change
Expand Up @@ -99,16 +99,21 @@ struct rt6_info
u32 rt6i_flags;
u32 rt6i_metric;
atomic_t rt6i_ref;
struct fib6_table *rt6i_table;

struct rt6key rt6i_dst;
struct rt6key rt6i_src;
/* more non-fragment space at head required */
unsigned short nfheader_len;

u8 rt6i_protocol;

struct fib6_table *rt6i_table;

struct rt6key rt6i_dst;

#ifdef CONFIG_XFRM
u32 rt6i_flow_cache_genid;
#endif

struct rt6key rt6i_src;
};

static inline struct inet6_dev *ip6_dst_idev(struct dst_entry *dst)
Expand Down
1 change: 0 additions & 1 deletion trunk/net/ipv4/xfrm4_policy.c
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,6 @@ __xfrm4_bundle_create(struct xfrm_policy *policy, struct xfrm_state **xfrm, int
dst_prev->flags |= DST_HOST;
dst_prev->lastuse = jiffies;
dst_prev->header_len = header_len;
dst_prev->nfheader_len = 0;
dst_prev->trailer_len = trailer_len;
memcpy(&dst_prev->metrics, &x->route->metrics, sizeof(dst_prev->metrics));

Expand Down
5 changes: 3 additions & 2 deletions trunk/net/ipv6/ip6_output.c
Original file line number Diff line number Diff line change
Expand Up @@ -1099,7 +1099,7 @@ int ip6_append_data(struct sock *sk, int getfrag(void *from, char *to,
sk->sk_sndmsg_page = NULL;
sk->sk_sndmsg_off = 0;
exthdrlen = rt->u.dst.header_len + (opt ? opt->opt_flen : 0) -
rt->u.dst.nfheader_len;
rt->nfheader_len;
length += exthdrlen;
transhdrlen += exthdrlen;
} else {
Expand All @@ -1114,7 +1114,8 @@ int ip6_append_data(struct sock *sk, int getfrag(void *from, char *to,

hh_len = LL_RESERVED_SPACE(rt->u.dst.dev);

fragheaderlen = sizeof(struct ipv6hdr) + rt->u.dst.nfheader_len + (opt ? opt->opt_nflen : 0);
fragheaderlen = sizeof(struct ipv6hdr) + rt->nfheader_len +
(opt ? opt->opt_nflen : 0);
maxfraglen = ((mtu - fragheaderlen) & ~7) + fragheaderlen - sizeof(struct frag_hdr);

if (mtu <= sizeof(struct ipv6hdr) + IPV6_MAXPLEN) {
Expand Down
3 changes: 2 additions & 1 deletion trunk/net/ipv6/xfrm6_policy.c
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,8 @@ __xfrm6_bundle_create(struct xfrm_policy *policy, struct xfrm_state **xfrm, int
dst_prev = dst1;

if (xfrm[i]->type->flags & XFRM_TYPE_NON_FRAGMENT)
dst->nfheader_len += xfrm[i]->props.header_len;
((struct rt6_info *)dst)->nfheader_len +=
xfrm[i]->props.header_len;
header_len += xfrm[i]->props.header_len;
trailer_len += xfrm[i]->props.trailer_len;

Expand Down

0 comments on commit 408ab7a

Please sign in to comment.