]> rtime.felk.cvut.cz Git - rtems-devel.git/blob - rtems-omk-template/appnet/networkconfig.h
Switch network configuration in appnet test from BOOTP to DHCP.
[rtems-devel.git] / rtems-omk-template / appnet / networkconfig.h
1 #ifndef __NETWORKCONFIG_H__
2 #define __NETWORKCONFIG_H__
3
4 #include <rtems/rtems_bsdnet.h>
5 #include <rtems/rtems_dhcp_failsafe.h>
6 #include <bsp.h>
7
8 static char ethernet_address[6] = {0x00, 0x04, 0x9F, 0x00, 0x27, 0x50 };
9
10 static struct rtems_bsdnet_ifconfig netdriver_config = {
11         .name = RTEMS_BSP_NETWORK_DRIVER_NAME,
12         .attach = RTEMS_BSP_NETWORK_DRIVER_ATTACH,
13         .next = NULL,
14         .ip_address = NULL,
15         .ip_netmask = NULL,
16         .hardware_address = ethernet_address,
17         .ignore_broadcast = 0,
18         .mtu = 0,
19         .rbuf_count = 0,
20         .xbuf_count = 0,
21         .port = 0,
22         .irno = 0,
23         .bpar = 0,
24         .drv_ctrl = NULL
25 };
26
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 */
35         .hostname = NULL,
36         .domainname = NULL,
37         .gateway = NULL,
38         .log_host = NULL,
39         .name_server = { "NULL" },
40         .ntp_server = { "NULL" },
41         .sb_efficiency = 0,
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 */
46 };
47
48 #endif
49