diff options
author | Klemens Nanni <kn@cvs.openbsd.org> | 2022-11-09 18:00:03 +0000 |
---|---|---|
committer | Klemens Nanni <kn@cvs.openbsd.org> | 2022-11-09 18:00:03 +0000 |
commit | 115cdb436ee6239e8b814dadbcc4ef381e7002b1 (patch) | |
tree | e283aa4fbc9f888fe155fa78f6e6021717d2ca3b /usr.sbin/ndp | |
parent | 3a9958fcf5e78bb634786300ab1364fc9f15d162 (diff) |
ndp, route, netstat: adjust ipv6 address width
It has been annoying me for too long that fully specififed GUAs
(2001:0db8:3333:4444:5555:6666:7777:8888) mess up alignment.
systat(1)'s netstat is the only view that has a big enough limit and thus
never misaligns.
Unify ndp(8), route(8) and netstat(1) views to always align nicely.
Feedback OK claudio
Diffstat (limited to 'usr.sbin/ndp')
-rw-r--r-- | usr.sbin/ndp/ndp.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/usr.sbin/ndp/ndp.c b/usr.sbin/ndp/ndp.c index 802fff19914..8b3cfeeb300 100644 --- a/usr.sbin/ndp/ndp.c +++ b/usr.sbin/ndp/ndp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ndp.c,v 1.103 2021/03/02 05:34:20 jsg Exp $ */ +/* $OpenBSD: ndp.c,v 1.104 2022/11/09 18:00:02 kn Exp $ */ /* $KAME: ndp.c,v 1.101 2002/07/17 08:46:33 itojun Exp $ */ /* @@ -457,7 +457,10 @@ delete: return 0; } -#define W_ADDR 36 +/* + * strlen("2001:0db8:3333:4444:5555:6666:7777:8888") == 39 + */ +#define W_ADDR 39 #define W_LL 17 #define W_IF 7 |