summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorjsg <jsg@openbsd.org>2008-06-13 07:31:57 +0000
committerjsg <jsg@openbsd.org>2008-06-13 07:31:57 +0000
commitbf93bbee235802e4d5e9569a62dc10c0e6c97506 (patch)
tree24ccfdfea6845b93d416d2429c7c1f0f456da162 /lib
parentBetter error messages. Include the function causing the problem and do not (diff)
downloadwireguard-openbsd-bf93bbee235802e4d5e9569a62dc10c0e6c97506.tar.xz
wireguard-openbsd-bf93bbee235802e4d5e9569a62dc10c0e6c97506.zip
If you have #if FOO > 0 parts of your softc be
sure to #include "foo.h" in all code that uses the softc, otherwise some object files will have a different idea of how big the softc struct is. This will result in things like part of the softc, say the interrupt handler being overridden by other data. Putting printfs in the main object file will look fine as it has the right idea as to what the size is. It is only after several hours debugging that you start to figure out what the hell is going on. jsing started trying to figure out the problem and got hints from kettenis that it likely wasn't an interrupt problem, after quite a bit of head scratching with joel I eventually spotted the problem. ok reyk@ jsing@
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions