diff options
author | Esben Norby <norby@cvs.openbsd.org> | 2008-05-08 05:42:00 +0000 |
---|---|---|
committer | Esben Norby <norby@cvs.openbsd.org> | 2008-05-08 05:42:00 +0000 |
commit | 244cd2691513cb6d1d6eee063e0f79f9c1df676a (patch) | |
tree | 0874f983d78fe2bd2d94650cd79b71959138dadc /sbin/route/show.c | |
parent | f56b131ec4c0f1fd800f3b3ecd0c3ffb06ef4a60 (diff) |
Don't display the outlabel and interface for POP operations.
ok claudio@
Diffstat (limited to 'sbin/route/show.c')
-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); |