diff options
author | ae <ae@FreeBSD.org> | 2014-11-13 10:47:24 +0000 |
---|---|---|
committer | ae <ae@FreeBSD.org> | 2014-11-13 10:47:24 +0000 |
commit | d32d19ece5fae779d83ca8b7aa4d844992f2761b (patch) | |
tree | 0c9dbec8ecfc1e9ec014d946f601bcfe6047426d /sys/netipsec | |
parent | c0a51053a441ad84e192ccb6d6b1f73c929a2e76 (diff) | |
download | FreeBSD-src-d32d19ece5fae779d83ca8b7aa4d844992f2761b.zip FreeBSD-src-d32d19ece5fae779d83ca8b7aa4d844992f2761b.tar.gz |
Remove redundant ip6_plen initialization.
MFC after: 1 week
Sponsored by: Yandex LLC
Diffstat (limited to 'sys/netipsec')
-rw-r--r-- | sys/netipsec/xform_ipip.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/sys/netipsec/xform_ipip.c b/sys/netipsec/xform_ipip.c index 830521a..591c44f 100644 --- a/sys/netipsec/xform_ipip.c +++ b/sys/netipsec/xform_ipip.c @@ -488,12 +488,9 @@ ipip_output( ip6o->ip6_flow = 0; ip6o->ip6_vfc &= ~IPV6_VERSION_MASK; ip6o->ip6_vfc |= IPV6_VERSION; - ip6o->ip6_plen = htons(m->m_pkthdr.len); ip6o->ip6_hlim = IPV6_DEFHLIM; ip6o->ip6_dst = saidx->dst.sin6.sin6_addr; ip6o->ip6_src = saidx->src.sin6.sin6_addr; - - /* Fix payload length */ ip6o->ip6_plen = htons(m->m_pkthdr.len - sizeof(*ip6)); switch (tp) { |