RE: RFFR
"Alfredo Andres Omella" <[email protected]>
| Newsgroups | gmane.comp.security.libnet |
|---|---|
| Message-ID | <[email protected]> |
IMHO is very important to fix data structures not aligned in memory. On Solaris8 SPARC an Linux RedHat 7.2 (2.4.7-10) "sizeof(struct libnet_stp_conf_hdr)" is 40 bytes and must be 35 bytes. Fortunately libnet_stp_conf_hdr is not used within the libnet code but is susceptible to be used by users (hope nobody do it) :). Do you think is really necessary (the structure, i mean)? :? If you prefere to keep up with the structure one solution could be to use "__attribute__((packed))" but this would face 2 problems: a) Any user will be forced to use gcc (some people use the Sun compiler, not compatible with "attribute" extensions.) b) Packing structures will penalize the libnet performance. Waiting for answers... Alfredo