]> rtime.felk.cvut.cz Git - rtems-devel.git/blob - rtems-omk-template/appnet/networkconfig-static.h
Network enabled template application.
[rtems-devel.git] / rtems-omk-template / appnet / networkconfig-static.h
1 #ifndef __NETWORKCONFIG_H__
2 #define __NETWORKCONFIG_H__
3
4 #include <rtems/rtems_bsdnet.h>
5 #include <bsp.h>
6
7 static char ethernet_address[6] = {0x00, 0x04, 0x9F, 0x00, 0x27, 0x50 };
8
9 static struct rtems_bsdnet_ifconfig netdriver_config = {
10         .name = RTEMS_BSP_NETWORK_DRIVER_NAME,
11         .attach = RTEMS_BSP_NETWORK_DRIVER_ATTACH,
12         .next = NULL,
13         .ip_address = "192.168.1.35",
14         .ip_netmask = "255.255.255.0",
15         .hardware_address = ethernet_address,
16         .ignore_broadcast = 0,
17         .mtu = 0,
18         .rbuf_count = 0,
19         .xbuf_count = 0,
20         .port = 0,
21         .irno = 0,
22         .bpar = 0,
23         .drv_ctrl = NULL
24 };
25
26 struct rtems_bsdnet_config rtems_bsdnet_config = {
27         .ifconfig = &netdriver_config,
28         .bootp = NULL,
29         .network_task_priority = 0,             /* 100        */
30         .mbuf_bytecount = 256 * 1024,           /* 64 kbytes  */
31         .mbuf_cluster_bytecount = 256 * 1024,   /* 128 kbytes */
32         .hostname = NULL,
33         .domainname = NULL,
34         .gateway = NULL,
35         .log_host = NULL,
36         .name_server = { "NULL" },
37         .ntp_server = { "NULL" },
38         .sb_efficiency = 0,
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 */
43 };
44
45 #endif
46