SCTP Discussions

Text archives Help


Re: Routing socket (was: [SCTP-Discussion] Different implementations of SCTP)


Chronological Thread 
  • From: "Chang Jin-woong" <jwjang AT telcoware.com>
  • To: <discussion AT sctp.de>
  • Subject: Re: Routing socket (was: [SCTP-Discussion] Different implementations of SCTP)
  • Date: Thu Jan 24 17:22:01 2002
  • List-id: SCTP Discussions <discussion.sctp.de>
  • Organization: Telcoware, Inc.

Dear Michael,

I attached "diff -r" result of original pre15 source code against modified
pre15 for Solaris.
It is currently tested under Solaris 2.6 only.

- How to build the modified pre15 under Sun Solaris 2.6.
(1) You should have Sun commercial C compiler (product name is Forte C/C++).
This code is not tested under gcc.
(2) Install autoconf, automake, perl, etc.. (it is ok to download binaries
from sunfreeware.com)
(2) Compile glib-1.2.10 with Sun C compiler and install it under /usr/local.
(Note: gcc-compiled glib-1.2 header files cause errors with Sun C
compiler)
(3) do "setenv CC cc" under csh, or "CC=cc export CC" under sh/ksh.
(Note: path of "cc" should be designated to /opt/SUNWspro/bin/, which is
standard
Sun C compiler installation directory)
(4) do "setenv CFLAGS -xCC" under csh, or "CFLAGS=-xCC export CFLAGS" under
sh/ksh.
(Note: -xCC option causes Sun C compiler to accept C++ style comments.)
(5) do "configure --disable-ipv6" under pre15 top level directory.
(Note: LD_LIBRARY_PATH should have /usr/local/lib, which contains glib
shared libraries)
(6) change directory to sctplib/sctp, and do "make".
It will compile ok.

Chang Jin-woong
jwjang AT telcoware.com

