Answer to the above message1 I had the same problem when trying to port and run openslp on a 64-bit machine. I am doing some research on it and contact you when I get a solution. But on a 32-bit machine it works fine when I tested. You can also try starting slpd by using the service script (service slpd start) When you say ./configure check and analyze the output for the lines which has a ".....no" at the end Thanks and Regards Abhilash -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Sunday, July 15, 2007 12:39 AM To: openslp-users@lists.sourceforge.net Subject: Openslp-users Digest, Vol 12, Issue 1 Send Openslp-users mailing list submissions to openslp-users@lists.sourceforge.net To subscribe or unsubscribe via the World Wide Web, visit https://lists.sourceforge.net/lists/listinfo/openslp-users or, via email, send a message with subject or body 'help' to [EMAIL PROTECTED] You can reach the person managing the list at [EMAIL PROTECTED] When replying, please edit your Subject line so it is more specific than "Re: Contents of Openslp-users digest..." Today's Topics: 1. need for help (user) 2. Problem using DA in slpd (Romain FLACHAIRE) 3. Re: Problem using DA in slpd (Nick Wagner) ---------------------------------------------------------------------- Message: 1 Date: Fri, 29 Jun 2007 14:05:59 +0800 From: user <[EMAIL PROTECTED]> Subject: [Openslp-users] need for help To: Openslp-users@lists.sourceforge.net Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset="iso-8859-1" Hi, I need your help. I am learning the SLP.I have two problems when I use the OpenSLP. I downloaded the openslp-1.2.1.tar.gz from http://www.openslp.org. When I use tar zxvf the openslp-1.2.1.tar.gz cd openslp-1.2.1 ./configure make make install commands to install the openslp-1.2.1.tar.gz on Red Hat Enterprise Linux 4, no error happens. I input slpd to run slpd, no errors. But when I input the command slptool register service:myserv.x://myhost.com then I input the command slptool findsrvs service:myserv.x I can't get any result. The second problem is: when I stoped the slpd, then I set the net.slp.isDA=true and I uncomment this line in /etc/slp.conf. After this, I start the slpd using command slpd then I input slptool getproperty net.slp.isDA the result is still "false". I don't know why. I can see the log file in /var/log/slpd.log *"Using configuration file = /etc/slp.conf"* I also install openslp-1.2.1.tar.gz on RHEL-5-server and other Linux operation system, the problem are the same. I really hope you would give me the answers. Thanks a lot! --factuvation 20070629 -------------- next part -------------- An HTML attachment was scrubbed... ------------------------------ Message: 2 Date: Fri, 6 Jul 2007 11:19:46 +0200 (CEST) From: "Romain FLACHAIRE" <[EMAIL PROTECTED]> Subject: [Openslp-users] Problem using DA in slpd To: openslp-users@lists.sourceforge.net Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain;charset=iso-8859-1 Hello, I use SLP to discover printers in a network. I want to use SLPD as a Directory Agent in some PCs which will be print server... In the slp.conf, I put "net.slp.isDA = true", but when I register a service nearby slpd in an other PC,it launches a DA Discovery and receives a DA Advert. After that, it does anything : NO REGISTRATION is sent........... After long researches and debugging, I found the solution : in slpd_socket.c : In the function SLPDSocketCreateConnected(): When we create the socket stream, with the function socket(); The last parameter was 0(protocol undefined). I put IPPROTO_TCP instead of 0 because for the registration, a TCP connection is made according to the RFC. /* create the stream socket */ if (addr->ss_family == AF_INET) sock->fd = socket(AF_INET,SOCK_STREAM,IPPROTO_TCP); else if (addr->ss_family == AF_INET6) sock->fd = socket(AF_INET6,SOCK_STREAM,IPPROTO_TCP); Moreover in the data sock, they also use 0(family undefined) for the ss_family. I put AF_INET instead of. sock->peeraddr.ss_family = AF_INET; Since that, it works well....... I think it's due ton the fact that before my change, the socket wasn't initialized good !!!! Is people use slpd as DA without these changes??? Otherwise, try to do this and tell me your answers... Thanks Romain ------------------------------ Message: 3 Date: Fri, 6 Jul 2007 10:23:56 -0500 From: "Nick Wagner" <[EMAIL PROTECTED]> Subject: Re: [Openslp-users] Problem using DA in slpd To: openslp-users@lists.sourceforge.net Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset="iso-8859-1" I'm a little confused, as it appears you are using some version of the newer code, but not the latest. And what OS are you using? The latest version does set the ss_family, but still uses 0 in the call to socket(), which has worked on the platforms I worked with in the past. A 0 in that parameter indicates that the network stack should select the system's default for the given combination of the family and type parameters. More importantly, the latest version of the code does not use TCP by default, rather it favors UDP for all point-to-point communication -- so this function wouldn't even be called in the normal case. If those were the only two changes to get things working, I'd suggest trying each change individually to determine what actually fixed the problem. --Nick On 7/6/07, Romain FLACHAIRE <[EMAIL PROTECTED]> wrote: > > Hello, > > I use SLP to discover printers in a network. I want to use SLPD as a > Directory Agent in some PCs which will be print server... > > In the slp.conf, I put "net.slp.isDA = true", but when I register a > service nearby slpd in an other PC,it launches a DA Discovery and receives > a DA Advert. After that, it does anything : NO REGISTRATION is > sent........... > > After long researches and debugging, I found the solution : > > in slpd_socket.c : > > In the function SLPDSocketCreateConnected(): > > When we create the socket stream, with the function socket(); > The last parameter was 0(protocol undefined). > I put IPPROTO_TCP instead of 0 because for the registration, a TCP > connection is made according to the RFC. > > /* create the stream socket */ > if (addr->ss_family == AF_INET) > sock->fd = socket(AF_INET,SOCK_STREAM,IPPROTO_TCP); > else if (addr->ss_family == AF_INET6) > sock->fd = socket(AF_INET6,SOCK_STREAM,IPPROTO_TCP); > > > Moreover in the data sock, they also use 0(family undefined) for the > ss_family. I put AF_INET instead of. > > sock->peeraddr.ss_family = AF_INET; > > > Since that, it works well....... > > I think it's due ton the fact that before my change, the socket wasn't > initialized good !!!! > > Is people use slpd as DA without these changes??? > Otherwise, try to do this and tell me your answers... > > Thanks > Romain > > > ------------------------------------------------------------------------ - > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Openslp-users mailing list > Openslp-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/openslp-users > -------------- next part -------------- An HTML attachment was scrubbed... ------------------------------ ------------------------------------------------------------------------ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ------------------------------ _______________________________________________ Openslp-users mailing list Openslp-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openslp-users End of Openslp-users Digest, Vol 12, Issue 1 ******************************************** ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Openslp-users mailing list Openslp-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openslp-users
Re: [Openslp-users] Contents of Openslp-users digest...
Chakkan, Abhilash Thottakath Mon, 16 Jul 2007 03:29:12 -0700