[PATCH 09/21] net: dhcp: Allow to specify network device

Sam Ravnborg sam at ravnborg.org
Sat Nov 25 08:46:47 PST 2017


Hi Sasha.

>  
> -	dhcp_con = net_udp_new(0xffffffff, PORT_BOOTPS, dhcp_handler, NULL);
> +	dhcp_con = net_udp_eth_new(edev, 0xffffffff, PORT_BOOTPS, dhcp_handler, NULL);

The constant 0xffffffff appears in a few places.
A proper define would properly be better.

#define IP_BROADCAST  0xffffffff

	Sam



More information about the barebox mailing list