]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Guard MAX_RTR_SOLICITATION_DELAY if platform defined.
authorRoy Marples <roy@marples.name>
Tue, 13 Jun 2017 18:39:56 +0000 (19:39 +0100)
committerRoy Marples <roy@marples.name>
Tue, 13 Jun 2017 18:39:56 +0000 (19:39 +0100)
src/ipv6nd.h

index 4bf726979c218b369cc2adc6a6df8e5e10b75970..17d6c953a3a961c01d149745f3790936bfe54862 100644 (file)
@@ -63,10 +63,12 @@ struct rs_state {
 #define RS_STATE(a) ((struct rs_state *)(ifp)->if_data[IF_DATA_IPV6ND])
 #define RS_STATE_RUNNING(a) (ipv6nd_hasra((a)) && ipv6nd_dadcompleted((a)))
 
+#ifndef MAX_RTR_SOLICITATION_DELAY
 #define MAX_RTR_SOLICITATION_DELAY     1       /* seconds */
 #define MAX_UNICAST_SOLICIT            3       /* 3 transmissions */
 #define RTR_SOLICITATION_INTERVAL      4       /* seconds */
 #define MAX_RTR_SOLICITATIONS          3       /* times */
+#endif
 
 /* On carrier up, expire known routers after RTR_CARRIER_EXPIRE seconds. */
 #define RTR_CARRIER_EXPIRE             \