From 8f3d54ecfe7a8396a9f568f766f95621db38d1a5 Mon Sep 17 00:00:00 2001 From: patacongo Date: Sun, 16 Sep 2007 17:46:25 +0000 Subject: [PATCH] Add basic structure to support netdevice ioctls git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@344 42af7a65-404d-4744-a932-0658087f49c3 --- arch/sim/src/up_uipdriver.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/arch/sim/src/up_uipdriver.c b/arch/sim/src/up_uipdriver.c index c98be05910..9684ca06eb 100644 --- a/arch/sim/src/up_uipdriver.c +++ b/arch/sim/src/up_uipdriver.c @@ -190,10 +190,14 @@ void uipdriver_loop(void) int uipdriver_init(void) { + /* Internal initalization */ + timer_set(&g_periodic_timer, 500); timer_set(&g_arp_timer, 10000 ); - tapdev_init(); - uip_init(); + + /* Register the device with the OS so that socket IOCTLs can be performed */ + + (void)netdev_register(&g_sim_dev); return OK; }