diff options
author | Kristof Provost <kp@FreeBSD.org> | 2024-01-22 16:34:44 +0000 |
---|---|---|
committer | Kristof Provost <kp@FreeBSD.org> | 2024-01-22 17:02:10 +0000 |
commit | 484e977f24418afa848d7ea1531b4379446d6065 (patch) | |
tree | 95527c3444dca8b0ea8d36d4f1079d2057853038 /sbin/pflowctl | |
parent | 8297ff13fb604c86797e6a66bc654caff2cf3ce2 (diff) | |
download | src-484e977f24418afa848d7ea1531b4379446d6065.tar.gz src-484e977f24418afa848d7ea1531b4379446d6065.zip |
pflow: observation domain is an unsigned integer
Ensure we print it as such, rather than as a signed integer, as that
would lead to confusion.
Reported by: Jim Pingle <jimp@netgate.com>
Sponsored by: Rubicon Communications, LLC ("Netgate")
Diffstat (limited to 'sbin/pflowctl')
-rw-r--r-- | sbin/pflowctl/pflowctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/pflowctl/pflowctl.c b/sbin/pflowctl/pflowctl.c index 35daedfdf478..4186598dd9bc 100644 --- a/sbin/pflowctl/pflowctl.c +++ b/sbin/pflowctl/pflowctl.c @@ -340,7 +340,7 @@ get(int id) if (! snl_parse_nlmsg(&ss, hdr, &get_parser, &g)) continue; - printf("pflow%d: version %d domain %d", g.id, g.version, g.obs_dom); + printf("pflow%d: version %d domain %u", g.id, g.version, g.obs_dom); print_sockaddr(" src ", &g.src.storage); print_sockaddr(" dst ", &g.dst.storage); printf("\n"); |