Subject: kern/32677: bad "packed" in file sys/netinet/ip.h
To: None <,,>
From: None <>
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
THALES Communication
custom environment : recompiled from /src, only some parts of NetBSD are used (TCP/IP stack and some parts of the kernel)
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)

look at the source
change line 196 to "} __attribute__((__packed__));"