aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6/ip6_output.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv6/ip6_output.c')
-rw-r--r--net/ipv6/ip6_output.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/ip6_output.c b/net/ipv6/ip6_output.c
index 2a376b7d91b4..258e3e45f5e0 100644
--- a/net/ipv6/ip6_output.c
+++ b/net/ipv6/ip6_output.c
@@ -971,7 +971,7 @@ int ip6_append_data(struct sock *sk, int getfrag(void *from, char *to,
971 971
972 hh_len = LL_RESERVED_SPACE(rt->u.dst.dev); 972 hh_len = LL_RESERVED_SPACE(rt->u.dst.dev);
973 973
974 fragheaderlen = sizeof(struct ipv6hdr) + (opt ? opt->opt_nflen : 0); 974 fragheaderlen = sizeof(struct ipv6hdr) + rt->u.dst.nfheader_len + (opt ? opt->opt_nflen : 0);
975 maxfraglen = ((mtu - fragheaderlen) & ~7) + fragheaderlen - sizeof(struct frag_hdr); 975 maxfraglen = ((mtu - fragheaderlen) & ~7) + fragheaderlen - sizeof(struct frag_hdr);
976 976
977 if (mtu <= sizeof(struct ipv6hdr) + IPV6_MAXPLEN) { 977 if (mtu <= sizeof(struct ipv6hdr) + IPV6_MAXPLEN) {