guile-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Initial SCTP support for the upcoming 1.6.5 release


From: Michael Tuexen
Subject: Re: Initial SCTP support for the upcoming 1.6.5 release
Date: Wed, 11 Aug 2004 14:29:58 +0200

Dear all,

I have now a complete list of changes (attached as diff files).

I also changed the handling in socket.[ch]: Instead of using
HAVE_SCTP_RECVMSG and HAVE_SCTP_SENDMSG I'm only using
HAVE_SCTPLIB.

I checked Linux, FreeBSD and Solaris and all have both functions
defined in libsctp.

Please let me know if it is possible to include these changes in
the 1.6.5 release.

Best regards
Michael

PS.: The changes have been tested on FC2 Linux and BSD.


Attachment: configure.in.diff
Description: Binary data

Attachment: socket.c.diff
Description: Binary data

Attachment: socket.h.diff
Description: Binary data


On Aug 10, 2004, at 8:26 PM, Michael Tuexen wrote:

Dear all,

it would be very helpful for me (and some others) if the 1.6.5 release
could have some support for SCTP.

To see what kind of change this requires I'm appending the diff files
for libguile/socket.[ch].

What are the changes (for socket.h)?

- add to prototypes for sctp-recvmsg and sctp-sendmsg.
  These changes are #ifdefed.

What are the changes (for socket.c)?

- include <netinet/sctp.h> if available. #ifdefed.
- add two line of code to initialize socket structures to zero.
  (If you do not like these two changes, take them out. They helped
   for some SCTP implementations not doing this in the kernel. At
   least one of them is fixed now).
- add sctp-recvmsg and sctp-sendmsg wrapper functions. These are #ifdefed.
- add some constants, if they are available. #ifdefed.

What is still missing (configure.in)?

- A check for the existence of netinet/sctp.h. If yes, define HAVE_NETINET_SCTP_H - A check if sctp_sendmsg is contained in libsctp. If yes, define HAVE_SCTP_SENDMSG
  an add libsctp to the list of libraries to be used.
- A check if sctp_recvmsg is contained in libsctp. If yes, define HAVE_SCTP_RECVMSG
  an add libsctp to the list of libraries to be used.

(libsctp is located on some platforms in /usr/lib, /usr/local/lib and /usr/local/v6/lib)
This can be done by adding some lines to configure.in.

I will test the configure.in changes and send a patch for configure.in later
this week.

Please let me know if these patches can be included in the upcoming 1.6.5 release.

Thank you very much.

Best regards
Michael

<socket.c.diff><socket.h.diff>
_______________________________________________
Guile-devel mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/guile-devel

reply via email to

[Prev in Thread] Current Thread [Next in Thread]