]> git.decadent.org.uk Git - odhcp6c.git/blobdiff - src/dhcpv6.c
Ignore multiple MAP-E instances for now and output DMR / BR for every rule
[odhcp6c.git] / src / dhcpv6.c
index 873f0df6641aabf91243bd06ed6d762216deafab..7c6da00c3d3e6ef723e0f23a13f58847e0f606d6 100644 (file)
@@ -1032,7 +1032,10 @@ static int dhcpv6_handle_reply(enum dhcpv6_msg orig, _unused const int rc,
                } else if (otype == DHCPV6_OPT_S46_CONT_MAPT) {
                        odhcp6c_add_state(STATE_S46_MAPT, odata, olen);
                } else if (otype == DHCPV6_OPT_S46_CONT_MAPE) {
-                       odhcp6c_add_state(STATE_S46_MAPE, odata, olen);
+                       size_t mape_len;
+                       odhcp6c_get_state(STATE_S46_MAPE, &mape_len);
+                       if (mape_len == 0)
+                               odhcp6c_add_state(STATE_S46_MAPE, odata, olen);
                } else if (otype == DHCPV6_OPT_S46_CONT_LW) {
                        odhcp6c_add_state(STATE_S46_LW, odata, olen);
 #endif