Type: Answers

Area: Embedded


IP Product: Other

Why am I unable to connect my Nios<sup></sup> board over DHCP to the local DHCP Server?

Description

In order to connect the Nios board with a DHCP server, the ne_plugs_flag_ethernet_broadcast flag should be set in plugs_dhcp.c (r_dhcp_new):

// |
// | create our UDP plug
// |

result = nr_plugs_create
(
&ds->plug_handle,
ne_plugs_udp,ne_plugs_udp_dhcp_client,
dhcp_callback_proc,ds,
ne_plugs_flag_ip_all | ne_plugs_flag_ethernet_broadcast
//+ ne_plugs_flag_debug_rx
);

The ne_plugs_flag_ethernet_broadcast flag is not set causing the ethernet MAC to ignore the broadcast messages (MAC ADDRESS:FF-FF-FF-FF-FF-FF). Setting this flag should enable a proper connection to a DHCP server.