]> rtime.felk.cvut.cz Git - rtems-devel.git/blobdiff - rtems-omk-template/appnet/networkconfig.h
OMK template: include example of telnetd accessible remote shell.
[rtems-devel.git] / rtems-omk-template / appnet / networkconfig.h
index ad69e52da88109fb707b3d1bd7fc09b53dd8be11..e5158eb7a2403ddebabcd9f8238edf9ac6507f0f 100644 (file)
@@ -2,6 +2,7 @@
 #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 };
@@ -10,8 +11,8 @@ static struct rtems_bsdnet_ifconfig netdriver_config = {
        .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,
@@ -25,13 +26,15 @@ 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 */
        .hostname = NULL,
        .domainname = NULL,
-       .gateway = NULL,
+       .gateway = "192.168.3.1",
        .log_host = NULL,
        .name_server = { "NULL" },
        .ntp_server = { "NULL" },