give a little more space

This commit is contained in:
christos 2014-11-08 00:47:32 +00:00
parent 36474778d0
commit 521e0d5bd2
1 changed files with 4 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: rtutil.c,v 1.1 2014/11/06 21:29:32 christos Exp $ */
/* $NetBSD: rtutil.c,v 1.2 2014/11/08 00:47:32 christos Exp $ */
/* $OpenBSD: show.c,v 1.1 2006/05/27 19:16:37 claudio Exp $ */
/*
@ -186,13 +186,14 @@ p_rttables(int paf, int flags, int pflags, int interesting)
/*
* column widths; each followed by one space
* width of destination/gateway column
* strlen("fe80::aaaa:bbbb:cccc:dddd@gif0") == 30, strlen("/128") == 4
* strlen("fe80::aaaa:bbbb:cccc:dddd@gif0") == 30, strlen("/128") == 4 = 34
* strlen("aaaa:bbbb:cccc:dddd:eeee:ffff:gggg:hhhh") == 39
*/
#ifndef INET6
#define WID_DST(af) 18 /* width of destination column */
#define WID_GW(af) 18 /* width of gateway column */
#else
#define WID_DST(af) ((af) == AF_INET6 ? ((flags & RT_NFLAG) ? 34 : 18) : 18)
#define WID_DST(af) ((af) == AF_INET6 ? ((flags & RT_NFLAG) ? 39 : 18) : 18)
#define WID_GW(af) ((af) == AF_INET6 ? ((flags & RT_NFLAG) ? 30 : 18) : 18)
#endif