the various users of packet_ctx->duid already check it
*/
if ((packet[0] == 0) || (packet[0] > FR_DHCPV6_LEASE_QUERY_REPLY)) return false;
- if (!packet_ctx->duid) return false;
-
if (from_server) return verify_to_client(packet, packet_len, packet_ctx);
return verify_from_client(packet, packet_len, packet_ctx);
typedef struct {
TALLOC_CTX *tmp_ctx; //!< for temporary things cleaned up during decoding
uint32_t transaction_id; //!< previous transaction ID
- uint8_t *duid; //!< the expected DUID, in wire format
+ uint8_t const *duid; //!< the expected DUID, in wire format
size_t duid_len; //!< length of the expected DUID
} fr_dhcpv6_decode_ctx_t;