diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2004-03-12 21:14:36 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2004-03-12 21:14:36 +0000 |
commit | c282f900e7096a4b0b4d1f83f80970e419870814 (patch) | |
tree | bd31a42a8facc1409b0494b823c6c234a36cafc7 /usr.sbin | |
parent | b96b558c5f6f8af38a103c054f61da96f5643717 (diff) |
I modified the print format for AS_SET so keep the aspath_strlen() function
in sync.
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/bgpd/rde_attr.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/usr.sbin/bgpd/rde_attr.c b/usr.sbin/bgpd/rde_attr.c index 02e9698dc0c..fc35e3cb05e 100644 --- a/usr.sbin/bgpd/rde_attr.c +++ b/usr.sbin/bgpd/rde_attr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rde_attr.c,v 1.22 2004/03/12 18:09:23 claudio Exp $ */ +/* $OpenBSD: rde_attr.c,v 1.23 2004/03/12 21:14:35 claudio Exp $ */ /* * Copyright (c) 2004 Claudio Jeker <claudio@openbsd.org> @@ -907,7 +907,10 @@ aspath_strlen(void *data, u_int16_t len) seg_size = 2 + 2 * seg_len; if (seg_type == AS_SET) - total_size += 2; + if (total_size != 0) + total_size += 3; + else + total_size += 2; else if (total_size != 0) total_size += 1; |