Date: Wed, 08 Oct 2003 19:56:53 +0900 From: FUKAUMI Naoki <fukaumi@soum.co.jp> To: FreeBSD-gnats-submit@FreeBSD.org Subject: bin/57738: [PATCH] ipmon IPv6 packet total size mis-calculation Message-ID: <1xvfr0c80a.wl@fun.soum.co.jp> Resent-Message-ID: <200310081100.h98B0Raw093670@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 57738 >Category: bin >Synopsis: [PATCH] ipmon IPv6 packet total size mis-calculation >Confidential: no >Severity: critical >Priority: high >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Oct 08 04:00:26 PDT 2003 >Closed-Date: >Last-Modified: >Originator: FUKAUMI Naoki >Release: FreeBSD 4.9-PRERELEASE i386 >Organization: SOUM Corporation >Environment: >Description: IPv6 packet total size in ipmon log output is mis-calculated. >How-To-Repeat: See ipmon log about IPv6 packet. e.g. RIPng packet, 08/10/2003 15:15:06.908001 gif0 @-1:-1 L fe80::xxxx:xxxx:xxxx:xxxx,521 -> ff02::9,521 PR udp len 40 32 OUT 32 is payload length. it should be 72. >Fix: This PR and patch was sent to author few minutes ago. --- ipmon.c.orig 2002-12-06 20:40:26.000000000 +0900 +++ ipmon.c 2003-10-08 19:03:19.000000000 +0900 @@ -991,7 +991,7 @@ p = (u_short)ip6->ip6_nxt; s = (u_32_t *)&ip6->ip6_src; d = (u_32_t *)&ip6->ip6_dst; - plen = ntohs(ip6->ip6_plen); + plen = hl + ntohs(ip6->ip6_plen); #else sprintf(t, "ipv6"); goto printipflog; >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1xvfr0c80a.wl>