Menu

#126 Enh: slptool option to set service registration lifetime

v2.1
closed
None
5
2017-04-07
2010-12-15
DJ Burgie
No

When working with SLP it would be useful to not only register custom services with slptool but to specify their lifetime rather than having them have a lifetime of forever (or as long as slpd is running). Adding a lifetime option to the slptool register command is pretty straight-forward.

Attaching an archive that has the original source file (2.0-beta1, not from SVN), the updated source file, a DIFF file (just for fun), and a compiled x86_64 binary that I've tested to ensure it works. The code changes for 1.2.0 are almost identical and are also attached though without the compiled version (I couldn't make it compile to begin with for some reason).

In the comparison of the files there are a lot of extra changes besides the registration lifetime changes due to the removal of trailing spaces on several lines. Removing them was only meant to be helpful by tidying up the code.

Let me know if there are any questions with these changes.

Discussion

  • DJ Burgie

    DJ Burgie - 2010-12-15

    slptool code changes to add service registration lifetime option.

     
  • DJ Burgie

    DJ Burgie - 2010-12-15

    I submitted this under the wrong section; had I done this properly (under Feature Request) I would have found a similar submission from several years ago: https://sourceforge.net/tracker/?func=detail&aid=988382&group_id=1730&atid=351730

    Our code looks similar but mine does not add a --lifetime option or change the struct's definition. Not sure if that's good or bad, to be honest.

     
  • Varun Chandramohan

    i had made a patch for the same, i just added to the svn. Please check and let me know if its ok.

     
  • John Calcote

    John Calcote - 2017-04-07
    • status: open --> closed
    • assigned_to: John Calcote
    • Group: --> v2.1
     
  • John Calcote

    John Calcote - 2017-04-07

    Fixed in 2.0 code base.

     

Log in to post a comment.