fixed the iteration over interface list in sr_router.c