! ! Enhance debugging output. In case of virtual network stacks, ! print the vnet pointer, when printing each entry also print ! the link layer entry pointer. ! ! Sponsored by: ISPsystem ! Reviewed by: julian ! MFC After: ! --- sys/net/flowtable.c.orig 2010-02-16 13:07:37.000000000 +0000 +++ sys/net/flowtable.c 2010-02-16 13:08:40.000000000 +0000 @@ -1114,8 +1114,8 @@ idle_time = (int)(time_uptime - fle->f_uptime); rt_valid = fle->f_rt != NULL; - db_printf("hash=0x%08x idle_time=%03d rt=%p ifp=%p", - fle->f_fhash, idle_time, + db_printf("hash=0x%08x idle_time=%03d lle=%p rt=%p ifp=%p", + fle->f_fhash, idle_time, fle->f_lle, fle->f_rt, rt_valid ? fle->f_rt->rt_ifp : NULL); if (rt_valid && (fle->f_rt->rt_flags & RTF_UP)) db_printf(" RTF_UP "); @@ -1187,6 +1187,9 @@ VNET_FOREACH(vnet_iter) { CURVNET_SET(vnet_iter); +#ifdef VIMAGE + db_printf("vnet %p\n", vnet_iter); +#endif flowtable_show_vnet(); CURVNET_RESTORE(); }