Be sure to recompute m->m_pkthdr.len after encrypting packet.

PR:		ports/24723
This commit is contained in:
Archie Cobbs 2001-02-06 18:43:21 +00:00
parent a63c3f332c
commit 2a07ab6ab5
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=38046

View file

@ -332,3 +332,22 @@ diff -ur --unidirectional-new-file skipsrc-1.0.orig/skip/freebsd/skip_es.c work.
s = splimp();
if (IF_QFULL(&ipintrq)) {
@@ -2240,7 +2287,8 @@
unsigned short len;
struct ip *hptr;
struct rtentry *rtp;
+ struct mbuf *n;
/*
* recover the route pointer
*/
@@ -2263,6 +2311,9 @@
hptr->ip_len = htons(len); /* total length */
skip_ipsum(hptr);
+
+ for (m->m_pkthdr.len = 0, n = m; n != NULL; n = n->m_next)
+ m->m_pkthdr.len += n->m_len;
(*skip_if->if_output)(skip_if->ifp, m, dst, rtp);
RTFREE(rtp);