* Print header for routing table columns. */
| 217 | * Print header for routing table columns. |
| 218 | */ |
| 219 | static void |
| 220 | pr_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 | |
| 244 | static void |
| 245 | p_rtable_sysctl(int fibnum, int af) |
no test coverage detected