[gssdp/ocrete/iface-index-maxint: 2/2] socket-source: Allow interface index up to MAXINT




commit 3b11017c0413c92c877a691a4bd402b975f2dcf9
Author: Olivier CrĂȘte <olivier crete collabora com>
Date:   Wed May 25 14:12:23 2022 -0400

    socket-source: Allow interface index up to MAXINT
    
    I couldn't find anything that would prevent the ifindex to be above
    MAXINT16 and it seems the CI systems have higher one sometimes.
    
    Hopefully this should fix https://gitlab.gnome.org/GNOME/gupnp-igd/-/jobs/2021422

 libgssdp/gssdp-socket-source.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/libgssdp/gssdp-socket-source.c b/libgssdp/gssdp-socket-source.c
index 6cb0a66..b3c8b70 100644
--- a/libgssdp/gssdp-socket-source.c
+++ b/libgssdp/gssdp-socket-source.c
@@ -518,7 +518,7 @@ gssdp_socket_source_class_init (GSSDPSocketSourceClass *klass)
                         ("index",
                          "Interface index",
                          "Interface index of the network device",
-                         -1, G_MAXUINT16,
+                         -1, G_MAXINT,
                          -1,
                          G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY |
                          G_PARAM_STATIC_STRINGS));


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]