1 #ifndef __NETWORKCONFIG_H__
2 #define __NETWORKCONFIG_H__
4 #include <rtems/rtems_bsdnet.h>
5 #include <rtems/rtems_dhcp_failsafe.h>
8 static char ethernet_address[6] = {0x00, 0x04, 0x9F, 0x00, 0x27, 0x50 };
10 static struct rtems_bsdnet_ifconfig netdriver_config = {
11 .name = RTEMS_BSP_NETWORK_DRIVER_NAME,
12 .attach = RTEMS_BSP_NETWORK_DRIVER_ATTACH,
14 .ip_address = "192.168.3.66",
15 .ip_netmask = "255.255.255.0",
16 .hardware_address = ethernet_address,
17 .ignore_broadcast = 0,
27 struct rtems_bsdnet_config rtems_bsdnet_config = {
28 .ifconfig = &netdriver_config,
29 /* .bootp = rtems_bsdnet_do_bootp,*/
30 /* .bootp = rtems_bsdnet_do_dhcp,*/
31 .bootp = rtems_bsdnet_do_dhcp_failsafe,
32 .network_task_priority = 0, /* 100 */
33 .mbuf_bytecount = 256 * 1024, /* 64 kbytes */
34 .mbuf_cluster_bytecount = 256 * 1024, /* 128 kbytes */
37 .gateway = "192.168.3.1",
39 .name_server = { "NULL" },
40 .ntp_server = { "NULL" },
42 .udp_tx_buf_size = 0, /* UDP TX: 9216 bytes */
43 .udp_rx_buf_size = 0, /* UDP RX: 40 * (1024 + sizeof(struct sockaddr_in)) */
44 .tcp_tx_buf_size = 0, /* TCP TX: 16 * 1024 bytes */
45 .tcp_rx_buf_size = 0, /* TCP TX: 16 * 1024 bytes */