From 764dcddb0fed3ef7587a6ce1c68d414f6e953c12 Mon Sep 17 00:00:00 2001 From: Pavel Pisa Date: Thu, 29 Aug 2013 00:41:38 +0200 Subject: [PATCH] Switch network configuration in appnet test from BOOTP to DHCP. Signed-off-by: Pavel Pisa --- rtems-omk-template/appnet/networkconfig.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rtems-omk-template/appnet/networkconfig.h b/rtems-omk-template/appnet/networkconfig.h index ad69e52..9af99b0 100644 --- a/rtems-omk-template/appnet/networkconfig.h +++ b/rtems-omk-template/appnet/networkconfig.h @@ -2,6 +2,7 @@ #define __NETWORKCONFIG_H__ #include +#include #include static char ethernet_address[6] = {0x00, 0x04, 0x9F, 0x00, 0x27, 0x50 }; @@ -25,7 +26,9 @@ static struct rtems_bsdnet_ifconfig netdriver_config = { 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 */ -- 2.39.2