diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2004-02-09 01:46:35 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2004-02-09 01:46:35 +0000 |
commit | b708a70d545a6c6391448094ddfe9f87e06ba30b (patch) | |
tree | 611efeae8bf76674ad13f3d396094d2d92519b3c /usr.sbin/bgpd/printconf.c | |
parent | 39028756f5ae9140a658dbac42728878af7f9e0b (diff) |
make max_prefix an u_int32_t instead of an u_long and change its
meaning as in 0 means no limit insytead of setting it to ULONG_MAX for
no limit
Diffstat (limited to 'usr.sbin/bgpd/printconf.c')
-rw-r--r-- | usr.sbin/bgpd/printconf.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/bgpd/printconf.c b/usr.sbin/bgpd/printconf.c index b7c31dc5b7a..5168cfbeb4e 100644 --- a/usr.sbin/bgpd/printconf.c +++ b/usr.sbin/bgpd/printconf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: printconf.c,v 1.2 2004/02/09 01:38:55 henning Exp $ */ +/* $OpenBSD: printconf.c,v 1.3 2004/02/09 01:46:34 henning Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -101,8 +101,8 @@ print_peer(struct peer_config *p) printf("%s\tpassive\n", c); if (p->local_addr.af) printf("%s\tlocal-address %s\n", c, log_addr(&p->local_addr)); - if (p->max_prefix != ULONG_MAX) - printf("%s\tmax-prefix %lu\n", c, p->max_prefix); + if (p->max_prefix) + printf("%s\tmax-prefix %u\n", c, p->max_prefix); if (p->holdtime) printf("%s\tholdtime %u\n", c, p->holdtime); if (p->min_holdtime) |