kern/124282: INP_PORTHIGH and INP_ONESBCAST share same value

Scott Aitchison saitchison at borderware.com
Wed Jun 4 19:30:01 UTC 2008


>Number:         124282
>Category:       kern
>Synopsis:       INP_PORTHIGH and INP_ONESBCAST share same value
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jun 04 19:30:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Scott Aitchison
>Release:        6.3-STABLE i386
>Organization:
BorderWare Technologies
>Environment:
FreeBSD rush.borderware.com 6.3-RELEASE FreeBSD 6.3-RELEASE #1: Tue Jan 29 14:58:12 EST 2008     root at rush.borderware.com:/usr/obj/usr/src/sys/RUSH  i386
>Description:
If IP_PORTRANGE_HIGH is set as a socket option, it will set INP_PORTHIGH on inp_flags.  However, since INP_ONESBCAST is the same value and is also set in inp_flags, this will cause some problems with UDP checksums on these sockets.

This was fixed previously in kern/87306, however it was reintroduced in kern/99558

>How-To-Repeat:
Call setsockopt() with IP_PORTRANGE_HIGH on a UDP socket.  Send traffic through socket.
>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list