Subject: kern/32677: bad "packed" in file sys/netinet/ip.h
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <yves-emmanuel.jutard@fr.thalesgroup.com>
List: netbsd-bugs
Date: 01/31/2006 16:45:00
>Number:         32677
>Category:       kern
>Synopsis:       bad "packed" in file sys/netinet/ip.h
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jan 31 16:45:00 +0000 2006
>Originator:     Yves-Emmanuel JUTARD
>Release:        3.0.0
>Organization:
THALES Communication
>Environment:
custom environment : recompiled from /src, only some parts of NetBSD are used (TCP/IP stack and some parts of the kernel)
>Description:
in file sys/netinet/ip.h v 1.26
l. 196, one can see that the structure is "__packed;"
Usually, a structure is packed like that "__attribute__((__packed__));" (look at l. 159 for example)

Should'nt l.196 have the same writing ? (Incidentally, my compiler don't like bare "__packed" keyword)

>How-To-Repeat:
look at the source
>Fix:
change line 196 to "} __attribute__((__packed__));"