From: Pavel Pisa Date: Wed, 28 Aug 2013 22:41:38 +0000 (+0200) Subject: Switch network configuration in appnet test from BOOTP to DHCP. X-Git-Url: http://rtime.felk.cvut.cz/gitweb/rtems-devel.git/commitdiff_plain/764dcddb0fed3ef7587a6ce1c68d414f6e953c12 Switch network configuration in appnet test from BOOTP to DHCP. Signed-off-by: Pavel Pisa --- 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 */