- From: Andreas Jungmaier <ajung AT exp-math.uni-essen.de>
- To: discussion AT sctp.de
- Subject: Re: AW: [SCTP-Discussion] Is the timer_list initialised?
- Date: Tue Apr 3 10:59:01 2001
- List-id: SCTP Discussions <discussion.sctp.de>
- Organization: University of Essen, Germany
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello all,
it seem as if I would need to brush up a few things in the
manual. I will try to add some sections there in the next release,
about how to correctly use the library
(I thought that was "clear" from the example programs...)
Regards,
Andreas
>
>
we observed problems like you when we went into the eventLoop without
>
calling sctp_registerInstance() before. As I understand the code, the
>
function sctp_registerInstance() must be the very first SCTP-function
>
called by ULP because the general initialisation is done there.
>
>
>
>
> I've tried to make the SCTP_eventloop work in my code and now i get
>
> everytime a Segementation fault. After firing up GDB, I found out that is
>
> was located in the sctp_eventloop, during function call to
>
> get_msecs_to_nexttimer, DLL_IsListEmpty.
>
> Input to DLL_IsListEmpty is (0x00) which then leads to the segement
>
> fault. This looks like a uninitialised pointer(it should point to NULL or
>
> at least one element should be in the list because it makes a check not
>
> to the pointer but to pointer->head(which in the present situation is
>
> clearly "A bridge too far", even when the pointer itself was NULL))
>
>
>
> BTW is 0x00 equivalent to NULL or it that dependent on OS representation.
>
>
>
> I noticed that there was also a init_timer_list functions, but that as
>
> far as I can see , not a single line of code in SCTP does call that
>
> function to initialise the timer_list.
>
>
>
> So my question is:
>
> - did I forget something in my code for initialising (looked in the
>
> examples didn't bring up anything this far)?
>
> - might there be a error in the SCTP lib?
>
>
>
> Help is always gratefully accepted. Thanks in advance.
>
>
>
> yours sincerly,
>
> Lode
- ----------------------------------------------------------------------------
void hamlet()
{#define question=((bb)||(!bb))}
- ----------------------------------------------------------------------------
Andreas Jungmaier, Dipl.-Ing.
University of Essen email:
ajung AT exp-math.uni-essen.de
Computer Networking Technology Group Tel. : +49 (0201) 183-7636
- ----------------------------------------------------------------------------
PGP Public Key and Fingerprint: see
http://www.exp-math.uni-essen.de/~ajung
- ----------------------------------------------------------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: For info see
http://www.gnupg.org
iD8DBQE6yZA1d2Uw+xBvGUIRAmuhAJ9VGmgEAvFkwwj8QpkUrvC+9jy09gCfUJty
rOL7fdwi31Coobve3XI49b0=
=g/Hu
-----END PGP SIGNATURE-----
Archive powered by MHonArc 2.6.19+.