]> rtime.felk.cvut.cz Git - orte.git/blobdiff - orte/examples/rtems-shell/networkconfig-i386-qemu.h
Reformat the sources with orte/uncrustify script
[orte.git] / orte / examples / rtems-shell / networkconfig-i386-qemu.h
index 3b23a6aa884a9cbeebfc6c29f871aeb00a881eb1..fd9a5640d67de6d6dc15fd9a58be68fdde8750eb 100644 (file)
@@ -7,65 +7,65 @@
 
 #ifdef RTEMS_USE_LOOPBACK
 
-int rtems_bsdnet_loopattach(struct rtems_bsdnet_ifconfig *, int);
+int
+rtems_bsdnet_loopattach(struct rtems_bsdnet_ifconfig *, int);
 
 #ifdef RTEMS_USE_LOOPBACK_ONLY
 static struct rtems_bsdnet_ifconfig netdriver_config = {
 #else
 static struct rtems_bsdnet_ifconfig loopback_config = {
 #endif
-       .name = "lo0",
-       .attach = rtems_bsdnet_loopattach,
-       .next = NULL,
-       .ip_address = "127.0.0.1",
-       .ip_netmask = "255.0.0.0",
+  .name = "lo0",
+  .attach = rtems_bsdnet_loopattach,
+  .next = NULL,
+  .ip_address = "127.0.0.1",
+  .ip_netmask = "255.0.0.0",
 };
 
 #endif /*RTEMS_USE_LOOPBACK*/
 
 #ifndef RTEMS_USE_LOOPBACK_ONLY
 static struct rtems_bsdnet_ifconfig netdriver_config = {
-       .name = BSP_NE2000_NETWORK_DRIVER_NAME,
-       .attach = BSP_NE2000_NETWORK_DRIVER_ATTACH,
+  .name = BSP_NE2000_NETWORK_DRIVER_NAME,
+  .attach = BSP_NE2000_NETWORK_DRIVER_ATTACH,
 #ifdef RTEMS_USE_LOOPBACK
-       .next = &loopback_config,
+  .next = &loopback_config,
 #else /*RTEMS_USE_LOOPBACK*/
-       .next = NULL,
+  .next = NULL,
 #endif /*RTEMS_USE_LOOPBACK*/
-       .ip_address = "192.168.3.66",
-       .ip_netmask = "255.255.255.0",
-       .hardware_address = NULL,
-       .ignore_broadcast = 0,
-       .mtu = 0,
-       .rbuf_count = 0,
-       .xbuf_count = 0,
-       .port = 0x300,
-       .irno = 9,
-       .bpar = 0,
-       .drv_ctrl = NULL
+  .ip_address = "192.168.3.66",
+  .ip_netmask = "255.255.255.0",
+  .hardware_address = NULL,
+  .ignore_broadcast = 0,
+  .mtu = 0,
+  .rbuf_count = 0,
+  .xbuf_count = 0,
+  .port = 0x300,
+  .irno = 9,
+  .bpar = 0,
+  .drv_ctrl = NULL
 };
 #endif /*RTEMS_USE_LOOPBACK_ONLY*/
 
 struct rtems_bsdnet_config rtems_bsdnet_config = {
-       .ifconfig = &netdriver_config,
+  .ifconfig = &netdriver_config,
 /*     .bootp = rtems_bsdnet_do_bootp,*/
 /*     .bootp = rtems_bsdnet_do_dhcp,*/
-       .bootp = rtems_bsdnet_do_dhcp_failsafe,
-       .network_task_priority = 0,             /* 100        */
-       .mbuf_bytecount = 256 * 1024,           /* 64 kbytes  */
-       .mbuf_cluster_bytecount = 256 * 1024,   /* 128 kbytes */
-       .hostname = NULL,
-       .domainname = NULL,
-       .gateway = "192.168.3.1",
-       .log_host = NULL,
-       .name_server = { "NULL" },
-       .ntp_server = { "NULL" },
-       .sb_efficiency = 0,
-       .udp_tx_buf_size = 0,                   /* UDP TX: 9216 bytes */
-       .udp_rx_buf_size = 0,                   /* UDP RX: 40 * (1024 + sizeof(struct sockaddr_in)) */
-       .tcp_tx_buf_size = 0,                   /* TCP TX: 16 * 1024 bytes */
-       .tcp_rx_buf_size = 0,                   /* TCP TX: 16 * 1024 bytes */
+  .bootp = rtems_bsdnet_do_dhcp_failsafe,
+  .network_task_priority = 0,                   /* 100        */
+  .mbuf_bytecount = 256 * 1024,                 /* 64 kbytes  */
+  .mbuf_cluster_bytecount = 256 * 1024,         /* 128 kbytes */
+  .hostname = NULL,
+  .domainname = NULL,
+  .gateway = "192.168.3.1",
+  .log_host = NULL,
+  .name_server = { "NULL" },
+  .ntp_server = { "NULL" },
+  .sb_efficiency = 0,
+  .udp_tx_buf_size = 0,                         /* UDP TX: 9216 bytes */
+  .udp_rx_buf_size = 0,                         /* UDP RX: 40 * (1024 + sizeof(struct sockaddr_in)) */
+  .tcp_tx_buf_size = 0,                         /* TCP TX: 16 * 1024 bytes */
+  .tcp_rx_buf_size = 0,                         /* TCP TX: 16 * 1024 bytes */
 };
 
-#endif
-
+#endif /* ifndef __NETWORKCONFIG_H__ */