On Feb 19, 2018, at 6:16 PM, Chaigneau, Nicolas <nicolas.chaigneau@capgemini.com> wrote:
I know Arran is working on the DHCP code, so maybe it's already known. Just in case...
In function fr_dhcpv4_packet_decode:
https://github.com/FreeRADIUS/freeradius-server/blob/ce6c2c641194a49b70d6c6e...
case FR_TYPE_IPV4_ADDR: memcpy(&vp->vp_ipv4addr, p, 4); break;
I had to add the following two lines after the memcpy:
vp->data.vb_ip.af = AF_INET; vp->data.vb_ip.prefix = 32;
Nah that's the DHCPv4 code, haven't touched that. I'm working on v6. Just swapped out most of that switch statement for a call to fr_value_box_from_network... woo code reuse. -Arran