----- "diff -r" result -----
diff -r sctplib-1.0.0-pre15/configure sctplib-1.0.0-pre15sun/configure
4581,4582c4581,4584
< CFLAGS="$CFLAGS -Wall -DSOLARIS -D__sun -DSUN -DSUNOS_5"
< CXXFLAGS="$CXXFLAGS -Wall -DSOLARIS -D__sun -DSUN -DSUNOS_5"
---
> CFLAGS="$CFLAGS -DSOLARIS -D__sun -DSUN -DSUNOS_5"
> CXXFLAGS="$CXXFLAGS -DSOLARIS -D__sun -DSUN -DSUNOS_5"
> # CFLAGS="$CFLAGS -Wall -DSOLARIS -D__sun -DSUN -DSUNOS_5"
> # CXXFLAGS="$CXXFLAGS -Wall -DSOLARIS -D__sun -DSUN -DSUNOS_5"
4584c4586
< LDFLAGS="$LDFLAGS -lsocket -lnsl -lrt -lresolv"
---
> LDFLAGS="$LDFLAGS -lsocket -lnsl -lresolv"
Common subdirectories: sctplib-1.0.0-pre15/sctplib and
sctplib-1.0.0-pre15sun/sctplib
Common subdirectories: sctplib-1.0.0-pre15/sctplib/docs and
sctplib-1.0.0-pre15sun/sctplib/docs
Common subdirectories: sctplib-1.0.0-pre15/sctplib/manual and
sctplib-1.0.0-pre15sun/sctplib/manual
Common subdirectories: sctplib-1.0.0-pre15/sctplib/netlogger and
sctplib-1.0.0-pre15sun/sctplib/netlogger
Common subdirectories: sctplib-1.0.0-pre15/sctplib/programs and
sctplib-1.0.0-pre15sun/sctplib/programs
Common subdirectories: sctplib-1.0.0-pre15/sctplib/sctp and
sctplib-1.0.0-pre15sun/sctplib/sctp
Common subdirectories: sctplib-1.0.0-pre15/sctplib/sctpd and
sctplib-1.0.0-pre15sun/sctplib/sctpd
Common subdirectories: sctplib-1.0.0-pre15/sctplib/sctpd_programs and
sctplib-1.0.0-pre15sun/sctplib/sctpd_programs
Common subdirectories: sctplib-1.0.0-pre15/sctplib/sctpdlib and
sctplib-1.0.0-pre15sun/sctplib/sctpdlib
Common subdirectories: sctplib-1.0.0-pre15/sctplib/socket_programs and
sctplib-1.0.0-pre15sun/sctplib/socket_programs
Common subdirectories: sctplib-1.0.0-pre15/sctplib/socketapi and
sctplib-1.0.0-pre15sun/sctplib/socketapi
Common subdirectories: sctplib-1.0.0-pre15/sctplib/wireless and
sctplib-1.0.0-pre15sun/sctplib/wireless
Common subdirectories: sctplib-1.0.0-pre15/sctplib/docs/en and
sctplib-1.0.0-pre15sun/sctplib/docs/en
Common subdirectories: sctplib-1.0.0-pre15/sctplib/docs/html and
sctplib-1.0.0-pre15sun/sctplib/docs/html
Common subdirectories: sctplib-1.0.0-pre15/sctplib/docs/sctplib and
sctplib-1.0.0-pre15sun/sctplib/docs/sctplib
Common subdirectories: sctplib-1.0.0-pre15/sctplib/docs/socketapi and
sctplib-1.0.0-pre15sun/sctplib/docs/socketapi
Only in sctplib-1.0.0-pre15sun/sctplib/netlogger: Makefile
diff -r sctplib-1.0.0-pre15/sctplib/programs/parser.c
sctplib-1.0.0-pre15sun/sctplib/programs/parser.c
171a172
> break;
231a233
> break;
diff -r sctplib-1.0.0-pre15/sctplib/sctp/adaptation.c
sctplib-1.0.0-pre15sun/sctplib/sctp/adaptation.c
80a81,87
> #if defined(SOLARIS)
> #include <net/if.h>
> #include <net/if_dl.h>
> #include <net/if_types.h>
> #include <net/route.h>
> #include <sys/sockio.h>
> #else
88a96
> #endif
446a455
> #if !defined(SOLARIS)
460a470
> #endif
479a490
> #if !defined(SOLARIS)
483a495
> #endif
522a535
> #if !defined(SOLARIS)
539a553
> #endif
608a623
> #if !defined(SOLARIS)
611a627
> #endif
1020a1037,1039
> #if defined (SOLARIS)
> struct ip *iph;
> #endif
1051a1071
> #if !defined(SOLARIS)
1054a1075
> #endif /* SOLARIS */
1055a1077
> #if defined(SOLARIS)
1059a1082,1088
> rmsghdr.msg_accrights = (caddr_t)0;
> rmsghdr.msg_accrightslen = 0;
> #else
> rmsghdr.msg_iov = &data_vec;
> rmsghdr.msg_iovlen = 1;
> rmsghdr.msg_name = (caddr_t) &from->sin;
> rmsghdr.msg_namelen = sizeof (struct sockaddr_in);
1061a1091
> #endif
1066a1097,1099
> #if defined (SOLARIS)
> iph = (struct ip *)dest;
> #endif
1072a1106,1108
> #if defined(SOLARIS)
> to->sin.sin_addr.s_addr = iph->ip_dst.s_addr;
> #else
1078a1115
> #endif
1551a1589
> #if !defined(SOLARIS)
1562a1601
> #endif
1963a2003,2005
> #if defined(SOLARIS)
> *max_mtu = DEFAULT_MTU_CEILING;
> #else
1974a2017
> #endif
2006c2049,2051
< } else if (toUse->sa_family == AF_INET6){
---
> }
> #ifdef HAVE_IPV6
> else if (toUse->sa_family == AF_INET6){
2008a2054
> #endif
diff -r sctplib-1.0.0-pre15/sctplib/sctp/distribution.c
sctplib-1.0.0-pre15sun/sctplib/sctp/distribution.c
692a693
> #ifdef HAVE_IPV6
695a697
> #endif
707a710
> #ifdef HAVE_IPV6
710a714
> #endif
Only in sctplib-1.0.0-pre15sun/sctplib/sctpd: Makefile
diff -r sctplib-1.0.0-pre15/sctplib/sctpd/sctpd.c
sctplib-1.0.0-pre15sun/sctplib/sctpd/sctpd.c
667c667
<
---
> break;
Only in sctplib-1.0.0-pre15sun/sctplib/sctpd_programs: Makefile
Only in sctplib-1.0.0-pre15sun/sctplib/sctpdlib: Makefile
Only in sctplib-1.0.0-pre15sun/sctplib/socket_programs: Makefile
Only in sctplib-1.0.0-pre15sun/sctplib/socketapi: Makefile
Only in sctplib-1.0.0-pre15sun/sctplib/wireless: Makefile

----- Original Message -----
From: "Tuexen Michael"
<Michael.Tuexen AT icn.siemens.de>
To:
<discussion AT sctp.de>
Sent: Friday, January 25, 2002 12:35 AM
Subject: RE: Routing socket (was: [SCTP-Discussion] Different implementations
of SCTP)


> Dear Chang Jin-woong,
>
> we do not have a Solaris machine for testing and the guys
> who were working on that can not do that anymore.
>
> So if you can provide some patches to get it running on
> Solaris we would like to include them in future releases.
>
> The main problems should be in adaptation.c.
>
> Best regards
> Michael
>
> Michael Tuexen Tel.: +49 89 722 47210
> Siemens AG Fax: +49 89 722 48212
> ICN WN CS SE 5 E-mail:
> Michael.Tuexen AT icn.siemens.de
>
> > -----Original Message-----
> > From: Chang Jin-woong
> > [SMTP:jwjang AT telcoware.com]
> > Sent: Thursday, January 24, 2002 4:10 PM
> > To:
> > discussion AT sctp.de
> > Subject: Re: Routing socket (was: [SCTP-Discussion] Different
> > implementations of SCTP)
> >
> > Hi Andreas,
> >
> > I will test INADDR_ANY case and let you know.
> >
> > BTW, unmodified pre15 codes cannot be cleanly compiled under Solaris 2.6.
> > Especially, adl_receive_message() in "adaptation.c" causes many errors.
> > (for example, Sol2.6 "sys/socket.h" does not have CMSG_SPACE stuffs)
> > And as I have mentioned, routing socket related codes also cause errors.
> >
> > Note: I use Sun Forte 6 C/C++ compiler to build sctplib pre15, since I'm
> > not
> > much experienced with gcc.
> > The following is my test platforms for sctplib pre15. (Machine, O/S,
> > Compiler)
> > - Sun UltraSPARC 10, Solaris 2.6, Forte C/C++ Version 6 update 1
> > - Compaq Integrity S5000 Fault Tolerant Server, NonStop/UX C52, O/S
> > Bundled C compiler
> > - Intel Pentium 3 PC, Caldera OpenLinux 3.1, GCC 2.95.2
> >
> > Chang Jin-woong
> > jwjang AT telcoware.com
> >
> > ----- Original Message -----
> > From: "Andreas Jungmaier"
> > <ajung AT exp-math.uni-essen.de>
> > To:
> > <discussion AT sctp.de>
> > Sent: Friday, January 25, 2002 3:01 AM
> > Subject: Re: Routing socket (was: [SCTP-Discussion] Different
> > implementations of SCTP)
> >
> >
> > > -----BEGIN PGP SIGNED MESSAGE-----
> > > Hash: SHA1
> > >
> > > On Thursday, 24. January 2002 14:23, you wrote:
> > > > Hi,
> > > >
> > > > Does anyone have a detailed documentation on usage of routing socket
> > > > under
> > > > Solaris 2.x? While I compile pre15 on the Sol2.6, I noticed that
> > > > Sol2.6
> > > > does have AF_ROUTE socket but could not found any documentation.
> > > > So I commented out all routing socket related codes from
> > > > adaptation.c, and
> > > > pre15 compiled OK and runs well with echo_tool, echo_server programs.
> > > >
> > >
> > > Hi Chang,
> > >
> > > could you test also what happens if you specify INADDR_ANY as
> > > source address (specified with the -s parameter, i.e. -s 0.0.0.0)
> > > Then the new version pre15 should pick all the locally configured
> > > addresses and send them out with INIT or INIT ACK chunks.
> > > You can see what happens using ethereal (from http://www.ethereal.com )
> > > which should be available for Solaris also.
> > >
> > > If you have any problems or fixes, please mail them to me
> > > directly, for inclusion/correction in version pre16.
> > >
> > > However, I suspect that the solution used with FreeBSD should
> > > also work out under Solaris, or do you get substantial compile
> > > errors?
> > >
> > > Andreas
> > >
> > >
> > >
> > > - --
> > > -
> > > ------------------------------------------------------------------------
> > > Dipl.-Ing. Andreas Jungmaier | _
> > > Computer Networking Technology Group | ASCII ribbon campaign ( )
> > > University of Essen | - against HTML email X
> > > http://www.exp-math.uni-essen.de/~ajung | & vcards / \
> > > -----BEGIN PGP SIGNATURE-----
> > > Version: GnuPG v1.0.6 (GNU/Linux)
> > > Comment: For info see http://www.gnupg.org
> > >
> > > iD8DBQE8UEwSXAsLBNOCSsARAvEyAKCjpThU6z417eFHi8d9JforqULR0wCgvtUd
> > > +GMWGuFZdF/GlFQEOyvaKk4=
> > > =eDui
> > > -----END PGP SIGNATURE-----
> > > _______________________________________________
> > > discussion mailing list
> > > discussion AT sctp.de
> > > http://www.sctp.de/mailman/listinfo/discussion
> > >
> >
> > _______________________________________________
> > discussion mailing list
> > discussion AT sctp.de>
> >
> > http://www.sctp.de/mailman/listinfo/discussion
> _______________________________________________
> discussion mailing list
> discussion AT sctp.de
> http://www.sctp.de/mailman/listinfo/discussion
>





Archive powered by MHonArc 2.6.19+.

Top of page