From a1c6aeedee79fc907a4d042219a3b4d2b7f0f1a0 Mon Sep 17 00:00:00 2001 From: Henning Brauer Date: Sun, 4 Mar 2007 18:13:14 +0000 Subject: store peer AS numerically --- usr.sbin/bgpctl/irr_output.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'usr.sbin/bgpctl/irr_output.c') diff --git a/usr.sbin/bgpctl/irr_output.c b/usr.sbin/bgpctl/irr_output.c index c5519e59d78..50872ba7219 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.5 2007/03/04 17:47:31 henning Exp $ */ +/* $OpenBSD: irr_output.c,v 1.6 2007/03/04 18:13:13 henning Exp $ */ /* * Copyright (c) 2007 Henning Brauer @@ -94,7 +94,6 @@ process_policies(FILE *fh, struct policy_head *head) policy_prettyprint(fh, pi); policy_torule(fh, pi); - free(pi->peer_as); free(pi->peer_addr); free(pi->action); free(pi->filter); @@ -111,7 +110,7 @@ policy_prettyprint(FILE *fh, struct policy_item *pi) fprintf(fh, "# import: from "); else fprintf(fh, "# export: to "); - fprintf(fh, "%s ", pi->peer_as); + fprintf(fh, "AS%u ", pi->peer_as); if (pi->peer_addr) fprintf(fh, "%s ", pi->peer_addr); if (pi->action) -- cgit v1.2.3