diff options
| author | 2007-03-04 17:03:01 +0000 | |
|---|---|---|
| committer | 2007-03-04 17:03:01 +0000 | |
| commit | d4981e69aa135fe35284b950726673b4a31ea2f9 (patch) | |
| tree | 1e5c2e0b63a07fe291eba4f64e182a7328c7bcf8 /usr.sbin/bgpctl/irr_output.c | |
| parent | Oops, bring back pmap_collect1() and the check for pmap_kernel() in (diff) | |
| download | wireguard-openbsd-d4981e69aa135fe35284b950726673b4a31ea2f9.tar.xz wireguard-openbsd-d4981e69aa135fe35284b950726673b4a31ea2f9.zip | |
fix output format. spent too much time with RPSL...
Diffstat (limited to 'usr.sbin/bgpctl/irr_output.c')
| -rw-r--r-- | usr.sbin/bgpctl/irr_output.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/bgpctl/irr_output.c b/usr.sbin/bgpctl/irr_output.c index fe91a85b7fb..ac2293d8558 100644 --- a/usr.sbin/bgpctl/irr_output.c +++ b/usr.sbin/bgpctl/irr_output.c @@ -1,4 +1,4 @@ -/* $OpenBSD: irr_output.c,v 1.3 2007/03/04 12:37:07 henning Exp $ */ +/* $OpenBSD: irr_output.c,v 1.4 2007/03/04 17:03:01 henning Exp $ */ /* * Copyright (c) 2007 Henning Brauer <henning@openbsd.org> @@ -170,10 +170,10 @@ action_torule(char *s) if (!strcmp(key, "pref")) snprintf(ebuf, sizeof(ebuf), - "%s localpref=%s", pre, val); + "%s localpref %s", pre, val); else if (!strcmp(key, "med")) snprintf(ebuf, sizeof(ebuf), - "%s med=%s", pre, val); + "%s med %s", pre, val); else warnx("unknown action key \"%s\"", key); @@ -207,7 +207,7 @@ print_rule(FILE *fh, enum pdir pdir, char *peerspec, char *actspec, action = action_torule(actspec); if (prefix == NULL) - fprintf(fh, fmt, dir, peer, action, "", ""); + fprintf(fh, fmt, dir, peer, "", "", action); else - fprintf(fh, fmt, dir, peer, action, " prefix ", prefix); + fprintf(fh, fmt, dir, peer, " prefix ", prefix, action); } |
