From: Nick Porter Date: Wed, 21 Feb 2024 11:55:26 +0000 (+0000) Subject: Add Net.* attributes to DHCPv4 decoding X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f90def0e600cf0d053aee7275c54f8af207a902f;p=thirdparty%2Ffreeradius-server.git Add Net.* attributes to DHCPv4 decoding --- diff --git a/src/listen/dhcpv4/proto_dhcpv4.c b/src/listen/dhcpv4/proto_dhcpv4.c index c1f0fa30a8b..d8961a5a96e 100644 --- a/src/listen/dhcpv4/proto_dhcpv4.c +++ b/src/listen/dhcpv4/proto_dhcpv4.c @@ -235,6 +235,11 @@ static int mod_decode(UNUSED void const *instance, request_t *request, uint8_t * request->packet->socket = address->socket; fr_socket_addr_swap(&request->reply->socket, &address->socket); + if (fr_packet_pairs_from_packet(request->request_ctx, &request->request_pairs, request->packet) < 0) { + RPEDEBUG("Failed decoding 'Net.*' packet"); + return -1; + } + REQUEST_VERIFY(request); return 0;