#define __NETWORKCONFIG_H__
#include <rtems/rtems_bsdnet.h>
+#include <rtems/rtems_dhcp_failsafe.h>
#include <bsp.h>
static char ethernet_address[6] = {0x00, 0x04, 0x9F, 0x00, 0x27, 0x50 };
.name = RTEMS_BSP_NETWORK_DRIVER_NAME,
.attach = RTEMS_BSP_NETWORK_DRIVER_ATTACH,
.next = NULL,
- .ip_address = NULL,
- .ip_netmask = NULL,
+ .ip_address = "192.168.3.66",
+ .ip_netmask = "255.255.255.0",
.hardware_address = ethernet_address,
.ignore_broadcast = 0,
.mtu = 0,
struct rtems_bsdnet_config rtems_bsdnet_config = {
.ifconfig = &netdriver_config,
- .bootp = rtems_bsdnet_do_bootp,
+/* .bootp = rtems_bsdnet_do_bootp,*/
+/* .bootp = rtems_bsdnet_do_dhcp,*/
+ .bootp = rtems_bsdnet_do_dhcp_failsafe,
.network_task_priority = 0, /* 100 */
.mbuf_bytecount = 256 * 1024, /* 64 kbytes */
.mbuf_cluster_bytecount = 256 * 1024, /* 128 kbytes */
.hostname = NULL,
.domainname = NULL,
- .gateway = NULL,
+ .gateway = "192.168.3.1",
.log_host = NULL,
.name_server = { "NULL" },
.ntp_server = { "NULL" },