- From: Thomas Dreibholz <dreibh AT exp-math.uni-essen.de>
- To: rsplib-discussion AT sctp.de
- Subject: Re: Fw: [RSPlib-Discusssion] unsupported address family
- Date: Tue Feb 25 05:52:04 2003
- List-id: RSPlib Discussions <rsplib-discussion.sctp.de>
- Organization: University of Essen, Institute for Experimental Mathematics
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Am Donnerstag, 20. Februar 2003 05:05 schrieb Marjan Bozinovski:
>
The problem is that it had worked always fine until yesterday. I really
>
hadn't done any change in the software. Moreover, I think that it also
>
showed the same error but with "unsupported address family #6". Can this
>
happen due to a hardware problem? Can a network card be the problem?
I think, there is a problem with the initialization of the sockaddr_*
structure in the program. Try to print out all data of the sockaddr*
structure provided to the ext_connect() call directly before the call.
Example:
printf("sin_family = %d\n",((struct sockaddr_in*)address)->sin_family);
where "address" is the sockaddr* pointer given to ext_connect(). Here, I
assumed you used IPv4 (sockaddr_in). For IPv6, use sockaddr_in6, sin6_family
etc..
Try also to print out the port number and the IP address itself. If all
information given to ext_connect() is correct, we have to make some further
examinations. Otherwise, your program does either not correctly initialize
the sockaddr_* structure (e.g. by leaving fields uninitalized) or some part
of the program overwrites the values set.
I am quite sure that this problem is not caused by a hardware fault.
Best regards
- --
=======================================================================
Dipl.-Inform. Thomas Dreibholz
University of Essen, Room ES210
Inst. for Experimental Mathematics Ellernstraße 29
Computer Networking Technology Group D-45326 Essen/Germany
- -----------------------------------------------------------------------
E-Mail:
dreibh AT exp-math.uni-essen.de
Homepage:
http://www.exp-math.uni-essen.de/~dreibh
=======================================================================
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
iD8DBQE+WvbA32BbsHYPLWURAlJ7AKC5ff/tOaZwTfi2JkqgmuttcMTqgwCgqJqG
Ki7qUH7otm5TodXU562bFK0=
=pikE
-----END PGP SIGNATURE-----
Archive powered by MHonArc 2.6.19+.