Allow to specify the router advertisement retrans time via the uci
parameter ra_retranstime. If retransmit time is not configured the
value is set to 0 in RA message meaning undefined.
valid lifetime of a prefix
ra_reachabletime integer 0 Reachable Time in milliseconds to be
advertised in RA messages
valid lifetime of a prefix
ra_reachabletime integer 0 Reachable Time in milliseconds to be
advertised in RA messages
+ra_retranstime integer 0 Retransmit Time in milliseconds to be
+ advertised in RA messages
ra_hoplimit integer 0 Current hoplimit to be advertised
in RA messages
ra_mtu integer 0 MTU to be advertised in
ra_hoplimit integer 0 Current hoplimit to be advertised
in RA messages
ra_mtu integer 0 MTU to be advertised in
IFACE_ATTR_RA_LIFETIME,
IFACE_ATTR_RA_USELEASETIME,
IFACE_ATTR_RA_REACHABLETIME,
IFACE_ATTR_RA_LIFETIME,
IFACE_ATTR_RA_USELEASETIME,
IFACE_ATTR_RA_REACHABLETIME,
+ IFACE_ATTR_RA_RETRANSTIME,
IFACE_ATTR_RA_HOPLIMIT,
IFACE_ATTR_RA_MTU,
IFACE_ATTR_PD_MANAGER,
IFACE_ATTR_RA_HOPLIMIT,
IFACE_ATTR_RA_MTU,
IFACE_ATTR_PD_MANAGER,
[IFACE_ATTR_RA_LIFETIME] = { .name = "ra_lifetime", .type = BLOBMSG_TYPE_INT32 },
[IFACE_ATTR_RA_USELEASETIME] = { .name = "ra_useleasetime", .type = BLOBMSG_TYPE_BOOL },
[IFACE_ATTR_RA_REACHABLETIME] = { .name = "ra_reachabletime", .type = BLOBMSG_TYPE_INT32 },
[IFACE_ATTR_RA_LIFETIME] = { .name = "ra_lifetime", .type = BLOBMSG_TYPE_INT32 },
[IFACE_ATTR_RA_USELEASETIME] = { .name = "ra_useleasetime", .type = BLOBMSG_TYPE_BOOL },
[IFACE_ATTR_RA_REACHABLETIME] = { .name = "ra_reachabletime", .type = BLOBMSG_TYPE_INT32 },
+ [IFACE_ATTR_RA_RETRANSTIME] = { .name = "ra_retranstime", .type = BLOBMSG_TYPE_INT32 },
[IFACE_ATTR_RA_HOPLIMIT] = { .name = "ra_hoplimit", .type = BLOBMSG_TYPE_INT32 },
[IFACE_ATTR_RA_MTU] = { .name = "ra_mtu", .type = BLOBMSG_TYPE_INT32 },
[IFACE_ATTR_NDPROXY_ROUTING] = { .name = "ndproxy_routing", .type = BLOBMSG_TYPE_BOOL },
[IFACE_ATTR_RA_HOPLIMIT] = { .name = "ra_hoplimit", .type = BLOBMSG_TYPE_INT32 },
[IFACE_ATTR_RA_MTU] = { .name = "ra_mtu", .type = BLOBMSG_TYPE_INT32 },
[IFACE_ATTR_NDPROXY_ROUTING] = { .name = "ndproxy_routing", .type = BLOBMSG_TYPE_BOOL },
+ if ((c = tb[IFACE_ATTR_RA_RETRANSTIME]))
+ iface->ra_retranstime = blobmsg_get_u32(c);
+
if ((c = tb[IFACE_ATTR_RA_HOPLIMIT])) {
iface->ra_hoplimit = blobmsg_get_u32(c);
if (iface->ra_hoplimit > 255)
if ((c = tb[IFACE_ATTR_RA_HOPLIMIT])) {
iface->ra_hoplimit = blobmsg_get_u32(c);
if (iface->ra_hoplimit > 255)
int ra_mininterval;
int ra_lifetime;
uint32_t ra_reachabletime;
int ra_mininterval;
int ra_lifetime;
uint32_t ra_reachabletime;
+ uint32_t ra_retranstime;
uint32_t ra_hoplimit;
uint32_t ra_mtu;
uint32_t ra_hoplimit;
uint32_t ra_mtu;
adv.h.nd_ra_flags_reserved |= ND_RA_PREF_HIGH;
adv.h.nd_ra_reachable = htonl(iface->ra_reachabletime);
adv.h.nd_ra_flags_reserved |= ND_RA_PREF_HIGH;
adv.h.nd_ra_reachable = htonl(iface->ra_reachabletime);
+ adv.h.nd_ra_retransmit = htonl(iface->ra_retranstime);
odhcpd_get_mac(iface, adv.lladdr.data);
odhcpd_get_mac(iface, adv.lladdr.data);