diff options
Diffstat (limited to 'networkconfig-qemu.h')
-rw-r--r-- | networkconfig-qemu.h | 71 |
1 files changed, 33 insertions, 38 deletions
diff --git a/networkconfig-qemu.h b/networkconfig-qemu.h index 760bf6f..076aae0 100644 --- a/networkconfig-qemu.h +++ b/networkconfig-qemu.h @@ -57,13 +57,11 @@ static char ethernet_address[6] = { 0x00, 0x80, 0x7F, 0x22, 0x61, 0x77 }; */ extern void rtems_bsdnet_loopattach(); static struct rtems_bsdnet_ifconfig loopback_config = { - "lo0", /* name */ - rtems_bsdnet_loopattach, /* attach function */ - - NULL, /* link to next interface */ - - "127.0.0.1", /* IP address */ - "255.0.0.0", /* IP net mask */ + "lo0", /* name */ + rtems_bsdnet_loopattach, /* attach function */ + NULL, /* link to next interface */ + "127.0.0.1", /* IP address */ + "255.0.0.0", /* IP net mask */ }; #endif @@ -71,60 +69,57 @@ static struct rtems_bsdnet_ifconfig loopback_config = { * Default network interface */ static struct rtems_bsdnet_ifconfig netdriver_config = { - RTEMS_BSP_NETWORK_DRIVER_NAME, /* name */ - RTEMS_BSP_NETWORK_DRIVER_ATTACH, /* attach function */ + RTEMS_BSP_NETWORK_DRIVER_NAME, /* name */ + RTEMS_BSP_NETWORK_DRIVER_ATTACH, /* attach function */ #ifdef RTEMS_USE_LOOPBACK - &loopback_config, /* link to next interface */ + &loopback_config, /* link to next interface */ #else - NULL, /* No more interfaces */ + NULL, /* No more interfaces */ #endif #if (defined (RTEMS_USE_BOOTP)) - NULL, /* BOOTP supplies IP address */ - NULL, /* BOOTP supplies IP net mask */ + NULL, /* BOOTP supplies IP address */ + NULL, /* BOOTP supplies IP net mask */ #else - "10.0.2.5", /* IP address */ - "255.255.255.0", /* IP net mask */ + "10.0.2.5", /* IP address */ + "255.255.255.0", /* IP net mask */ #endif /* !RTEMS_USE_BOOTP */ #if (defined (RTEMS_SET_ETHERNET_ADDRESS)) - ethernet_address, /* Ethernet hardware address */ + ethernet_address, /* Ethernet hardware address */ #else - NULL, /* Driver supplies hardware address */ + NULL, /* Driver supplies hardware address */ #endif - 0, /* Use default driver parameters */ - 0, /* mtu */ - 0, /* rbuf_count */ - 0, /* xbuf_count */ - 0, /* port */ - 9 /* irq */ + 0, /* Use default driver parameters */ + 0, /* mtu */ + 0, /* rbuf_count */ + 0, /* xbuf_count */ + 0, /* port */ + 9 /* irq */ }; /* * Network configuration */ struct rtems_bsdnet_config rtems_bsdnet_config = { - &netdriver_config, + &netdriver_config, #if (defined (RTEMS_USE_BOOTP)) - rtems_bsdnet_do_bootp, + rtems_bsdnet_do_bootp, #else - NULL, + NULL, #endif - - 0, /* Default network task priority */ - 256 * 1024, /* Default mbuf capacity */ - 256 * 1024, /* Default mbuf cluster capacity */ - + 0, /* Default network task priority */ + 256 * 1024, /* 256K - not default mbuf capacity */ + 256 * 1024, /* 256K - not default mbuf cluster capacity */ #if (!defined (RTEMS_USE_BOOTP)) - "rtems", /* Host name */ - "", /* Domain name */ - "10.0.2.1", /* Gateway */ - "10.0.0.1", /* Log host */ - {"10.0.2.3" }, /* Name server(s) */ - {"" }, /* NTP server(s) */ - + "rtems", /* Host name */ + "", /* Domain name */ + "10.0.2.1", /* Gateway */ + "10.0.0.1", /* Log host */ + {"10.0.2.3" }, /* Name server(s) */ + {"" }, /* NTP server(s) */ #endif /* !RTEMS_USE_BOOTP */ }; |