Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F163435056
D58347.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D58347.diff
View Options
diff --git a/usr.bin/netstat/nhops.c b/usr.bin/netstat/nhops.c
--- a/usr.bin/netstat/nhops.c
+++ b/usr.bin/netstat/nhops.c
@@ -91,6 +91,7 @@
{ NHF_GATEWAY, 'G', "gateway" },
{ NHF_DEFAULT, 'd', "default" },
{ NHF_BROADCAST,'b', "broadcast" },
+ { NHF_INVALID, 'I', "invalid" },
{ 0 , 0, NULL }
};
@@ -114,7 +115,7 @@
static struct nhop_map global_nhop_map;
static struct nhop_entry *nhop_get(struct nhop_map *map, uint32_t idx);
-
+static void p_nhflags(int f, const char *format);
static struct ifmap_entry *ifmap;
static size_t ifmap_size;
@@ -281,10 +282,10 @@
snprintf(buffer, sizeof(buffer), "{[:-%d}{:flags/%%s}{]:} ",
wid_flags - protrusion);
- //p_nhflags(nh->nh_flags, buffer);
print_flags_generic(rtm->rtm_flags, rt_bits, buffer, "rt_flags_pretty");
if (Wflag) {
+ p_nhflags(nh->nh_flags, buffer);
xo_emit("{t:use/%*lu} ", wid_pksent, nh->nh_pksent);
xo_emit("{t:mtu/%*lu} ", wid_mtu, nh->nh_mtu);
}
@@ -440,7 +441,7 @@
struct bits *p;
char *pretty_name = "nh_flags_pretty";
- xo_emit(format, fmt_flags(nh_bits, f));
+ //xo_emit(format, fmt_flags(nh_bits, f));
xo_open_list(pretty_name);
for (p = nh_bits; p->b_mask; p++)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jul 24, 4:30 AM (2 h, 53 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35284045
Default Alt Text
D58347.diff (1 KB)
Attached To
Mode
D58347: netstat(1): Emit nhop flags for encoding styles with Wflag
Attached
Detach File
Event Timeline
Log In to Comment