diff options
author | Reyk Floeter <reyk@cvs.openbsd.org> | 2016-11-18 20:43:40 +0000 |
---|---|---|
committer | Reyk Floeter <reyk@cvs.openbsd.org> | 2016-11-18 20:43:40 +0000 |
commit | 89340a948115aae27bfbb4ad381df94e94527d63 (patch) | |
tree | 2de29ba2d21d12a30d53aebba664856530cd9ece /sbin | |
parent | faf06f7b21f2a0f4465d07d889cf762bbf58e9fc (diff) |
Make the ifconfig switch0 output nicer using a single line and the
same keys as the actual commands (datapath, maxgroup, flowmax).
flowmax should eventually renamed to maxflow for consistency.
OK rzalamena@
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/ifconfig/brconfig.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sbin/ifconfig/brconfig.c b/sbin/ifconfig/brconfig.c index 436e9920e34..a407a9866df 100644 --- a/sbin/ifconfig/brconfig.c +++ b/sbin/ifconfig/brconfig.c @@ -1,4 +1,4 @@ -/* $OpenBSD: brconfig.c,v 1.12 2016/10/17 10:49:17 rzalamena Exp $ */ +/* $OpenBSD: brconfig.c,v 1.13 2016/11/18 20:43:39 reyk Exp $ */ /* * Copyright (c) 1999, 2000 Jason L. Wright (jason@thought.net) @@ -1008,19 +1008,19 @@ switch_cfg(char *delim) if (ioctl(s, SIOCSWGDPID, (caddr_t)&bp) < 0) err(1, "%s", name); - printf("%sdatapath-id 0x%016llx\n", delim, bp.ifbrp_datapath); + printf("%sdatapath %#016llx", delim, bp.ifbrp_datapath); strlcpy(bp.ifbrp_name, name, sizeof(bp.ifbrp_name)); if (ioctl(s, SIOCSWGFLOWMAX, (caddr_t)&bp) < 0) err(1, "%s", name); - printf("%smax flows per table %d\n", delim, bp.ifbrp_maxflow); + printf(" flowmax %d", bp.ifbrp_maxflow); strlcpy(bp.ifbrp_name, name, sizeof(bp.ifbrp_name)); if (ioctl(s, SIOCSWGMAXGROUP, (caddr_t)&bp) < 0) err(1, "%s", name); - printf("%smax groups %d\n", delim, bp.ifbrp_maxgroup); + printf(" maxgroup %d\n", bp.ifbrp_maxgroup); } void |