diff options
author | Martin Wilke <miwi@FreeBSD.org> | 2009-12-26 13:53:36 +0000 |
---|---|---|
committer | Martin Wilke <miwi@FreeBSD.org> | 2009-12-26 13:53:36 +0000 |
commit | 78c652efbf0cbc53885a4797bcbcdfbb4c29f0d9 (patch) | |
tree | f9863baa14b7b1b20f49f61012fb36e64cc60130 /net/gssdp/files | |
parent | - Update to 1.7.2 (diff) |
A GObject-based API for handling resource discovery and announcement
over SSDP.
WWW: http://www.gupnp.org/
Diffstat (limited to 'net/gssdp/files')
-rw-r--r-- | net/gssdp/files/patch-libgssdp-gssdp-socket-source.c | 19 | ||||
-rw-r--r-- | net/gssdp/files/patch-tools-gssdp-devices-sniffer.c | 11 |
2 files changed, 30 insertions, 0 deletions
diff --git a/net/gssdp/files/patch-libgssdp-gssdp-socket-source.c b/net/gssdp/files/patch-libgssdp-gssdp-socket-source.c new file mode 100644 index 000000000000..24b8d9018503 --- /dev/null +++ b/net/gssdp/files/patch-libgssdp-gssdp-socket-source.c @@ -0,0 +1,19 @@ +--- libgssdp/gssdp-socket-source.c.orig 2009-12-02 12:06:02.000000000 +0100 ++++ libgssdp/gssdp-socket-source.c 2009-12-26 13:55:10.000000000 +0100 +@@ -154,6 +154,16 @@ + if (res == -1) + goto error; + ++#ifdef __FreeBSD__ ++ res = setsockopt (socket_source->poll_fd.fd, ++ SOL_SOCKET, ++ SO_REUSEPORT, ++ &boolean, ++ sizeof (boolean)); ++ if (res == -1) ++ goto error; ++#endif ++ + /* Subscribe to multicast channel */ + res = inet_aton (SSDP_ADDR, &(mreq.imr_multiaddr)); + if (res == 0) diff --git a/net/gssdp/files/patch-tools-gssdp-devices-sniffer.c b/net/gssdp/files/patch-tools-gssdp-devices-sniffer.c new file mode 100644 index 000000000000..a4c5da117b12 --- /dev/null +++ b/net/gssdp/files/patch-tools-gssdp-devices-sniffer.c @@ -0,0 +1,11 @@ +--- tools/gssdp-device-sniffer.c.orig 2009-07-29 15:53:32.000000000 +0200 ++++ tools/gssdp-device-sniffer.c 2009-12-26 13:56:48.000000000 +0100 +@@ -319,7 +319,7 @@ + + uuid = usn_tokens[0] + 5; /* skip the prefix 'uuid:' */ + +- if (usn_tokens[1]) { ++ if (usn_tokens[1] && strlen(usn_tokens[1]) != 0) { + char **urn_tokens; + + urn_tokens = g_strsplit (usn_tokens[1], ":device:", -1); |