MCPcopy Create free account
hub / github.com/F-Stack/f-stack / pr_rthdr

Function pr_rthdr

tools/netstat/route.c:219–242  ·  view source on GitHub ↗

* Print header for routing table columns. */

Source from the content-addressed store, hash-verified

217 * Print header for routing table columns.
218 */
219static void
220pr_rthdr(int af1 __unused)
221{
222
223 if (Wflag) {
224 xo_emit("{T:/%-*.*s} {T:/%-*.*s} {T:/%-*.*s} {T:/%*.*s} "
225 "{T:/%*.*s} {T:/%*.*s} {T:/%*s}\n",
226 wid_dst, wid_dst, "Destination",
227 wid_gw, wid_gw, "Gateway",
228 wid_flags, wid_flags, "Flags",
229 wid_mtu, wid_mtu, "Nhop#",
230 wid_mtu, wid_mtu, "Mtu",
231 wid_if, wid_if, "Netif",
232 wid_expire, "Expire");
233 } else {
234 xo_emit("{T:/%-*.*s} {T:/%-*.*s} {T:/%-*.*s} {T:/%*.*s} "
235 "{T:/%*s}\n",
236 wid_dst, wid_dst, "Destination",
237 wid_gw, wid_gw, "Gateway",
238 wid_flags, wid_flags, "Flags",
239 wid_if, wid_if, "Netif",
240 wid_expire, "Expire");
241 }
242}
243
244static void
245p_rtable_sysctl(int fibnum, int af)

Callers 1

p_rtable_sysctlFunction · 0.85

Calls 1

xo_emitFunction · 0.85

Tested by

no test coverage detected