Re: [Openslp-devel] openslp2 getifaddrs not available on Solaris
I never touched solaris, but a quick search shows it wasn't added until 11. I did run across this getifaddrs source on the oracle site -- I hope it helps: https://java.net/projects/solaris/sources/on-src/content/usr/src/lib/libsocket/inet/getifaddrs.c On Fri, Oct 25, 2013 at 8:18 AM, Jim Marshall jim.marsh...@ws-inc.comwrote: We're attempting to use OpenSLP 2.0 on Solaris 10, but it appears that getifaddrs freeifaddrs are not available which is causing the build for OpenSLP to fail slp_iface.c:951: warning: struct ifaddrs declared inside parameter list slp_iface.c:951: warning: its scope is only this definition or declaration, which is probably not what you want slp_iface.c: In function `ifname_to_addr': slp_iface.c:958: warning: implicit declaration of function `getifaddrs' slp_iface.c:960: error: dereferencing pointer to incomplete type slp_iface.c:962: error: dereferencing pointer to incomplete type slp_iface.c:964: error: dereferencing pointer to incomplete type slp_iface.c:966: error: dereferencing pointer to incomplete type slp_iface.c:977: error: dereferencing pointer to incomplete type slp_iface.c:981: warning: implicit declaration of function `freeifaddrs' Anyone run into this and have a fix? -- October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60135991iu=/4140/ostg.clktrk ___ Openslp-devel mailing list Openslp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openslp-devel -- October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60135991iu=/4140/ostg.clktrk___ Openslp-devel mailing list Openslp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openslp-devel
[Openslp-devel] iphone and android SA?
Every once in a while, I come across someone wanting to have SA functionality on their iphone or android. Usually we try to find a solution to the application/protocol so UA functionality is all that is needed, but it comes up enough that I thought it might be nice to discuss solutions as a group. As always, the issue is port 427 requiring root access. It is configurable in openslp, but moving this to a higher port number means everyone has to know the new port and be configured to that port. What if the application required that a DA is online? It would appear that SAs could find and register with the DA, even though they can't respond to any multicast. Any other ideas? --Nick -- Own the Future-Intelreg; Level Up Game Demo Contest 2013 Rise to greatness in Intel's independent game demo contest. Compete for recognition, cash, and the chance to get your game on Steam. $5K grand prize plus 10 genre and skill prizes. Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d___ Openslp-devel mailing list Openslp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openslp-devel
Re: [Openslp-devel] What platforms are being tested?
I'll try to get some testing done tomorrow on OSX, but I can't guarantee it. On the other hand, I've checked in the change that allows it to build again on OS X... --Nick On Wed, Dec 12, 2012 at 9:55 PM, Jim Marshall jim.marsh...@wbemsolutions.com wrote: Once I get some free time I will test the latest tree on CentOS 5.5, Solaris 10 (sparc and intel), Windows and possibly AIX 5.3. Hopefully this will be done by the end of this week. Jim Nick Wagner wrote: I've discovered that my OS X setup at work isn't currently going to work for testing openslp. Before I try to set something up at home, I thought I'd check if anyone else was testing Mac? Is anyone hitting the Windows version? While it was great that the work Jim Marshall did spurred on this release, it would have been nice if this work was in place _before_ he did all of his testing. :) --Nick -- LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial Remotely access PCs and mobile devices and provide instant support Improve your efficiency, and focus on delivering more value-add services Discover what IT Professionals Know. Rescue delivershttp://p.sf.net/sfu/logmein_12329d2d ___ Openslp-devel mailing listOpenslp-devel@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/openslp-devel -- Jim Marshall Sr. Software Engineer [image: WS] http://ws-inc.com/ WSLogo.jpg-- LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial Remotely access PCs and mobile devices and provide instant support Improve your efficiency, and focus on delivering more value-add services Discover what IT Professionals Know. Rescue delivers http://p.sf.net/sfu/logmein_12329d2d___ Openslp-devel mailing list Openslp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openslp-devel
Re: [Openslp-devel] Considering adding SuSE extensions to OpenSLP 2.0
If it can be enabled at runtime or even compile time, I'd be ok with it. How would attributes fit into it, if at all? --Nick On Tue, Nov 13, 2012 at 11:55 AM, John Calcote john.calc...@gmail.comwrote: I’m currently adding the Suse patches (those that haven’t made it in previously) to the repository in preparation for the 2.0 release. I started applying the smaller ones first – mostly security review patches - and then realized it would probably be better to add them in the same order they’re specified in the suse rpm spec file to provide the best context for applying later patches in the list. (I would normally always apply them in order, but these patches were written for a different code base – 1.2 – so they have to be applied manually anyway.) ** ** Patch number 3 (in the 23 patch set) is the Suse extension patch. They’ve added multicast dns functionality to openSLP. ** ** http://en.wikipedia.org/wiki/Multicast_DNS ** ** My first reaction to this (a few years ago) was to reject it, but I’m rethinking it now – it might be a nice 2.0 feature (and Suse’s been using it for years so it’s well tested). ** ** Question: Is anyone out there opposed to OpenSLP gathering entries from, and pushing entries into, the mdns space? I don’t want to add this if it’s going to cause significant problems for SLP users. Also consider the possibility of making it both a compile-in option, and runtime-enabled via config options. ** ** John -- Monitor your physical, virtual and cloud infrastructure from a single web console. Get in-depth insight into apps, servers, databases, vmware, SAP, cloud infrastructure, etc. Download 30-day Free Trial. Pricing starts from $795 for 25 servers or applications! http://p.sf.net/sfu/zoho_dev2dev_nov ___ Openslp-devel mailing list Openslp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openslp-devel -- Monitor your physical, virtual and cloud infrastructure from a single web console. Get in-depth insight into apps, servers, databases, vmware, SAP, cloud infrastructure, etc. Download 30-day Free Trial. Pricing starts from $795 for 25 servers or applications! http://p.sf.net/sfu/zoho_dev2dev_nov___ Openslp-devel mailing list Openslp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openslp-devel
Re: [Openslp-devel] 2.0 release imminent
Sorry, the tracker issue was for the SLP scope bug I'm looking at. The windows service dereg bug was the one Matthew brought up http://sourceforge.net/tracker/?func=detailaid=3582209group_id=1730atid=101730 --Nick On Tue, Nov 6, 2012 at 11:52 AM, John Calcote john.calc...@gmail.comwrote: Nick, ** ** Are you sure you posted the correct reference? I don’t see anything in that tracker issue that’s related to a windows service dereg bug. Or did you mean to refer to this one an another one implied by a previous conversation? ** ** Thanks, John ** ** *From:* nwagner...@gmail.com [mailto:nwagner...@gmail.com] *On Behalf Of *Nick Wagner *Sent:* Tuesday, November 06, 2012 10:32 AM *To:* John Calcote *Cc:* OpenSLP Devel Mailing List *Subject:* Re: [Openslp-devel] 2.0 release imminent ** ** How do people feel about http://sourceforge.net/tracker/?func=detailaid=1751139group_id=1730atid=101730? I can take some time to look at it today before the release. Unfortunately, I'm not in a location where I can easily look at the windows service deregister bug. ** ** --Nick ** ** ** ** ** ** On Tue, Nov 6, 2012 at 11:11 AM, John Calcote john.calc...@gmail.com wrote: I’m about to create a 2.0 release of openslp – any issues we need to cover yet? Speak now or forever hold your peace. :) John -- LogMeIn Central: Instant, anywhere, Remote PC access and management. Stay in control, update software, and manage PCs from one command center Diagnose problems and improve visibility into emerging IT issues Automate, monitor and manage. Do more in less time with Central http://p.sf.net/sfu/logmein12331_d2d ___ Openslp-devel mailing list Openslp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openslp-devel ** ** -- LogMeIn Central: Instant, anywhere, Remote PC access and management. Stay in control, update software, and manage PCs from one command center Diagnose problems and improve visibility into emerging IT issues Automate, monitor and manage. Do more in less time with Central http://p.sf.net/sfu/logmein12331_d2d___ Openslp-devel mailing list Openslp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openslp-devel
Re: [Openslp-devel] 2.0 release imminent
I've made the change for that bug. 1695 On Tue, Nov 6, 2012 at 12:57 PM, Me dajo...@gmail.com wrote: Thanks John. Available at ftp://ftp.novell.com/outgoing/openslp-1.2.0-172.22.1.src.rpm with md5 checksum: 494ed3b4f2453fbf2b47ab48707b1173 This file includes the base openslp 1.2.0 used and then the patch files to be applied to it. One of the files in there shows the order of the patch files to be applied and I think they include relevant bug numbers and descriptions. I can get more details from the bugs if you'd like. I can also e-mail it, but wasn't sure if cluttering the list with files was appropriate. AB On Tue, Nov 6, 2012 at 10:51 AM, John Calcote john.calc...@gmail.comwrote: Aaron, ** ** Please send me the patches again if you can find them. I’ll look them over and see which ones are still applicable (haven’t been fixed yet, and the patch location still exists in a form to which the patch can be applied). ** ** --john ** ** *From:* Me [mailto:dajo...@gmail.com] *Sent:* Tuesday, November 06, 2012 10:38 AM *To:* OpenSLP Devel Mailing List *Subject:* Re: [Openslp-devel] 2.0 release imminent ** ** Once upon a time I posted the DIFFs from Novell for all of the openslp 1.x changes. I know 2.x has had a ton of things rewritten, but since Novell had found/fixed all of those bugs has anybody who understands C been able to glance through those changes to ensure the problems are not present in the 2.x code? If the code is needed again I can probably get access to the patch files and post them for whomever; I just hate to have bugs lingering when somebody else has already gone through the work of analyzing and fixing them in a way that may work out in 2.x as well as 1.x. ** ** On Tue, Nov 6, 2012 at 10:32 AM, Nick Wagner ne...@wingedbeast.org wrote: How do people feel about http://sourceforge.net/tracker/?func=detailaid=1751139group_id=1730atid=101730? I can take some time to look at it today before the release. Unfortunately, I'm not in a location where I can easily look at the windows service deregister bug. ** ** --Nick ** ** ** ** ** ** On Tue, Nov 6, 2012 at 11:11 AM, John Calcote john.calc...@gmail.com wrote: I’m about to create a 2.0 release of openslp – any issues we need to cover yet? Speak now or forever hold your peace. :) John ** ** -- LogMeIn Central: Instant, anywhere, Remote PC access and management. Stay in control, update software, and manage PCs from one command center Diagnose problems and improve visibility into emerging IT issues Automate, monitor and manage. Do more in less time with Central http://p.sf.net/sfu/logmein12331_d2d ___ Openslp-devel mailing list Openslp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openslp-devel ** ** -- LogMeIn Central: Instant, anywhere, Remote PC access and management. Stay in control, update software, and manage PCs from one command center Diagnose problems and improve visibility into emerging IT issues Automate, monitor and manage. Do more in less time with Central http://p.sf.net/sfu/logmein12331_d2d ___ Openslp-devel mailing list Openslp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openslp-devel ** ** -- LogMeIn Central: Instant, anywhere, Remote PC access and management. Stay in control, update software, and manage PCs from one command center Diagnose problems and improve visibility into emerging IT issues Automate, monitor and manage. Do more in less time with Central http://p.sf.net/sfu/logmein12331_d2d ___ Openslp-devel mailing list Openslp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openslp-devel -- LogMeIn Central: Instant, anywhere, Remote PC access and management. Stay in control, update software, and manage PCs from one command center Diagnose problems and improve visibility into emerging IT issues Automate, monitor and manage. Do more in less time with Central http://p.sf.net/sfu/logmein12331_d2d___ Openslp-devel mailing list Openslp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openslp-devel
Re: [Openslp-devel] slptool hangs on AIX?
I've added Jim's AIX building patches, and I tweaked openslp.misc/debian/init.d to have the -- -p /var/run/$NAME.pid set correctly. Version 1694. Other than that, I think the only potentially outstanding thing is Gavin's code to handle network changes. Which I have not looked at, and will probably require more testing. Does the group want to look at them, or move on with 2.0? Or are there other patches/bugs we've missed? --Nick On Thu, Nov 1, 2012 at 2:49 PM, Jim Marshall jim.marsh...@wbemsolutions.com wrote: Are there any other changes that are being waited on? I've run our tests and they all work, so I would like to propose we roll out 2.0. Thanks John Calcote wrote: Fixed in revision 1693 – SLP atomics now return the correct (new) value on AIX. ** ** John ** ** *From:* John Calcote [mailto:john.calc...@gmail.comjohn.calc...@gmail.com] *Sent:* Tuesday, October 30, 2012 12:14 PM *To:* Jim Marshall *Cc:* openslp-devel@lists.sourceforge.net *Subject:* Re: [Openslp-devel] slptool hangs on AIX? ** ** Hi Jim, On Tue, Oct 30, 2012 at 10:54 AM, Jim Marshall jim.marsh...@wbemsolutions.com wrote: Hi, Been testing the AIX build I have and the agent is working fine but when I invoke slptool it basically hangs. Stepping into the code we get to libslp_handle.c line 66 if (SLPAtomicInc(s_OpenSLPHandleCount) == 1) The SLPAtomicInc function does this on AIX: return (intptr_t)fetch_and_add((atomic_p)pn, 1); This is the cause of the hang, because fetch_and_add [...] returns the original value of the variable (from the man page), in this case '0'. When this happens the code enters a while loop ** ** ** ** Well, that's kind of useless, isn't it? It should be replaced with: ** ** return (intptr_t)fetch_and_add((atomic_p)pn, 1) + 1; ** ** The idea here is to atomically increment the value stored at pn. If two threads try to do it at once, then they could both read the value, increment it and both write the same value back out. The use of atomic_add should cause both threads to actually increment the value, regardless of how in-sync they are on their attempts to update the value. ** ** It's only a side-effect (that we take advantage of) that most atomic incs return the newly updated value. Since the AIX version returns the original value, and we're guaranteed to read/update/write atomically when we add 1 to that original value, then we can assume that the value we get back PLUS ONE is our actual desired return value. ** ** I'll fix it. ** ** John -- Jim Marshall Sr. Software Engineer [image: WS] http://ws-inc.com/ -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_sfd2d_oct ___ Openslp-devel mailing list Openslp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openslp-devel WSLogo.jpg-- LogMeIn Central: Instant, anywhere, Remote PC access and management. Stay in control, update software, and manage PCs from one command center Diagnose problems and improve visibility into emerging IT issues Automate, monitor and manage. Do more in less time with Central http://p.sf.net/sfu/logmein12331_d2d___ Openslp-devel mailing list Openslp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openslp-devel
[Openslp-devel] Has anyone built a debian package before?
I took a quick look at the Debian start-stop script, and it does need to use the -p option when running slpd. But then I noticed that it was still referring to /usr/sbin/slpd, when I believe we now install to /usr/local/bin. Do we need to make the start-stop script use the new directory? do we need to change the whole debian subdirectory in openslp.misc? --Nick -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_sfd2d_oct___ Openslp-devel mailing list Openslp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openslp-devel
Re: [Openslp-devel] [Openslp-users] slpd seems to hijack the port I'm using in my application
Someone on the devel list with more experience working with linux daemons will need to make this fix. And they should patch the debian start-stop script as well as earlier explained in this email chain. We should do this before the code freeze. Robert, thanks for finding these issues! --Nick On Wed, Oct 17, 2012 at 10:30 AM, Robert Hegner rheg...@hsr.ch wrote: Ok I found out what's wrong. And I would consider this as a bug in OpenSLP. I'm a Linux newbie but The Linux Programming Interface by Michael Kerrisk (a great book, by the way) helped me understand what's going on. You can see in my first post that when slpd listens to the same port as my application, it also uses the same file descriptor. As I wrote earlier, I use system() to run the start/stop script of slpd. According to Kerrisk's book, system() is typically implemented using a combination of fork() (which copies all open file descriptors) and exec() (which does not close any file descriptors). So slpd inherits my open file descriptors when I start it from within my application. In chapter 37 of his book, Kerrisk also describes the seven steps for daemonizing a program. Step 6 is: Close all open file descriptors that the daemon has inherited from its parent. (A daemon may need to keep certain inherited file descriptors open, [...] And he also provides some example code showing how to accomplish this: maxfd = sysconf(_SC_OPEN_MAX); if (maxfd == -1) maxfd = BD_MAX_CLOSE; // 8192 in his example for (fd = 0; fd maxfd; fd++) close(fd); I had a look at the OpenSLP source code and I found that Daemonize() (in slpd_main.c) does not close all open file descriptors (it only closes descriptors 0 to 2 under some condition). I tried to close all file descriptors in Daemonize() but it seemed to cause some problems. I guess that slpd has already opened some of its own sockets at that time, which are then being closed again. But adding for (i = 3; i 8192; i++) close(i); at the beginning of main() solves all my problems :) Something like this should be in Daemonize() and not at the beginning of main(), but I guess someone who is familiar with the initialization code of slpd should have a look at this. I hope this change will make it into Release of version 2.0 Robert -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_sfd2d_oct___ Openslp-devel mailing list Openslp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openslp-devel
Re: [Openslp-devel] [PATCHv2] change MAX_SLP_IFACES to be a run-time configurable value
I have no objections to the MAX_SLP_IFACES patch. If people are ok with it, I can merge it. -- Don't let slow site performance ruin your business. Deploy New Relic APM Deploy New Relic app performance management and know exactly what is happening inside your Ruby, Python, PHP, Java, and .NET app Try New Relic at no cost today and get our sweet Data Nerd shirt too! http://p.sf.net/sfu/newrelic-dev2dev___ Openslp-devel mailing list Openslp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openslp-devel
Re: [Openslp-devel] [PATCH] change MAX_SLP_IFACES to be a run-time configurable value
I'm back from vacation, now, so my responses can be a bit more timely. :) I haven't attempted to run this code. But I did look over the code I had an issue with earlier, and the key is that SLPDDatabaseReg in slpd_database.c uses a local variable named 'ifaces', and doesn't seem to properly initialize that structure. It will only show up when using IPv6. When I did the original code review, I grepped for all usages of the SLPIfaceInfo class, and this was the only red flag I saw. Sorry if I wasn't more explicit earlier. --Nick On Thu, Sep 27, 2012 at 12:28 PM, David Stevens dlstev...@us.ibm.comwrote: nwagner...@gmail.com wrote on 09/27/2012 12:03:33 PM: I'm away from my devel machine right now, but from what I remember, you changed the slpifaces structure from having two static arrays of SLP_MAX_IFACES to two pointers. It appeared to me at the time that SLPDDatabaseReg wasn't allocating memory for those pointers when initializing the slpifaces structure. This is done in SLPDIncomingInit() and in SLPDIncomingReinit(), which is called after SLPDPropertyInit() so they have the current config file value for slp_max_ifaces before they are allocated. And the old ones, if there, are freed in SLPDIncomingReinit() before allocating the new ones. Because the test programs don't use these, they have their own allocations in the main programs. (e.g., main() in slp_iface.c) Did you see a problem while running it, or was it something you were concerned about from code browsing? I could declare them as static, external or just explicitly initialize the pointers to NULL which would fault on any indirection before initialization, but I believe I've covered all the cases in the original. +-DLS -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://ad.doubleclick.net/clk;258768047;13503038;j? http://info.appdynamics.com/FreeJavaPerformanceDownload.html ___ Openslp-devel mailing list Openslp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openslp-devel -- Got visibility? Most devs has no idea what their production app looks like. Find out how fast your code is with AppDynamics Lite. http://ad.doubleclick.net/clk;262219671;13503038;y? http://info.appdynamics.com/FreeJavaPerformanceDownload.html___ Openslp-devel mailing list Openslp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openslp-devel
Re: [Openslp-devel] [PATCH] change MAX_SLP_IFACES to be a run-time configurable value
I'm away from my devel machine right now, but from what I remember, you changed the slpifaces structure from having two static arrays of SLP_MAX_IFACES to two pointers. It appeared to me at the time that SLPDDatabaseReg wasn't allocating memory for those pointers when initializing the slpifaces structure. I didn't see other errors, but I'm a little careful when it comes to changing arrays to pointers -- a typical way for errors to be introduced. Otherwise, the patch looked good. My apologies if I'm mis-remembering the issue, or if I wasn't reading the patch correctly in the first place! --Nick On Wed, Sep 26, 2012 at 11:25 AM, David Stevens dlstev...@us.ibm.comwrote: nwagner...@gmail.com wrote on 09/19/2012 12:07:00 PM: It appears that SLPDDatabaseReg doesn't initialize slpifaces correctly. Please double-check all uses of SLPIfaceGetInfo and the SLPIfaceInfo structure. Nick, I looked at this and it appears to be working for me. I set a different value in the config file and I see the new value when I get to SLPDDatabaseReg; when I don't set it in the config file, I see the default of 100. Can you tell me what you tried that was broken? +-DLS -- How fast is your code? 3 out of 4 devs don\\\'t know how their code performs in production. Find out how slow your code is with AppDynamics Lite. http://ad.doubleclick.net/clk;262219672;13503038;z? http://info.appdynamics.com/FreeJavaPerformanceDownload.html ___ Openslp-devel mailing list Openslp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openslp-devel -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://ad.doubleclick.net/clk;258768047;13503038;j? http://info.appdynamics.com/FreeJavaPerformanceDownload.html___ Openslp-devel mailing list Openslp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openslp-devel
Re: [Openslp-devel] slptool displays multiple attributes when only 1 should be
Just out of curiosity, if the slp.conf is in your Windows or Windows/system directory, is there any difference? I'm wondering if somehow the service isn't looking at the command line arguments. But that's a bit of a long shot. On Thu, Sep 20, 2012 at 2:22 PM, Jim Marshall jim.marsh...@wbemsolutions.com wrote: My account is setup as an administrator type. I was also using a command prompt which was run as administrator, however; I disabled UAC all together (well set it to 'never notify me') and see the same behavior. Jim Nick Wagner wrote: Do you have UserAccessControl turned on in windows 7? We might be running into some service permissions thing. --Nick On Thu, Sep 20, 2012 at 1:15 PM, Jim Marshall jim.marsh...@wbemsolutions.com wrote: Nick, When I start slpd as follows the directory agent does not show up with slptool slpd -start -c .\slp.conf -l slp_dafail.txt C:\Temp\openslp\win32\Win32\Debugslptool findsrvs service:directory-agent C:\Temp\openslp\win32\Win32\Debug however; if I add the '-d' option to the command line it works. In other words when starting slpd as follows results in the directory agent showing up and then doing the attribute test works as expected. slpd -start -c .\slp.conf -d -l slp_daworked.txt C:\Temp\openslp\win32\Win32\Debugslptool findsrvs service:directory-agent service:directory-agent://127.0.0.1,65535 service:directory-agent://192.168.5.101,65535 -- Got visibility? Most devs has no idea what their production app looks like. Find out how fast your code is with AppDynamics Lite. http://ad.doubleclick.net/clk;262219671;13503038;y? http://info.appdynamics.com/FreeJavaPerformanceDownload.html___ Openslp-devel mailing list Openslp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openslp-devel
Re: [Openslp-devel] slptool displays multiple attributes when only 1 should be
When you have it on, does slptool find directory agents appropriately? --Nick On Thu, Sep 20, 2012 at 9:54 AM, Jim Marshall jim.marsh...@wbemsolutions.com wrote: What specifically do you want in terms of routing table? Below is the IPv4 table output from the 'route print' command. In terms of it being a SA or DA, I set net.slp.isDA = true in slp.conf. I stopped the SLP service and restarted it with the slp.conf and I see the same behavior. Jim IPv4 Route Table ==**==** === Active Routes: Network DestinationNetmask Gateway Interface Metric 0.0.0.0 0.0.0.0 192.168.5.1192.168.5.101 10 127.0.0.0255.0.0.0 On-link 127.0.0.1306 127.0.0.1 255.255.255.255 On-link 127.0.0.1306 127.255.255.255 255.255.255.255 On-link 127.0.0.1306 169.254.0.0 255.255.0.0 On-link 169.254.37.23276 169.254.37.23 255.255.255.255 On-link 169.254.37.23276 169.254.255.255 255.255.255.255 On-link 169.254.37.23276 192.168.5.0255.255.255.0 On-link 192.168.5.101266 192.168.5.101 255.255.255.255 On-link 192.168.5.101266 192.168.5.255 255.255.255.255 On-link 192.168.5.101266 192.168.19.0255.255.255.0 On-link 192.168.19.1276 192.168.19.1 255.255.255.255 On-link 192.168.19.1276 192.168.19.255 255.255.255.255 On-link 192.168.19.1276 224.0.0.0240.0.0.0 On-link 127.0.0.1306 224.0.0.0240.0.0.0 On-link 192.168.5.101266 224.0.0.0240.0.0.0 On-link 192.168.19.1276 224.0.0.0240.0.0.0 On-link 169.254.37.23276 255.255.255.255 255.255.255.255 On-link 127.0.0.1306 255.255.255.255 255.255.255.255 On-link 192.168.5.101266 255.255.255.255 255.255.255.255 On-link 192.168.19.1276 255.255.255.255 255.255.255.255 On-link 169.254.37.23276 ==**==** === Persistent Routes: None -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://ad.doubleclick.net/clk;258768047;13503038;j? http://info.appdynamics.com/FreeJavaPerformanceDownload.html___ Openslp-devel mailing list Openslp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openslp-devel
Re: [Openslp-devel] slptool displays multiple attributes when only 1 should be
Do you have UserAccessControl turned on in windows 7? We might be running into some service permissions thing. --Nick On Thu, Sep 20, 2012 at 1:15 PM, Jim Marshall jim.marsh...@wbemsolutions.com wrote: Nick, When I start slpd as follows the directory agent does not show up with slptool slpd -start -c .\slp.conf -l slp_dafail.txt C:\Temp\openslp\win32\Win32\Debugslptool findsrvs service:directory-agent C:\Temp\openslp\win32\Win32\Debug however; if I add the '-d' option to the command line it works. In other words when starting slpd as follows results in the directory agent showing up and then doing the attribute test works as expected. slpd -start -c .\slp.conf -d -l slp_daworked.txt C:\Temp\openslp\win32\Win32\Debugslptool findsrvs service:directory-agent service:directory-agent://127.0.0.1,65535 service:directory-agent://192.168.5.101,65535 C:\Temp\openslp\win32\Win32\Debug Jim Nick Wagner wrote: When you have it on, does slptool find directory agents appropriately? --Nick On Thu, Sep 20, 2012 at 9:54 AM, Jim Marshall jim.marsh...@wbemsolutions.com wrote: What specifically do you want in terms of routing table? Below is the IPv4 table output from the 'route print' command. In terms of it being a SA or DA, I set net.slp.isDA = true in slp.conf. I stopped the SLP service and restarted it with the slp.conf and I see the same behavior. Jim -- Jim Marshall Sr. Software Engineer [image: WS] http://ws-inc.com/ WSLogo.jpg-- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://ad.doubleclick.net/clk;258768047;13503038;j? http://info.appdynamics.com/FreeJavaPerformanceDownload.html___ Openslp-devel mailing list Openslp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openslp-devel
Re: [Openslp-devel] slptool displays multiple attributes when only 1 should be
Sorry to take so long with this. I tried the trunk code on my machine (xp with vs2010), and couldn't replicate the problem. Do you have a DA running? Could this be dropping to multicast somehow? --Nick On Mon, Sep 17, 2012 at 10:49 AM, Jim Marshall jim.marsh...@wbemsolutions.com wrote: Hi, I am testing the trunk on Windows 7, code was built with Visual Studio 11 (Beta of VS 2012). When doing a simple test to register a service and then get its attributes I am getting back multiple 'entries' when only 1 such entry exists. This appears to be an issue with the 2.0 slptool because if I use the older slptool 1.0.9.a on the same registration I only get a single attribute back. slptool example: C:\Temp\openslp\win32\Win32\Debugslptool -v slptool version = 2.0.0 libslp version = 2.0.0 libslp configuration file = (null) C:\Temp\openslp\win32\Win32\Debugslptool.exe register service:myserv.x://myhost.com (attr1=val1),(attr2=val2) C:\Temp\openslp\win32\Win32\Debugslptool findsrvs service:myserv.x service:myserv.x://myhost.com,10785 C:\Temp\openslp\win32\Win32\Debugslptool findattrs service:myserv.x://myhost.com (attr1=val1),(attr2=val2) (attr1=val1),(attr2=val2) (attr1=val1),(attr2=val2) C:\Temp\openslp\win32\Win32\Debugslptool findattrs service:myserv.x://myhost.com attr1 (attr1=val1) (attr1=val1) (attr1=val1) Server Info: C:\Temp\openslp\win32\Win32\Debugslpd -v slpd version: 2.0.0 compile options: debugging:disabled predicates: enabled slpv1 compatability: enabled slpv2 security: disabled C:\Temp\linux64\openslp\win32\Win32\Debugslpd -stop C:\Temp\linux64\openslp\win32\Win32\Debugslpd -start -- Jim Marshall Sr. Software Engineer [image: WS] http://ws-inc.com/ -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Openslp-devel mailing list Openslp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openslp-devel WSLogo.jpg-- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ Openslp-devel mailing list Openslp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openslp-devel
Re: [Openslp-devel] [PATCH] change MAX_SLP_IFACES to be a run-time configurable value
It appears that SLPDDatabaseReg doesn't initialize slpifaces correctly. Please double-check all uses of SLPIfaceGetInfo and the SLPIfaceInfo structure. Otherwise, I'm fine with this patch --Nick On Wed, Sep 12, 2012 at 10:49 AM, gowrishankar gowrishanka...@linux.vnet.ibm.com wrote: Hi David, On Wednesday 12 September 2012 07:39 PM, David Stevens wrote: Gowri, Thanks for the review. gowrishankargowrishanka...@linux.vnet.ibm.com wrote on 09/11/2012 10:21:32 PM: +# +# If operating as an SA or DA, this specifies the maximum number of interfaces +# that can be active. (Default is 100) MAX_IFACE_LEN is 20. My patch does not use or change MAX_IFACE_LEN. I don't understand this comment. Are you suggesting a code change? Oops, you are correct David. please ignore this suggestion. Thanks, Gowri Shankar thanks, +-DLS -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Openslp-devel mailing list Openslp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openslp-devel -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ Openslp-devel mailing list Openslp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openslp-devel
Re: [Openslp-devel] slptool displays multiple attributes when only 1 should be
On Wed, Sep 19, 2012 at 1:14 PM, Nick Wagner ne...@wingedbeast.org wrote: If there is no DA, these would be multicast requests. I think what's happening is that slptool does the request for attributes multiple times via multicast, and getting a response each time. I'm apparently not in a position to recreate this -- could you sniff it? --Nick On Wed, Sep 19, 2012 at 12:25 PM, Jim Marshall jim.marsh...@wbemsolutions.com wrote: Nick Wagner wrote: Sorry to take so long with this. I tried the trunk code on my machine (xp with vs2010), and couldn't replicate the problem. Do you have a DA running? Could this be dropping to multicast somehow? I believe we only have SA's running on our network. Doing a slpd findsrvs service:directory-agent returns nothing but 'service:service-agent' returns 8 entries. How can I tell if it is dropping to multicast? Thanks -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ Openslp-devel mailing list Openslp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openslp-devel
Re: [Openslp-devel] Building issue on Linux running on Windows
Silly question, but did you make sure there were firewall exclusions for SLPd and slptool? That still gets me now and then... --Nick On Fri, Sep 14, 2012 at 12:25 PM, Jim Marshall jim.marsh...@wbemsolutions.com wrote: Ian Norton wrote: slp.h: SLP_NETWORK_TIMED_OUT = -19 Are you running slpd of the right version? Yes slpd 2.0 is running and as an aside the 1.x version runs fine C:\Temp\openslp\win32\Win32\Debugslpd -install Service Location Protocol installed. C:\Temp\openslp\win32\Win32\Debugslpd.exe -version slpd version: 2.0.0 compile options: debugging:disabled predicates: enabled slpv1 compatability: enabled slpv2 security: disabled On 14 September 2012 17:55, Ian Norton inor...@gmail.com wrote: I seem to recall that -19 means that you couldnt contact the slpd process. On 14 September 2012 16:56, Jim Marshall jim.marsh...@wbemsolutions.comwrote: Hi, We've written a test script to test the basic functionality of OpenSLP (basic sanity check stuff), it works fine with the older SLP (1.0.9a). I grabbed the trunk and built it on Windows 7 (with VS 2011 Beta), it builds fine and slpd installs and runs. using slptool to perfrom a findsrvs operation works, however; when I try to manually register a service with slptool I get error -19: C:\Temp\openslp\win32\Win32\Debugslptool register service:myserv.x://myhost.com (attr1=val1),(attr2=val2) errorcode: -19 What am I doing wrong? Additionally I brought the svn tree to a Linux (CentOS 5.5, 64bit) machine, it will not build. I run autogen.sh and it spits out an error regarding AC_USE_SYSTEM_EXTENSIONS but the configure script is generated. When I run the configure script I get the following error: ./configure --prefix=/home/jmars/trees/openslp/ configure: error: cannot find install-sh or install.sh in . ./.. ./../.. autoconf version: 2.59 automake version: 1.96 libtool version: 1.5.22 GNU Make version: 3.81 any thoughts on what I am doing wrong here? Thank you -- mail Jim Marshall Sr. Software Engineer WS http://ws-inc.com/ -- Got visibility? Most devs has no idea what their production app looks like. Find out how fast your code is with AppDynamics Lite. http://ad.doubleclick.net/clk;262219671;13503038;y? http://info.appdynamics.com/FreeJavaPerformanceDownload.html ___ Openslp-devel mailing list Openslp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openslp-devel -- Jim Marshall Sr. Software Engineer [image: WS] http://ws-inc.com/ -- Got visibility? Most devs has no idea what their production app looks like. Find out how fast your code is with AppDynamics Lite. http://ad.doubleclick.net/clk;262219671;13503038;y? http://info.appdynamics.com/FreeJavaPerformanceDownload.html ___ Openslp-devel mailing list Openslp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openslp-devel WSLogo.jpg-- Got visibility? Most devs has no idea what their production app looks like. Find out how fast your code is with AppDynamics Lite. http://ad.doubleclick.net/clk;262219671;13503038;y? http://info.appdynamics.com/FreeJavaPerformanceDownload.html___ Openslp-devel mailing list Openslp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openslp-devel
Re: [Openslp-devel] [Openslp-users] OpenSLP 2.0 release?
Well, on the openslp devel archive for june, it looks like there's an outstanding patch and a defect in slp_predicate.c and slpd_predicate.c. Mainly, however, I think we need to be sure that the release has some reasonable testing on the various versions (Windows, Linux, OS X), and we should then pull the trigger on a release. What do other developers think? --Nick On Wed, Aug 22, 2012 at 9:17 AM, Jim Marshall jim.marsh...@wbemsolutions.com wrote: Is there list of what needs to be done? We may have some spare cycles to work on them. Jim Nick Wagner wrote: I'm not sure right now. There appears to be one or two outstanding items on this mailing list, and everyone seems to be busy. I brought the same issue up a couple of weeks ago, and then my priorities were shifted at work, so I let it drop. --Nick On Mon, Aug 20, 2012 at 10:40 AM, Jim Marshall jim.marsh...@wbemsolutions.com wrote: Hi, We're in the midst of planning our next major release and would like to have OpenSLP 2.0 as part of that product. We would prefer to have a 2.0 release rather then a BETA or snapshot, what needs to be done to make that happen? Jim -- Jim Marshall Sr. Software Engineer [image: WS] http://ws-inc.com/ -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Openslp-users mailing list openslp-us...@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openslp-users -- Jim Marshall Sr. Software Engineer [image: WS] http://ws-inc.com/ WSLogo.jpg-- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ Openslp-devel mailing list Openslp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openslp-devel
Re: [Openslp-devel] memdup function namespace conflict
No objections here. On Mon, Jan 30, 2012 at 11:33 AM, Dan Streetman ddstr...@ieee.org wrote: I opened a feature request to fix a namespace conflict, for the function 'memdup' which is used in both openslp and net-snmp: https://sourceforge.net/tracker/?func=detailaid=3481708group_id=1730atid=351730 This seems to be a easy change to openslp, anyone see any problems with adding it? -- Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 ___ Openslp-devel mailing list Openslp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openslp-devel -- Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2___ Openslp-devel mailing list Openslp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openslp-devel
Re: [Openslp-devel] Unable to find SLP Services using SLPFindSrvs function
Wireshark is your friend. I'll walk you through the trace. Packets 6, 7, 11, and 12 are all SLP (SRVLOC) packets. They are being multicast from your machine to the SLP multicast address/port. Packets 6 11 are libslp looking for directory agents -- if you open up one of the packets you can see that the service type list is service:directory-agent. But packets 7 12 show a problem. They are requesting acn.esta when they should be requesting service:acn.esta. Make sure the string you are passing to the SLPFindSrvs call is service:acn.esta and we can work from there. --Nick On Fri, Sep 23, 2011 at 7:33 AM, JanakiRam Palepu palepujanaki...@gmail.com wrote: Thanks Nick for your valuable suggestions. I've tried the possible ways suggested. Please find my inline replies. On Thu, Sep 22, 2011 at 8:27 PM, Nick Wagner ne...@wingedbeast.orgwrote: Whenever I this sort of thing happens, there are a few steps I take: 1) Check your firewall and make sure it is either off or your application is properly excepted. This has solved countless problems for me. Firewall on Mac was turned-off by default. I got the results ( published earlier with/wihtout SLPD existence ) were tested when Firewall was turned-Off. I dont think this option applies to my case. 2) If you are expecting unicast traffic between two devices, make sure they can send packets to each other. Are they both plugged in? Are their IP configurations correct? Can they ping each other? I can ping the entertainment device from my mac and subnet mask for device as well as Mac are set to same value. I am sure that my network settings are properly set to communicate with device. 3) Get a wireshark trace of what's going on in your network. This will help you determine if no multicast is leaving your machine, if no other app is responding to your requests, or if something else is going on. The wireshark display filter keyword for SLP is srvloc. I've downloaded the Wireshark Tool from their website as per your advice and able to capture the log in my network. Please find the attached log. As am new to this tool , i could not interpret/understand the results shown in log. It would be great if you can help me to understand the issue. My Mac IP : 192.168.1.97 Entertainment Device IP : 192.168.1.999 4) If you think it is your application, either in a debugger or with sprinkled test messages trace your code execution to see how it operates. In your case, see if SLPFindSrvs actually gets to the point where it sends a multicast packet, or if it somehow returns early. I've investigated further on the calls being made internally when SLPFindSrvs is being called. I suspect that NetworkMcastRqstRply is unable to communicate futher hence its not able to detect the SLP Service inabsence of Slpd. I am attaching the SLP Log for your reference. Please provide your analysis on the reports i have provided. Thanks in Advance. Regards, Janakiram -- All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2dcopy2___ Openslp-devel mailing list Openslp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openslp-devel
Re: [Openslp-devel] Unable to find SLP Services using SLPFindSrvs function
Whenever I this sort of thing happens, there are a few steps I take: 1) Check your firewall and make sure it is either off or your application is properly excepted. This has solved countless problems for me. 2) If you are expecting unicast traffic between two devices, make sure they can send packets to each other. Are they both plugged in? Are their IP configurations correct? Can they ping each other? 3) Get a wireshark trace of what's going on in your network. This will help you determine if no multicast is leaving your machine, if no other app is responding to your requests, or if something else is going on. The wireshark display filter keyword for SLP is srvloc. 4) If you think it is your application, either in a debugger or with sprinkled test messages trace your code execution to see how it operates. In your case, see if SLPFindSrvs actually gets to the point where it sends a multicast packet, or if it somehow returns early. --Nick On Thu, Sep 22, 2011 at 7:04 AM, JanakiRam Palepu palepujanaki...@gmail.com wrote: Yes, i investigated the functions being called and some of them were named with Multicast. Please find the functions being called for SLPFindSrvs. SLPFindSrvs - ProcessSrvRqst - NetworkMcastRqstRply,- NetworkMcastRqstRply - CollateToSLPSrvURLCallback *MI_NOT_SUPPORTED is not defined anywhere in the code. But conditional macros are using it as not defined then adds logic if defined does nothing.* ** Please help me to discover slp services using UA. Cheers, Janakiram On Thu, Sep 22, 2011 at 12:12 AM, Nick Wagner ne...@wingedbeast.orgwrote: For user agent functionality, libslp does first look for directory agents to connect to and query. But in the absence of a DA, libslp attempts multicast requests. Do you see such multicast requests on the wire? Is MI_NOT_SUPPORTED undefined (If defined, multicast is not compiled in)? --Nick On Wed, Sep 21, 2011 at 12:17 PM, JanakiRam Palepu palepujanaki...@gmail.com wrote: Hi Nick, My Requirement is to have a iOS Application to discover the enter devices without using Slpd ( as iOS cannot run processes such as Slpd due to its Sanbox nature ). In our environment we have a configured Mac ( having iOS Simulator ) and Entertainment Devices only in our LAN. After compiling the code , make install produced a static library as well as header file and couple of resources ( slp.conf slp.spi ) . We have created a Sample iOS application which uses libslp.a ( static library ) , resources ( slp.conf slp.spi ) and header file ( slp.h ). Using the functions exposed in slp.h , we are making calls to SLPFindSrvs function. *Steps :* 1. Created a SLP Handle using SLPOpen. 2, After successful creation , calling SLPFindSrvs function with following Parameters. a) srvType : service:acn.esta b) scopelist : ACN-DEFAULT OR NULL c) filter : NULL 3. SLPFindSrvs Callback function gets called always but with varied results. a) When Slpd Co-existed in Mac OS , Callback function discovered the services available. b) In the absence of Slpd , Callback function gets called only once with errorCode value SLP_LAST_CALL whic does not discover the service at all. I suspect the libslp functions are heavily depend on Slpd existence. Am i wrong ??. Please help me to analyze the behavior of this function based on slpd existence. Thanks, Janakiram On Tue, Sep 20, 2011 at 8:31 PM, Nick Wagner ne...@wingedbeast.orgwrote: Hmm.. Could you get a wireshark trace of this? I'm curious to see if any multicast is happening. Oh, and I'm glad to see the service:acn.esta in the example. I work at ETC. :) --Nick On Tue, Sep 20, 2011 at 9:31 AM, sudheer dantuluri dantuluri.sudh...@gmail.com wrote: Hi, We have successfully compiled the openSLP2.0beta2 source code for iOS and with your instruction written a sample application to find out list of services available on the local network -- to do this we have used slp.h and libslp.a files created by GNU Make process. PFA Example file for the sample code. My Environment Setup has an iPhone Simulator and one Entertainment Device ( Wireless Audio Receiver exposing SLP service ), only these two are connected in LAN. The Same code (SLPFindSrvs callback function ) behaves differently when its executed along with/without slpd tool. Output when *SLPD is running* when Sample Code is Executed. - *2011-09-20 17:29:49.739 openSLPExample[6105:207] Service Type = service:acn.esta* *2011-09-20 17:29:49.739 openSLPExample[6105:207] Host Identification = * *2011-09-20 17:29:49.740 openSLPExample[6105:207] Port Number = 0* *2011-09-20 17:29:49.740 openSLPExample[6105:207] Family = IP* *2011-09-20 17:29:49.740 openSLPExample[6105:207] URL Remainder = DD200C02--11DD-A000-000EDDCC* * * Output when *SLPD is NOT RUNNING* when Sample
Re: [Openslp-devel] Unable to find SLP Services using SLPFindSrvs function
For user agent functionality, libslp does first look for directory agents to connect to and query. But in the absence of a DA, libslp attempts multicast requests. Do you see such multicast requests on the wire? Is MI_NOT_SUPPORTED undefined (If defined, multicast is not compiled in)? --Nick On Wed, Sep 21, 2011 at 12:17 PM, JanakiRam Palepu palepujanaki...@gmail.com wrote: Hi Nick, My Requirement is to have a iOS Application to discover the enter devices without using Slpd ( as iOS cannot run processes such as Slpd due to its Sanbox nature ). In our environment we have a configured Mac ( having iOS Simulator ) and Entertainment Devices only in our LAN. After compiling the code , make install produced a static library as well as header file and couple of resources ( slp.conf slp.spi ) . We have created a Sample iOS application which uses libslp.a ( static library ) , resources ( slp.conf slp.spi ) and header file ( slp.h ). Using the functions exposed in slp.h , we are making calls to SLPFindSrvs function. *Steps :* 1. Created a SLP Handle using SLPOpen. 2, After successful creation , calling SLPFindSrvs function with following Parameters. a) srvType : service:acn.esta b) scopelist : ACN-DEFAULT OR NULL c) filter : NULL 3. SLPFindSrvs Callback function gets called always but with varied results. a) When Slpd Co-existed in Mac OS , Callback function discovered the services available. b) In the absence of Slpd , Callback function gets called only once with errorCode value SLP_LAST_CALL whic does not discover the service at all. I suspect the libslp functions are heavily depend on Slpd existence. Am i wrong ??. Please help me to analyze the behavior of this function based on slpd existence. Thanks, Janakiram On Tue, Sep 20, 2011 at 8:31 PM, Nick Wagner ne...@wingedbeast.orgwrote: Hmm.. Could you get a wireshark trace of this? I'm curious to see if any multicast is happening. Oh, and I'm glad to see the service:acn.esta in the example. I work at ETC. :) --Nick On Tue, Sep 20, 2011 at 9:31 AM, sudheer dantuluri dantuluri.sudh...@gmail.com wrote: Hi, We have successfully compiled the openSLP2.0beta2 source code for iOS and with your instruction written a sample application to find out list of services available on the local network -- to do this we have used slp.h and libslp.a files created by GNU Make process. PFA Example file for the sample code. My Environment Setup has an iPhone Simulator and one Entertainment Device ( Wireless Audio Receiver exposing SLP service ), only these two are connected in LAN. The Same code (SLPFindSrvs callback function ) behaves differently when its executed along with/without slpd tool. Output when *SLPD is running* when Sample Code is Executed. - *2011-09-20 17:29:49.739 openSLPExample[6105:207] Service Type = service:acn.esta* *2011-09-20 17:29:49.739 openSLPExample[6105:207] Host Identification = * *2011-09-20 17:29:49.740 openSLPExample[6105:207] Port Number = 0* *2011-09-20 17:29:49.740 openSLPExample[6105:207] Family = IP* *2011-09-20 17:29:49.740 openSLPExample[6105:207] URL Remainder = DD200C02--11DD-A000-000EDDCC* * * Output when *SLPD is NOT RUNNING* when Sample Code is Executed. - *2011-09-20 17:31:13.968 openSLPExample[6137:207] *** *2011-09-20 17:31:13.969 openSLPExample[6137:207] MySLPSrvURLCallback Error Code is = 1* *2011-09-20 17:31:13.970 openSLPExample[6137:207] *** * * I suspect my sample code is internally taking the help of SLPD ( meaning DA) to discover the slp service exposed by the entertainment device. So thats why its showing the output only when the slpd is running. Problem with my environment is in iOS we cannot run the process such as slpd as its sanboxed. I can only use the static library and header file to discover the slp services. Please help me to resolve the issues. Thanks Sudheer -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2dcopy1 ___ Openslp-devel mailing list Openslp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openslp-devel -- All the data continuously generated in your IT infrastructure contains a definitive record of customers
Re: [Openslp-devel] Unable to find SLP Services using SLPFindSrvs function
Hmm.. Could you get a wireshark trace of this? I'm curious to see if any multicast is happening. Oh, and I'm glad to see the service:acn.esta in the example. I work at ETC. :) --Nick On Tue, Sep 20, 2011 at 9:31 AM, sudheer dantuluri dantuluri.sudh...@gmail.com wrote: Hi, We have successfully compiled the openSLP2.0beta2 source code for iOS and with your instruction written a sample application to find out list of services available on the local network -- to do this we have used slp.h and libslp.a files created by GNU Make process. PFA Example file for the sample code. My Environment Setup has an iPhone Simulator and one Entertainment Device ( Wireless Audio Receiver exposing SLP service ), only these two are connected in LAN. The Same code (SLPFindSrvs callback function ) behaves differently when its executed along with/without slpd tool. Output when *SLPD is running* when Sample Code is Executed. - *2011-09-20 17:29:49.739 openSLPExample[6105:207] Service Type = service:acn.esta* *2011-09-20 17:29:49.739 openSLPExample[6105:207] Host Identification = * *2011-09-20 17:29:49.740 openSLPExample[6105:207] Port Number = 0* *2011-09-20 17:29:49.740 openSLPExample[6105:207] Family = IP* *2011-09-20 17:29:49.740 openSLPExample[6105:207] URL Remainder = DD200C02--11DD-A000-000EDDCC* * * Output when *SLPD is NOT RUNNING* when Sample Code is Executed. - *2011-09-20 17:31:13.968 openSLPExample[6137:207] *** *2011-09-20 17:31:13.969 openSLPExample[6137:207] MySLPSrvURLCallback Error Code is = 1* *2011-09-20 17:31:13.970 openSLPExample[6137:207] *** * * I suspect my sample code is internally taking the help of SLPD ( meaning DA) to discover the slp service exposed by the entertainment device. So thats why its showing the output only when the slpd is running. Problem with my environment is in iOS we cannot run the process such as slpd as its sanboxed. I can only use the static library and header file to discover the slp services. Please help me to resolve the issues. Thanks Sudheer -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2dcopy1___ Openslp-devel mailing list Openslp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openslp-devel
Re: [Openslp-devel] Unable to find SLP Services using SLPFindSrvs function
And what SLP scope they're using in the requests. ACN devices typically live on the ACN-DEFAULT scope. --Nick On Tue, Sep 20, 2011 at 10:01 AM, Nick Wagner ne...@wingedbeast.org wrote: Hmm.. Could you get a wireshark trace of this? I'm curious to see if any multicast is happening. Oh, and I'm glad to see the service:acn.esta in the example. I work at ETC. :) --Nick On Tue, Sep 20, 2011 at 9:31 AM, sudheer dantuluri dantuluri.sudh...@gmail.com wrote: Hi, We have successfully compiled the openSLP2.0beta2 source code for iOS and with your instruction written a sample application to find out list of services available on the local network -- to do this we have used slp.h and libslp.a files created by GNU Make process. PFA Example file for the sample code. My Environment Setup has an iPhone Simulator and one Entertainment Device ( Wireless Audio Receiver exposing SLP service ), only these two are connected in LAN. The Same code (SLPFindSrvs callback function ) behaves differently when its executed along with/without slpd tool. Output when *SLPD is running* when Sample Code is Executed. - *2011-09-20 17:29:49.739 openSLPExample[6105:207] Service Type = service:acn.esta* *2011-09-20 17:29:49.739 openSLPExample[6105:207] Host Identification = * *2011-09-20 17:29:49.740 openSLPExample[6105:207] Port Number = 0* *2011-09-20 17:29:49.740 openSLPExample[6105:207] Family = IP* *2011-09-20 17:29:49.740 openSLPExample[6105:207] URL Remainder = DD200C02--11DD-A000-000EDDCC* * * Output when *SLPD is NOT RUNNING* when Sample Code is Executed. - *2011-09-20 17:31:13.968 openSLPExample[6137:207] *** *2011-09-20 17:31:13.969 openSLPExample[6137:207] MySLPSrvURLCallback Error Code is = 1* *2011-09-20 17:31:13.970 openSLPExample[6137:207] *** * * I suspect my sample code is internally taking the help of SLPD ( meaning DA) to discover the slp service exposed by the entertainment device. So thats why its showing the output only when the slpd is running. Problem with my environment is in iOS we cannot run the process such as slpd as its sanboxed. I can only use the static library and header file to discover the slp services. Please help me to resolve the issues. Thanks Sudheer -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2dcopy1___ Openslp-devel mailing list Openslp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openslp-devel
Re: [Openslp-devel] Segfault Seen In Latest Openslp
Yes, I didn't spot what you were doing until after I sent the email. I've never done that trick inside of a union -- I wouldn't think so, but is it possible some compiler optimization is getting in the way? Varun, what kind of compiler/environment are you using? --Nick On Mon, Aug 1, 2011 at 1:51 PM, Richard Morrell r.morr...@hotmail.comwrote: This seems to be in the code I added while at Thales. I left there recently, and am just getting myself set back up to have access to the source and mailing lists from home rather than work. Any further information on this ? See comments below. On 07/28/2011 03:40 AM, Varun Chandramohan wrote: On Thursday, July 28, 2011 12:51:47 am Nick Wagner wrote: The SLPDPredicateTreeNode structure does seem to have a problem. If we left the larger-sized array, guards should still be added to ensure that neither strncpy will step off the end of the member 'storage'. Others may have differing opinions, but I'd change storage to be a char* and alloc it to the right size (tag_len + value_len + terminating nulls), as long as we make sure that it's freed appropriately. We're allocating all the nodes in the tree anyway. --Nick I think we can do that. If all are ok with it, can we make this change? It seems that the extra space for the attributes is already taken care of in allocating the memory for ppNode (slpd_predicate:1645). So Nick's proposed change shouldn't be necessary. But we still need to find out why it doesn't work properly yet... Agreed. The assumption was that storage was allocated as the last structure member at the end of the structure, and is initially two bytes long to allow for the trailing NUL characters at the end of each of the tag and value strings. The space allocated is increased by lhs_len+rhs_len to allow for the storage of the strings. This is so that you don't need to worry about separately allocating and de-allocating storage for the (usually short) tag and value strings. It works fine for me using the latest trunk source built on Linux Mint 7 x86_64. Can we get any more information from the failure ? How repeatable is it ? Can you generate a core file and get information like the values of lhs_len and rhs_len, operator, and *ppNode at the point of failure using gdb ? Can we be certain that the 'storage' field is actually exactly at the end of the SLPPredicateTreeNode structure? Even if it wasn't, it shouldn't cause a segmentation fault, although it would overwrite any structure members allocated following it. BR, Roel - Varun On Wed, Jul 27, 2011 at 1:27 AM, Varun Chandramohan varunc@... wrote: ** Hi Folks, The test team reported a bug. Iam pasting the bug analysis. They seem to have found the problem as well with a temporary fix. However i they want our opinion on the fix. Please advice. Using the following command: slptool findsrvs service:test$ID (foo=value1) this will generat the overflow in createPredicateParseTree doing an strncpy - line 1656 slpd_predicate.c When reading the comments around operator it appears it is using the operator 2 characters as a place to copy the attribute name. The attribute name can be very large. This is the code: /* Finished with operator now - just use as temporary pointer to assist with copying the * attribute name (lhs) and required value (rhs) into the node */ operator = (*ppNode)-nodeBody.comparison.storage; strncpy(operator, lhs, lhs_len); operator[lhs_len] = '\0'; operator is now the pointer of storage in: slpd_predicate.h typedef struct __SLPDPredicateTreeNode { SLPDPredicateTreeNodeType nodeType; struct __SLPDPredicateTreeNode *next; /* next node in a combination */ union { struct __SLPDPredicateLogicalBody { struct __SLPDPredicateTreeNode *first; } logical; struct __SLPDPredicateComparisonBody { size_t tag_len; char *tag_str; size_t value_len; char *value_str; char storage[2]; } comparison; } nodeBody; } SLPDPredicateTreeNode; Copying of attributes onto 2char array fails though doesn't fail in older builds so I am not sure if build options or strictness has changed. Since there were no cleanup routines if the pointer was malloced, I just increased -- storage[200] and the testcase runs without fail and the area will get freed with the structure. Is this the best way out? Regards, Varun -- Got Input? Slashdot Needs You. Take our quick survey online. Come on, we don't ask for help often. Plus, you'll get a chance
Re: [Openslp-devel] Segfault Seen In Latest Openslp
The SLPDPredicateTreeNode structure does seem to have a problem. If we left the larger-sized array, guards should still be added to ensure that neither strncpy will step off the end of the member 'storage'. Others may have differing opinions, but I'd change storage to be a char* and alloc it to the right size (tag_len + value_len + terminating nulls), as long as we make sure that it's freed appropriately. We're allocating all the nodes in the tree anyway. --Nick On Wed, Jul 27, 2011 at 1:27 AM, Varun Chandramohan var...@linux.vnet.ibm.com wrote: ** Hi Folks, The test team reported a bug. Iam pasting the bug analysis. They seem to have found the problem as well with a temporary fix. However i they want our opinion on the fix. Please advice. Using the following command: slptool findsrvs service:test$ID (foo=value1) this will generat the overflow in createPredicateParseTree doing an strncpy - line 1656 slpd_predicate.c When reading the comments around operator it appears it is using the operator 2 characters as a place to copy the attribute name. The attribute name can be very large. This is the code: /* Finished with operator now - just use as temporary pointer to assist with copying the * attribute name (lhs) and required value (rhs) into the node */ operator = (*ppNode)-nodeBody.comparison.storage; strncpy(operator, lhs, lhs_len); operator[lhs_len] = '\0'; operator is now the pointer of storage in: slpd_predicate.h typedef struct __SLPDPredicateTreeNode { SLPDPredicateTreeNodeType nodeType; struct __SLPDPredicateTreeNode *next; /* next node in a combination */ union { struct __SLPDPredicateLogicalBody { struct __SLPDPredicateTreeNode *first; } logical; struct __SLPDPredicateComparisonBody { size_t tag_len; char *tag_str; size_t value_len; char *value_str; char storage[2]; } comparison; } nodeBody; } SLPDPredicateTreeNode; Copying of attributes onto 2char array fails though doesn't fail in older builds so I am not sure if build options or strictness has changed. Since there were no cleanup routines if the pointer was malloced, I just increased -- storage[200] and the testcase runs without fail and the area will get freed with the structure. Is this the best way out? Regards, Varun -- Got Input? Slashdot Needs You. Take our quick survey online. Come on, we don't ask for help often. Plus, you'll get a chance to win $100 to spend on ThinkGeek. http://p.sf.net/sfu/slashdot-survey ___ Openslp-devel mailing list Openslp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openslp-devel -- Got Input? Slashdot Needs You. Take our quick survey online. Come on, we don't ask for help often. Plus, you'll get a chance to win $100 to spend on ThinkGeek. http://p.sf.net/sfu/slashdot-survey___ Openslp-devel mailing list Openslp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openslp-devel
Re: [Openslp-devel] SLP User Agent for iPad/iPhone
I haven't done any ipad development, does anyone else on the list have experience? I know some people have been able to build and get the client side working on android. One potential issue I can see is the fact that SLP uses port 427, which traditionally requires the process to have root access to open. --Nick On Thu, Jul 14, 2011 at 3:44 AM, sudheer dantuluri dantuluri.sudh...@gmail.com wrote: Hi Team, I'm an iPhone/iPad developer and I'm trying to develop an application which can identify devices which announces their services using SLP in a network. I've googled in may sites but couldn't find any help. It would be great if someone of you can help me out as how my iPad application can act as a User Agent role of SLP. Is there any specific framework or library for iPad where i can use it to get the devices in the network which acts as Service Agents role of SLP. I'm new to this SLP concept. So, please spare me and provide me some kind of solution. Thanks in advance. Have a nice day. Sudheer -- AppSumo Presents a FREE Video for the SourceForge Community by Eric Ries, the creator of the Lean Startup Methodology on Lean Startup Secrets Revealed. This video shows you how to validate your ideas, optimize your ideas and identify your business strategy. http://p.sf.net/sfu/appsumosfdev2dev ___ Openslp-devel mailing list Openslp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openslp-devel -- AppSumo Presents a FREE Video for the SourceForge Community by Eric Ries, the creator of the Lean Startup Methodology on Lean Startup Secrets Revealed. This video shows you how to validate your ideas, optimize your ideas and identify your business strategy. http://p.sf.net/sfu/appsumosfdev2dev___ Openslp-devel mailing list Openslp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openslp-devel
Re: [Openslp-devel] libslp interface question
Committed in 1643 On Tue, Sep 7, 2010 at 11:00 PM, Varun Chandramohan var...@linux.vnet.ibm.com wrote: Hi Nick, I got the test result from my team, they have already tested slpd and it seems to give no issues with this change. I think its good to go upstream, unless someone has any objection. Regards, Varun On Wednesday, September 08, 2010 06:39:44 am Varun Chandramohan wrote: Hi Nick, Give me one more day, i have tested slptool which uses libslp but not really slpd. I think it must not cause any issue, but let me test anyway. Since we are only picking up scope from the returned scopeid of the call it must not cause any issue. I will however run a few tests. If you want me to run any specific tests let me know. Thanks. Regards, Varun On Tuesday, September 07, 2010 11:56:41 pm Nick Wagner wrote: It looks straightforward enough. Both the library and slpd use the affected function -- have you tested both of them? --Nick 2010/9/7 Varun Chandramohan var...@linux.vnet.ibm.com Hi Nick, I investigated this issue and found the solution. This not a config problem. Although it can be fixed by changing routing table, it is not the recommended way. I observed other projects get pass this limitation using the scope id. So here is my solution for the problem. Let me know what you think. https://sourceforge.net/tracker/?func=detailaid=3061054group_id=1730atid=101730 Regards, Varun On Monday, August 30, 2010 09:31:14 am Varun Chandramohan wrote: It is a config issue, but the situation is if we cannot change routing table as we do not have perm in a system is it possible to run slptool on LL? Its possible but with the routing limitation. We know the LL of the system where slpd is running, but to send a request we have 2 interface and we have to tell slptool to use one of the interfaces to send the request. -u wont work as we are not specifying the local address, rather the address of the system running slpd. I have not tested with -i though? So if i specify the ip of the interface to use will it work? Let me test it myself. Regards, Varun On Saturday, August 28, 2010 12:28:54 am Nick Wagner wrote: Sorry for not responding sooner. I think there's still something I'm missing here that makes me feel it's some sort of config issue rather than code issue. What if they used the ip address of eth1, rather than the loopback address, in their -u, or used the -i option of slptool? --Nick On Thu, Aug 26, 2010 at 9:26 PM, Varun Chandramohan var...@linux.vnet.ibm.com wrote: Hi Nick, Is it such a bad idea to introduce optional -I option like the way it id done in ping6 for slptool? I understand that SLPNetworkCreateDatagram() is not a lib function but can it not take in additional parameter as interface? If interface is specified we bind or the functionality is same as before. Is there something obvious iam missing? Regards, Varun On Wednesday, August 25, 2010 12:34:05 pm Varun Chandramohan wrote: sorry, didnt realize that this is common code for slpd and libslp. it wont work with env. Any other suggestions? On Wednesday, August 25, 2010 12:26:50 pm Varun Chandramohan wrote: interestingly i wonder what would happen if i do a bind call for some ipv4/ipv6 address here SLPNetworkCreateDatagram() After the socket creating we can just call bind( which is optional, only when some env variable is set). Iam think some env variable like SLP_BIND_ADDR=fe80:x%eth0. If this env is null we skip bind call. Will this work? Varun On Wednesday, August 25, 2010 12:13:45 pm Varun Chandramohan wrote: yes thats possible, but their problem is that the system does not have admit priv to make changes to routing table or ip address. So by default the system generates the same ip address with fe80 as prefix. That will automatically add routes as shown below. Hence the problem. On Wednesday, August 25, 2010 11:41:28 am Nick Wagner wrote: Is it possible to set eth1 to a different link-local address, e.g. fe90::/64, and then unicast to that in slptool? --Nick On Tue, Aug 24, 2010 at 10:48 PM, Varun Chandramohan var...@linux.vnet.ibm.com wrote: Hi All, A customer using openslp faced a funny problem. They use slptool to get their results. The system where
Re: [Openslp-devel] Suggestions For OpenSLP Imporvements.
I agree with Roel about handling multiple interfaces. There are definite differences in how sockets operate in the different OSs, especially with respect to multicast and multiple NICs. I'm very glad to see that people are still actively working on making openSLP better. I haven't been able to get back to it for quite a while -- I had hoped to test some of these changes on Windows and OS X by now, but work has taken over my time. I had a comment on changing net.slp.interfaces. IP address % interface doesn't fully solve the specification issues when dealing with link-local addresses, as those can change underneath you. The same could potentially happen with a DHCP address. What if we changed net.slp.interfaces to something that also allowed you to select the NICs via MAC address (with the optional % interface for full differentiation on OSs that supported it)? --Nick On Thu, Jul 8, 2010 at 2:17 AM, Roel van de Kraats r...@advancedcargo.euwrote: On 07/08/2010 08:49 AM, Varun Chandramohan wrote: Hi All, I have been looking into openslp code and i found a few changes that might make things better in openslp. I dont have patches to share, but i will create them if everyone here agrees. Dear Varun, Thanks for putting this effort in improving Openslp and for discussing your ideas on the mailing list. - Multiple Binding Issue: I observed that, when the list of interfaces is not specified in the config file, the slpd daemon reads all interface information and binds to all address of all interfaces. I feel this is a overkill. When no specific interfaces are given, its much easier to bind to :: or INADDR_ANY. That sounds simpler indeed. However, by doing so a lot of responsibility is moved from slpd (which we can adapt to our needs) to the OS (for which this is much harder). Since handling multiple interfaces the correct way is quite delicate, I'd rather keep this responsibility on the slpd side. And although receiving messages may become simpler this way, for sending messages it is still necessary to specify the interface; otherwise the 'default' interface (chosen by the OS) is used. Finally, since the functionality for handling different interfaces is needed anyway (in case they are specified in the cfg), it is, in my opinion, better to have one mechanism (behavior) for the different situations. Proposal: In SLPDIncomingInit() function all the address are bound. if (G_SlpdProperty.interfaces != NULL) SLPIfaceGetInfo(G_SlpdProperty.interfaces,ifaces,G_SLPDProcInfo, AF_UNSPEC); else ifaces.iface_count = 0; When the interfaces are found to be NULL, we can assume that slpd must bind to all inetfaces. So depending on the config file we have 3 cases. Case 1: Only IPv4 enabled. We can create TCP/UDP sockets with INADDR_ANY. Case 2: Only IPv6 enabled. We can create TCP/UDP sockets with :: Case 3: Both IPv6 IPv4 enabled. We can create sockets with :: but use IPV6_V6ONLY option set. This way we will have only 1 or 2 sockets listening instead of all. Improves performance as well. My only doubt is how this works with Windows. Iam no expert in that. If the interfaces are specified then we do exactly what is done now. Is that ok with everyone? - Wrong Representation Of Interfaces In Config File: Although it looked at first as a minor issue, this has caused multiple problems to basic functionality. Openslp takes in ipaddress without the need for interface information. This leads to major issues. The function v6GetScope() is faulty function. There can be cases when interfaces can have same ips. Eg: eth2 Link encap:Ethernet HWaddr 00:06:29:55:60:81 inet6 addr: fe80::206:29ff:fe55:6081/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:4037 errors:0 dropped:0 overruns:0 frame:0 TX packets:134395 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:436006 (425.7 KiB) TX bytes:14655216 (13.9 MiB) Interrupt:16 Base address:0x2200 eth2.30 Link encap:Ethernet HWaddr 00:06:29:55:60:81 inet addr:192.168.1.2 Bcast:192.168.1.255 Mask:255.255.255.0 inet6 addr: 3001::1/128 Scope:Global inet6 addr: fe80::206:29ff:fe55:6081/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:367 errors:0 dropped:0 overruns:0 frame:0 TX packets:15830 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:40872 (39.9 KiB) TX bytes:1650541 (1.5 MiB) The LL address of both interfaces are same, In which case it becomes clear viewing the v6GetScope() code that the scope id returned will be same for both interface but in reality it is different. This results in binding to only one interface. This is wrong. This has to be changed. This also
Re: [Openslp-devel] About running SLP daemon on Windows
It does appear that -debug works on the windows version, and -d does not. -install and -start do work for me, but I've never used a reg file. I don't think the service stores/uses the other command line arguments. The default locations for these files are already the Windows directory, what does your Windows\slpd.log say? --Nick On Wed, Feb 18, 2009 at 11:54 PM, hudson paul pegpaulhud...@gmail.comwrote: Hi All, I have installed the Open SLP version 2.0 beta. I'm facing problems in running slpd using -d option. Its not running if I give -d as follows. C:\Program Files\OpenSLPslpd -d -c c:\WINDOWS\slp.conf -l c:\WINDOWS\slpd.log -r c:\slp\slp.reg USAGE: slpd -install [auto]|-remove|-start|-stop|-debug [-d] [-c conf file] [-l log file] [-s spi fi le] [-r reg file] [-v version] C:\Program Files\OpenSLP Also, if I install it as a service and start it using the following command, I'm not getting the services discovered using slptool utility. C:\Program Files\OpenSLPslpd -install Service Location Protocol installed. C:\Program Files\OpenSLPslpd -start -c c:\WINDOWS\slp.conf -l c:\WINDOWS\slpd.log -r c:\slp\slp.reg C:\Program Files\OpenSLP Only if run the slpd in debug mode using the following command, it is working fine and I'm getting the services discovered using slptool utility. C:\Program Files\OpenSLPslpd -debug -c c:\WINDOWS\slp.conf -l c:\WINDOWS\slpd.log -r c:\slp\slp.reg Debugging Service Location Protocol. Is it how (only in debug mode) the SLP deamon should be started? Can anyone provide some inputs on this? Regards, Paul -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ Openslp-devel mailing list Openslp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openslp-devel -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H___ Openslp-devel mailing list Openslp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openslp-devel
Re: [Openslp-devel] Proposed updates for release 2.0.0
Unfortunately, these changes have broken the Windows build. I took some time today to get it compiling again but I'm not sure when I'll really have time for testing (which is why I haven't checked it in). With the new code, I've noticed a slow-down during a slptool findsrvs -- in my testing on a machine running a DA, slptool will often return -19 (network timed out). When I comment out the new KnownDASapnningListFromCache / NetworkMultiUcastRqstRply code, everything goes back to normal. The existing NetworkConnectToDA functionality makes use of the fact that slpd always returns the loopback address to any local directory agent queries, which makes querying very fast. Is there a potential for the new code to ignore the loopback even if the scopes match? Otherwise it's something in my compile changes, but nothing jumped out as possibly being a culprit. --Nick On Wed, Oct 1, 2008 at 3:44 AM, Morrell Richard [EMAIL PROTECTED] wrote: Hi John, I've checked our changes into the trunk, and rebuilt and tested the updates. I'm happy that the new code is working as expected (subject to the limitations of our system setup). Regards, Richard -Original Message- From: John Calcote [mailto:[EMAIL PROTECTED] Sent: 23 September 2008 17:17 To: Morrell Richard Subject: Re: [Openslp-devel] Proposed updates for release 2.0.0 Hi Richard, I'll hold off as long as you'd like. I'm really in no hurry. Please check your changes in, and ensure they build on whatever platforms you have available for testing. Keep me posted, and -- as always -- feel free to use me as a sounding board if you wish. Regards, John Morrell Richard wrote: Hi. We've been working on some updates to OpenSLP over the past year or so for our work here in Thales, using Linux, and we've allocated some time to feed these back into the project. If possible, we'd like to get them into the formal 2.0 release, but we realise this is imminent, so the first question is, when is this likely to occur ? And, are our updates likely to be accepted for this release ? We have the following changes, which we have tested deployed in working systems. Note: we only use OpenSLP on Linux with IPv4, and we don't use SLP security - our testing is limited to this setup. 1. Multi-unicast (IPv4 only) The current code will only use unicast if it can find a single DA that supports all the scopes, otherwise it will use multicast. As our systems use multiple DAs with distinct scopes, this meant we were always using multicast convergence. Our update finds a spanning list of DAs that, together, support all the scopes, and searches all of them by unicast in parallel. This gives a quicker response than multicast convergence. 2. Stale DAs Our DAs represent independent processing hardware, and uncontrolled crashes or network faults leave stale entries in the known DA list which will always timeout (in unicast searches), reducing performance. Our update adds an option to the SLP configuration whereby all DAs can be configured to regularly broadcast their presence (DA Advert) at a settable rate (dependent on the daemon's timer), and all DAs SAs so configured will monitor the broadcasts, and remove a DA from the list of known DAs if three consecutive broadcasts are missed. This reduces the number of occasions on which timeouts occur due to this problem to an acceptable level. As part of this change, we also had to change the cacheing code in the library to allow for scopes to disappear. 3. Local registrations are aged This is a bugfix for SA registrations with maximum lifetime - they were being aged, so we lost our registrations after about 18 hours. This is a difference between release 1.2.1 and the pre-2.0 code, and is not desired behaviour for us (all our registrations have maximum lifetime). We couldn't see a reason for it, so assume it was a bug rather than a deliberate change. 4. Error handling bug There is a path though the code that can lead to a null pointer segmentation violation. We only came across this when using jSLP in a java app, which managed to set the multicast flag in a unicast request, but it could potentially occur in other error situations. 5. Multicast convergence fixes A minor performance fix to the multicast convergence code - the RFC says convergence will stop when no replies are received in a convergence interval, but the code always went to the timeout, so our update implements this (subject to a minimum of two iterations). The TCP retry code within a multicast request uses the same timeval structure as the multicast loop, and thus corrupts the multicast timeout. *Richard Morrell* - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win
Re: [Openslp-devel] OpenSLP 2.0 beta 1 crash and LiveTribe SLP
To take care of the obvious -- have you sniffed the packet and validated that it is correct? Perhaps slpd isn't gracefully handling a bad packet. --Nick On Fri, Aug 1, 2008 at 7:28 AM, Simone Bordet [EMAIL PROTECTED]wrote: Hi, at LiveTribe we're implementing a pure Java SLP implementation, and we're currently testing our upcoming release 2.0 with OpenSLP 2.0 beta 1 downloaded from SourceForge. [EMAIL PROTECTED]:~$ uname -a Linux pitt 2.6.24-19-generic #1 SMP Fri Jul 11 23:41:49 UTC 2008 i686 GNU/Linux To compile OpenSLP I did the usual things: configure make sudo make install I configured slpd as a DA (isDA = true). I get an slpd crash when sending a SrvRqst. The SrvRqst has extensions (in particular it has the rfc3059 attribute list extension, and other 2 custom extensions), but I get a crash even when I don't send any extension. The slpd log just before the crash is (without extensions): Fri Aug 1 14:15:47 2008 MESSAGE - Trace message (IN) Peer: IP address: 192.168.0.3 Header: version = 2 functionid = 1 length = 48 flags = 0 extoffset = 0 xid = 20445 langtag = it Message SRVRQST: srvtype = service:jmx:rmi scopelist = default predicate = invalid data! Is there any way to have a more detailed error log of slpd that I can report here ? The invalid data! thing is quite common in OpenSLP 2.0, but I guess it only means it's an empty string. OpenSLP 1.2.1 does not crash, although it cannot find the services asked. This is another issue however, and if I can get OpenSLP 2.0 going I'll be happy. In OpenSLP 2.0, messages that I tested were: DaSrvRqst, DaAdvert, SrvReg (fresh), SrvAck, SrvDeReg, and all seem to interoperate well with LiveTribe SLP. Thanks, Simon -- http://bordet.blogspot.com --- Finally, no matter how good the architecture and design are, to deliver bug-free software with optimal performance and reliability, the implementation technique must be flawless. Victoria Livschitz - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ Openslp-devel mailing list Openslp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openslp-devel - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/___ Openslp-devel mailing list Openslp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openslp-devel
Re: [Openslp-devel] Fix for libslp SEGV at exit
Looks good -- does this interfere with your atexit() case? On Fri, Jul 25, 2008 at 2:39 AM, Roel van de Kraats [EMAIL PROTECTED]wrote: On 07/24/2008 08:13 PM, Nick Wagner wrote: By which I mean having a LIBSLPPropertyCleanup() that checks s_PropInited and does the SLPSpinLockAcquire on the s_PropInitLock before calling SLPPropertyExit. Sounds good. Please have a look at rev 1595 for my implementation (I was the one who removed the old clean-up functionality, so I'm the one to get it working again ;-) Roel --Nick On Thu, Jul 24, 2008 at 1:10 PM, Nick Wagner [EMAIL PROTECTED]mailto: [EMAIL PROTECTED] wrote: What if we call SLPPropertyExit as part of the cleanup in libslp_handle:ExitUserAgentLibrary? On Mon, Jun 30, 2008 at 8:07 AM, Roel van de Kraats [EMAIL PROTECTED] wrote: Hi, I encountered a SEGV in libslp during exit of an application. It turned out that the application called SLPDereg() via atexit(). However, libslp itself already cleaned-up its properties via atexit() as well, causing the SEGV. The following small patch simply disables libslp's atexit() handler. I don't believe it is needed anyway, since the used memory will be freed at application exit automatically. The patch is against trunk/r1589. Kind regards, Roel van de Kraats --- begin patch --- Skip cleaning-up via atexit(), since it causes problems with applications that will try to deregister via atexit() as well. Roel van de Kraats diff -ur openslp-2.0.beta1.r1589/libslp/libslp_property.c openslp-2.0.beta1/libslp/libslp_property.c --- openslp-2.0.beta1.r1589/libslp/libslp_property.c 2008-03-27 00:27:22.0 +0100 +++ openslp-2.0.beta1/libslp/libslp_property.c 2008-06-27 09:02:03.0 +0200 @@ -69,7 +69,9 @@ SLPSpinLockAcquire(s_PropInitLock); if (!s_PropInited (rv = SLPPropertyInit(gconffile)) == 0); { - atexit(SLPPropertyExit); +/* Cleaning-up via atexit() will cause problems with applications that will try to deregister via atexit() as well. */ +/* Since memory will be freed at exit anyway, just skip the clean-up routine. */ +/* atexit(SLPPropertyExit); */ s_PropInited = true; } SLPSpinLockRelease(s_PropInitLock); - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php ___ Openslp-devel mailing list Openslp-devel@lists.sourceforge.net mailto:Openslp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openslp-devel - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/___ Openslp-devel mailing list Openslp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openslp-devel
Re: [Openslp-devel] Fix for libslp SEGV at exit
By which I mean having a LIBSLPPropertyCleanup() that checks s_PropInited and does the SLPSpinLockAcquire on the s_PropInitLock before calling SLPPropertyExit. --Nick On Thu, Jul 24, 2008 at 1:10 PM, Nick Wagner [EMAIL PROTECTED] wrote: What if we call SLPPropertyExit as part of the cleanup in libslp_handle:ExitUserAgentLibrary? On Mon, Jun 30, 2008 at 8:07 AM, Roel van de Kraats [EMAIL PROTECTED] wrote: Hi, I encountered a SEGV in libslp during exit of an application. It turned out that the application called SLPDereg() via atexit(). However, libslp itself already cleaned-up its properties via atexit() as well, causing the SEGV. The following small patch simply disables libslp's atexit() handler. I don't believe it is needed anyway, since the used memory will be freed at application exit automatically. The patch is against trunk/r1589. Kind regards, Roel van de Kraats --- begin patch --- Skip cleaning-up via atexit(), since it causes problems with applications that will try to deregister via atexit() as well. Roel van de Kraats diff -ur openslp-2.0.beta1.r1589/libslp/libslp_property.c openslp-2.0.beta1/libslp/libslp_property.c --- openslp-2.0.beta1.r1589/libslp/libslp_property.c2008-03-27 00:27:22.0 +0100 +++ openslp-2.0.beta1/libslp/libslp_property.c 2008-06-27 09:02:03.0 +0200 @@ -69,7 +69,9 @@ SLPSpinLockAcquire(s_PropInitLock); if (!s_PropInited (rv = SLPPropertyInit(gconffile)) == 0); { - atexit(SLPPropertyExit); +/* Cleaning-up via atexit() will cause problems with applications that will try to deregister via atexit() as well. */ +/* Since memory will be freed at exit anyway, just skip the clean-up routine. */ +/* atexit(SLPPropertyExit); */ s_PropInited = true; } SLPSpinLockRelease(s_PropInitLock); - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php ___ Openslp-devel mailing list Openslp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openslp-devel - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/___ Openslp-devel mailing list Openslp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openslp-devel