1 #ifndef __NETWORKCONFIG_H__
2 #define __NETWORKCONFIG_H__
4 #include <rtems/rtems_bsdnet.h>
7 static char ethernet_address[6] = {0x00, 0x04, 0x9F, 0x00, 0x27, 0x50 };
9 static struct rtems_bsdnet_ifconfig netdriver_config = {
10 .name = RTEMS_BSP_NETWORK_DRIVER_NAME,
11 .attach = RTEMS_BSP_NETWORK_DRIVER_ATTACH,
13 .ip_address = "192.168.1.35",
14 .ip_netmask = "255.255.255.0",
15 .hardware_address = ethernet_address,
16 .ignore_broadcast = 0,
26 struct rtems_bsdnet_config rtems_bsdnet_config = {
27 .ifconfig = &netdriver_config,
29 .network_task_priority = 0, /* 100 */
30 .mbuf_bytecount = 256 * 1024, /* 64 kbytes */
31 .mbuf_cluster_bytecount = 256 * 1024, /* 128 kbytes */
36 .name_server = { "NULL" },
37 .ntp_server = { "NULL" },
39 .udp_tx_buf_size = 0, /* UDP TX: 9216 bytes */
40 .udp_rx_buf_size = 0, /* UDP RX: 40 * (1024 + sizeof(struct sockaddr_in)) */
41 .tcp_tx_buf_size = 0, /* TCP TX: 16 * 1024 bytes */
42 .tcp_rx_buf_size = 0, /* TCP TX: 16 * 1024 bytes */