if (r < 0)
return log_dhcp6_client_errno(client, r, "Failed to process received reply message, ignoring: %m");
+ log_dhcp6_client(client, "Processed %s message", dhcp6_message_type_to_string(message->type));
+
sd_dhcp6_lease_unref(client->lease);
client->lease = TAKE_PTR(lease);
if (r < 0)
return log_dhcp6_client_errno(client, r, "Failed to process received reply message, ignoring: %m");
+ log_dhcp6_client(client, "Processed %s message", dhcp6_message_type_to_string(message->type));
+
sd_dhcp6_lease_unref(client->lease);
client->lease = TAKE_PTR(lease);
return log_dhcp6_client_errno(client, SYNTHETIC_ERRNO(EINVAL),
"Received reply message without rapid commit flag, ignoring.");
+ log_dhcp6_client(client, "Processed %s message", dhcp6_message_type_to_string(message->type));
+
sd_dhcp6_lease_unref(client->lease);
client->lease = TAKE_PTR(lease);
return r;
}
+ log_dhcp6_client(client, "Processed %s message", dhcp6_message_type_to_string(message->type));
+
if (!client->lease || pref_advertise > pref_lease) {
/* If this is the first advertise message or has higher preference, then save the lease. */
sd_dhcp6_lease_unref(client->lease);
client->lease = TAKE_PTR(lease);
}
- if (pref_advertise == 255 || client->retransmit_count > 1) {
- r = client_set_state(client, DHCP6_STATE_REQUEST);
- if (r < 0)
- return r;
- }
+ if (pref_advertise == 255 || client->retransmit_count > 1)
+ (void) client_set_state(client, DHCP6_STATE_REQUEST);
return 0;
}
assert_not_reached();
}
- log_dhcp6_client(client, "Recv %s",
- dhcp6_message_type_to_string(message->type));
-
return 0;
}