[Bug 222746] ipfw: tcpdatalen does not exactly match IPv6 packets.

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Oct 4 08:09:07 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=222746

Andrey V. Elsukov <ae at FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ae at FreeBSD.org

--- Comment #2 from Andrey V. Elsukov <ae at FreeBSD.org> ---
(In reply to Tatsuki Makino from comment #1)
> Created attachment 186894 [details]
> patch for CURRENT
> 
> attachment 186874 [details] reused the variable iplen. But iplen overflows
> when ip6_plen is greater than 65495.
> The new patch does not use the sum of header size and payload size.

You need to handle the case when ip6_plen == 0.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ipfw mailing list