bus error in argus_dlpi 2.0.6

William Setzer William_Setzer at ncsu.edu
Wed Dec 10 12:59:11 EST 2003


"Carter Bullard" <carter at qosient.com> writes:
:
: Hey William,
:    There is code to align the packets, if its
: needed.

I don't think I explained the problem well.

The problem is that the `oic' pointer (and `icmp') is sometimes (as an
example) at the memory location 0x389f2 or 0x395e6 (that is, were you
to do math on the pointer location, "oic & 0x2" == 1), so doing a 4
byte access of that pointer causes a bus error.  It's not in the
packets themselves, it's the variable's memory location.

I don't really understand why the compiler isn't aligning the data
properly to begin with; I thought it was supposed to.

: Is this the release candidate code?

Yep.


William



More information about the argus mailing list