Send connman mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.01.org/mailman/listinfo/connman
or, via email, send a message with subject or body 'help' to
        [email protected]

You can reach the person managing the list at
        [email protected]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of connman digest..."


Today's Topics:

   1. [PATCH] Wait 4 seconds for RA before re-sending RS messages.
      (Niraj Kumar Goit)


----------------------------------------------------------------------

Message: 1
Date: Wed, 13 Dec 2017 16:07:02 +0530
From: Niraj Kumar Goit <[email protected]>
To: [email protected]
Cc: [email protected], Niraj Kumar Goit <[email protected]>
Subject: [PATCH] Wait 4 seconds for RA before re-sending RS messages.
Message-ID: <[email protected]>
Content-Type: text/plain; charset="utf-8"

As per RFC 4861, a host should transmit up to 3 Router Solicitation
messages, each separated by at least RTR_SOLICITATION_INTERVAL(4)
seconds to obtain RA for IPv6 auto-configuration.
---
 src/network.c | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/src/network.c b/src/network.c
index ed56210..f3e422f 100644
--- a/src/network.c
+++ b/src/network.c
@@ -41,6 +41,13 @@
  */
 #define RS_REFRESH_TIMEOUT     3
 
+/*
+ * As per RFC 4861, a host should transmit up to MAX_RTR_SOLICITATIONS(3)
+ * Router Solicitation messages, each separated by at least
+ * RTR_SOLICITATION_INTERVAL(4) seconds to obtain RA for IPv6 
auto-configuration.
+ */
+#define RTR_SOLICITATION_INTERVAL      4
+
 static GSList *network_list = NULL;
 static GSList *driver_list = NULL;
 
@@ -427,7 +434,7 @@ static void check_dhcpv6(struct nd_router_advert *reply,
                        DBG("re-send router solicitation %d",
                                                network->router_solicit_count);
                        network->router_solicit_count--;
-                       __connman_inet_ipv6_send_rs(network->index, 1,
+                       __connman_inet_ipv6_send_rs(network->index, 
RTR_SOLICITATION_INTERVAL,
                                                check_dhcpv6, network);
                        return;
                }
@@ -577,7 +584,8 @@ static void autoconf_ipv6_set(struct connman_network 
*network)
 
        /* Try to get stateless DHCPv6 information, RFC 3736 */
        network->router_solicit_count = 3;
-       __connman_inet_ipv6_send_rs(index, 1, check_dhcpv6, network);
+       __connman_inet_ipv6_send_rs(index, RTR_SOLICITATION_INTERVAL,
+                       check_dhcpv6, network);
 }
 
 static void set_connected(struct connman_network *network)
-- 
1.9.1



------------------------------

Subject: Digest Footer

_______________________________________________
connman mailing list
[email protected]
https://lists.01.org/mailman/listinfo/connman


------------------------------

End of connman Digest, Vol 26, Issue 13
***************************************

Reply via email to