Changeset View
Changeset View
Standalone View
Standalone View
usr.bin/netstat/main.c
Show First 20 Lines • Show All 478 Lines • ▼ Show 20 Lines | if (iflag && !sflag) { | ||||
intpr(NULL, af); | intpr(NULL, af); | ||||
xo_close_container("statistics"); | xo_close_container("statistics"); | ||||
xo_finish(); | xo_finish(); | ||||
exit(0); | exit(0); | ||||
} | } | ||||
if (rflag) { | if (rflag) { | ||||
xo_open_container("statistics"); | xo_open_container("statistics"); | ||||
if (sflag) { | if (sflag) { | ||||
if (live) { | |||||
kresolve_list(nl); | |||||
} | |||||
rt_stats(); | rt_stats(); | ||||
} else | } else | ||||
routepr(fib, af); | routepr(fib, af); | ||||
xo_close_container("statistics"); | xo_close_container("statistics"); | ||||
xo_finish(); | xo_finish(); | ||||
exit(0); | exit(0); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 384 Lines • Show Last 20 Lines |