[Snort-devel] linux/sparc BUS ERROR [more info]

Fyodor fygrave at ...1...
Thu Jan 17 10:25:10 EST 2002

> if that's what I think (compiler inproperly generates some 8bit aligned
> instruction for 4 bit field, I'd think it is a compiler bug and pretty
> much that the only way to fix it here would be:
>  if ((p->iph->ip_ver & 0xf0) == 0x40)
>  or something although it looks kind of cumbersome... (and to cover both
> big and little endian architectures:
>  if ((p->iph->ip_ver & IPVER_MASK) == IPVER_VALUE)
>  {
> ...

of course, we should use iph->ip_vhl here (defined as char).

PGP fingerprint = 56DD 1511 DDDA 56D7 99C7  B288 5CE5 A713 0969 A4D1

More information about the Snort-devel mailing list