Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/netinet recompute hlen after calling pfil_run_hooks() in...



details:   https://anonhg.NetBSD.org/src/rev/11e6256a3069
branches:  trunk
changeset: 518324:11e6256a3069
user:      darrenr <darrenr%NetBSD.org@localhost>
date:      Wed Nov 28 09:25:13 2001 +0000

description:
recompute hlen after calling pfil_run_hooks() in case ip_hl was changed.

diffstat:

 sys/netinet/ip_input.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 936e427cd9e6 -r 11e6256a3069 sys/netinet/ip_input.c
--- a/sys/netinet/ip_input.c    Wed Nov 28 09:02:16 2001 +0000
+++ b/sys/netinet/ip_input.c    Wed Nov 28 09:25:13 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ip_input.c,v 1.141 2001/11/13 00:32:38 lukem Exp $     */
+/*     $NetBSD: ip_input.c,v 1.142 2001/11/28 09:25:13 darrenr Exp $   */
 
 /*
  * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -102,7 +102,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ip_input.c,v 1.141 2001/11/13 00:32:38 lukem Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ip_input.c,v 1.142 2001/11/28 09:25:13 darrenr Exp $");
 
 #include "opt_gateway.h"
 #include "opt_pfil_hooks.h"
@@ -541,6 +541,7 @@
                if (m == NULL)
                        return;
                ip = mtod(m, struct ip *);
+               hlen = ip->ip_hl << 2;
        }
 #endif /* PFIL_HOOKS */
 



Home | Main Index | Thread Index | Old Index