diff options
author | 2008-05-08 05:41:59 +0000 | |
---|---|---|
committer | 2008-05-08 05:41:59 +0000 | |
commit | eb0b8b2e9bfbc1f8c48aa35d0811bbe829770ece (patch) | |
tree | a72690422b62ebb02ea018a7d621ee6c7ad27a7e | |
parent | don't break dhcpd when not using synch mechanisms.. (diff) | |
download | wireguard-openbsd-eb0b8b2e9bfbc1f8c48aa35d0811bbe829770ece.tar.xz wireguard-openbsd-eb0b8b2e9bfbc1f8c48aa35d0811bbe829770ece.zip |
Don't display the outlabel and interface for POP operations.
ok claudio@
-rw-r--r-- | sbin/route/show.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sbin/route/show.c b/sbin/route/show.c index 86071141229..542058804f8 100644 --- a/sbin/route/show.c +++ b/sbin/route/show.c @@ -1,4 +1,4 @@ -/* $OpenBSD: show.c,v 1.66 2008/05/07 06:06:25 claudio Exp $ */ +/* $OpenBSD: show.c,v 1.67 2008/05/08 05:41:59 norby Exp $ */ /* $NetBSD: show.c,v 1.1 1996/11/15 18:01:41 gwr Exp $ */ /* @@ -890,7 +890,8 @@ label_print(struct sockaddr *sa) err(1, NULL); (void)snprintf(line, sizeof(line), "%-20s %-20s %-6s", in_label, - out_label, label_print_op(smpls->smpls_operation)); + smpls->smpls_operation == MPLS_OP_POP ? "-" : out_label, + label_print_op(smpls->smpls_operation)); free(in_label); free(out_label); |