On Wed, Oct 07, 2020 at 01:01:29PM +0200, Claudio Jeker wrote: > On Wed, Oct 07, 2020 at 12:27:04PM +0200, Denis Fondras wrote: > > All tunnels & point-to-point addresses are separated by "->" but inet. > > > > Before : > > gre0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1476 > > index 6 priority 0 llprio 6 > > encap: vnetid none txprio payload rxprio packet > > groups: gre > > tunnel: inet 192.0.2.1 -> 198.51.100.1 ttl 64 nodf ecn > > inet 172.16.0.1 --> 172.16.0.2 netmask 0xffff0000 > > inet6 fe80::c23f:d5ff:fe63:ffe3%gre0 -> prefixlen 64 scopeid 0x6 > > inet6 2001:db8::1 -> 2001:db8::2 prefixlen 128 > > > > After : > > gre0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1476 > > index 6 priority 0 llprio 6 > > encap: vnetid none txprio payload rxprio packet > > groups: gre > > tunnel: inet 192.0.2.1 -> 198.51.100.1 ttl 64 nodf ecn > > inet 172.16.0.1 -> 172.16.0.2 netmask 0xffff0000 > > inet6 fe80::c23f:d5ff:fe63:ffe3%gre0 -> prefixlen 64 scopeid 0x6 > > inet6 2001:db8::1 -> 2001:db8::2 prefixlen 128 > > > > OK ? > > Isn't it the other way around, that originally --> was used but then IPv6 > came and introduced -> which was copied around? > > I like --> a bit better since it stands a bit more out. >
I am totally fine with going for "-->" Index: ifconfig.c =================================================================== RCS file: /cvs/src/sbin/ifconfig/ifconfig.c,v retrieving revision 1.426 diff -u -p -r1.426 ifconfig.c --- ifconfig.c 15 Sep 2020 15:23:11 -0000 1.426 +++ ifconfig.c 7 Oct 2020 11:54:12 -0000 @@ -3219,7 +3219,7 @@ print_tunnel(const struct if_laddrreq *r 0, 0, niflag) != 0) strlcpy(pdstaddr, "<error>", sizeof(pdstaddr)); - printf(" -> %s", pdstaddr); + printf(" --> %s", pdstaddr); switch (req->dstaddr.ss_family) { case AF_INET: @@ -3635,7 +3635,7 @@ in6_alias(struct in6_ifreq *creq) if (getnameinfo((struct sockaddr *)sin6, sin6->sin6_len, hbuf, sizeof(hbuf), NULL, 0, niflag) != 0) strlcpy(hbuf, "", sizeof hbuf); - printf(" -> %s", hbuf); + printf(" --> %s", hbuf); } (void) memset(&ifr6, 0, sizeof(ifr6));