-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Ripley,
I'd be pleased to check in a patch, if you could verify that your
concept fixes the bug. The trouble is that a fella no longer with the
development team did most of the IPv6 work, so I have very little to go
on for testing.
Thanks,
John
ripley zhang wrote:
> Hi there
>
> I found when I registered a service on a ipv6 box, 3 sockets got
> created, but after de-registration, one one of them was removed ...
> I poked around the code and saw this snippet in
> SLPDIncomingRemoveService() (slpd_incoming.c)
> ...
>
> while (sock_next)
> {
> sock = sock_next;
> sock_next = (SLPDSocket *) sock->listitem.next;
>
> res = SLPNetGetSrvMcastAddr(srvtype, len, SLP_SCOPE_SITE_LOCAL,
> &srvaddr_node);
> if (res != 0)
> return -1;
> res = SLPNetGetSrvMcastAddr(srvtype, len, SLP_SCOPE_SITE_LOCAL,
> &srvaddr_link);
> if (res != 0)
> return -1;
> res = SLPNetGetSrvMcastAddr(srvtype, len, SLP_SCOPE_SITE_LOCAL,
> &srvaddr_site);
> if (res != 0)
> return -1;
>
> if (sock
> && (SLPDSocketIsMcastOn(sock, &srvaddr_node)
> || SLPDSocketIsMcastOn(sock,
> &srvaddr_link)
> || SLPDSocketIsMcastOn(sock,
> &srvaddr_site)))
> {
> SLPDSocketFree((SLPDSocket *)
> SLPListUnlink(&G_IncomingSocketList, (SLPListItem *) sock));
> sock = NULL;
> }
> }
> ...
>
> All of the scopes in SLPNetGetSrvMcastAddr invocation are
> SLP_SCOPE_SITE_LOCAL, I think two of them should be node_local and
> link_local? I saw this in both 1.3 and 2.0 so not sure if I'm correct,
> any one could help to confirm?
>
> --
> All I want is peace in mind.
>
>
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Openslp-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/openslp-devel
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4-svn0 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org
iD8DBQFIMZ0vdcgqmRY/OH8RAuF7AJ9fLn+X12JMWnThRvOT0Wg8+XOSxQCfYyQb
Lk5JUNhaTR6x6mWqoYzFfeI=
=T0n9
-----END PGP SIGNATURE-----
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Openslp-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openslp-devel