ip_output: reload ip_len after running pfil_run_hooks.
pf "fragment reassemble" rule can change it, at least.
This commit is contained in:
parent
f2ba35c661
commit
48bbcc400d
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: ip_output.c,v 1.172 2007/01/04 19:07:03 elad Exp $ */
|
||||
/* $NetBSD: ip_output.c,v 1.173 2007/01/08 04:14:54 yamt Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
|
||||
|
@ -98,7 +98,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: ip_output.c,v 1.172 2007/01/04 19:07:03 elad Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: ip_output.c,v 1.173 2007/01/08 04:14:54 yamt Exp $");
|
||||
|
||||
#include "opt_pfil_hooks.h"
|
||||
#include "opt_inet.h"
|
||||
|
@ -820,6 +820,7 @@ spd_done:
|
|||
|
||||
ip = mtod(m, struct ip *);
|
||||
hlen = ip->ip_hl << 2;
|
||||
ip_len = ntohs(ip->ip_len);
|
||||
#endif /* PFIL_HOOKS */
|
||||
|
||||
m->m_pkthdr.csum_data |= hlen << 16;
|
||||
|
|
Loading…
Reference in New Issue