bin/57738: [PATCH] ipmon IPv6 packet total size mis-calculation
FUKAUMI Naoki
fukaumi at soum.co.jp
Wed Oct 8 04:00:36 PDT 2003
>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:
More information about the freebsd-bugs
mailing list