|
Home --> Documentations --> PJLIB Reference
36 #ifndef _RTEMS_NETWORKCONFIG_H_
37 #define _RTEMS_NETWORKCONFIG_H_
40 #define DEFAULT_IP_ADDRESS_STRING "192.168.0.2"
41 #define DEFAULT_NETMASK_STRING "255.255.255.0"
42 #define DEFAULT_GATEWAY_STRING "192.168.0.1"
47 #ifndef RTEMS_BSP_NETWORK_DRIVER_NAME
48 #warning "RTEMS_BSP_NETWORK_DRIVER_NAME is not defined"
49 #define RTEMS_BSP_NETWORK_DRIVER_NAME "no_network1"
52 #ifndef RTEMS_BSP_NETWORK_DRIVER_ATTACH
53 #warning "RTEMS_BSP_NETWORK_DRIVER_ATTACH is not defined"
54 #define RTEMS_BSP_NETWORK_DRIVER_ATTACH 0
57 #define NETWORK_STACK_PRIORITY 128
73 #if (defined (RTEMS_SET_ETHERNET_ADDRESS))
74 static char ethernet_address[6] = { 0x00, 0x80, 0x7F, 0x22, 0x61, 0x77 };
77 #define RTEMS_USE_LOOPBACK
78 #ifdef RTEMS_USE_LOOPBACK
82 extern int rtems_bsdnet_loopattach( struct rtems_bsdnet_ifconfig* dummy, int unused);
83 static struct rtems_bsdnet_ifconfig loopback_config = {
85 rtems_bsdnet_loopattach,
95 static struct rtems_bsdnet_ifconfig netdriver_config = {
96 RTEMS_BSP_NETWORK_DRIVER_NAME,
97 RTEMS_BSP_NETWORK_DRIVER_ATTACH,
99 #ifdef RTEMS_USE_LOOPBACK
105 #if (defined (RTEMS_USE_BOOTP))
113 #if (defined (RTEMS_SET_ETHERNET_ADDRESS))
124 struct rtems_bsdnet_config rtems_bsdnet_config = {
127 #if (defined (RTEMS_USE_BOOTP))
128 rtems_bsdnet_do_bootp,
133 NETWORK_STACK_PRIORITY,
137 #if (!defined (RTEMS_USE_BOOTP))
143 { "207.202.190.162" },
PJLIB Open Source, high performance, small footprint, and very very portable framework
Copyright (C) 2006-2009 Teluu Inc.
|