NetBSD Problem Report #5381
Received: (qmail 19695 invoked from network); 1 May 1998 04:16:58 -0000
Message-Id: <199805010424.VAA11347@skank.juniper.net>
Date: Thu, 30 Apr 1998 21:24:25 -0700 (PDT)
From: dennis@juniper.net
Reply-To: dennis@juniper.net
To: gnats-bugs@gnats.netbsd.org
Subject: header checksum not verified in ip_flow.c fast path
X-Send-Pr-Version: 3.95
>Number: 5381
>Category: kern
>Synopsis: header checksum not verified in ip_flow.c fast path
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: kern-bug-people
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Apr 30 21:20:00 +0000 1998
>Closed-Date: Mon May 04 05:39:34 +0000 1998
>Last-Modified: Mon May 04 05:40:06 +0000 1998
>Originator: Dennis Ferguson
>Release: NetBSD-current April 30 1998
>Organization:
Juniper Networks
>Environment:
>Description:
In netinet/ip_flow.c, ipflow_fastforward() appears to forward packets
without first verifying the IP header checksum. This violates RFC 1812
section 4.2.2.5 and is otherwise not good practice.
>How-To-Repeat:
>Fix:
Verify the IP header checksum. If you want to do it quickly you can
do the 4 (32-bit) or 9 (16-bit) adds required inline rather than
calling in_cksum().
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: thorpej
State-Changed-When: Sun May 3 22:39:34 PDT 1998
State-Changed-Why:
Fixed by making a call to in_cksum() once we've done cheaper checks to
see that we can fast-forward the packet.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.