forked from Imagelibrary/rtems
2010-12-08 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libnetworking/loop.h, libnetworking/net/if_loop.c, libnetworking/rtems/rtems_glue.c, libmisc/dummy/dummy-networking.c: Initialize loop back interface during normal initialization via rtems_bsdnet_initialize_network().
This commit is contained in:
@@ -23,22 +23,8 @@
|
||||
#include <sys/socket.h>
|
||||
#include <netinet/in.h>
|
||||
|
||||
extern int rtems_bsdnet_loopattach(struct rtems_bsdnet_ifconfig *, int);
|
||||
|
||||
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 */
|
||||
0, /* hardware_address */
|
||||
0, 0, 0, 0,
|
||||
0, 0, 0,
|
||||
0
|
||||
};
|
||||
|
||||
struct rtems_bsdnet_config rtems_bsdnet_config = {
|
||||
&loopback_config, /* Network interface */
|
||||
NULL, /* Network interface */
|
||||
NULL, /* Use fixed network configuration */
|
||||
0, /* Default network task priority */
|
||||
0, /* Default mbuf capacity */
|
||||
|
||||
Reference in New Issue
Block a user