summaryrefslogtreecommitdiff
path: root/bgpd/bgp_aspath.c
diff options
context:
space:
mode:
authorDenis Ovsienko <pilot@etcnet.org>2009-06-09 15:15:33 +0400
committerDenis Ovsienko <pilot@etcnet.org>2009-06-09 15:15:33 +0400
commit10819ecee3ced786162b68310cf172aacda18857 (patch)
tree0680aa68e15af0c5bb1080e5d30fc446fac3d119 /bgpd/bgp_aspath.c
parent6e0989e113d9e2268e58cfe29922e971793c1d06 (diff)
[bgpd] Fixed as-path prepend/exclude ASN handling
- aspath_gettoken(): use as_t to fix 4-byte ASN scanning (bug #484) - set_aspath_prepend_cmd(): use CMD_AS_RANGE in message to match actual range - no_set_aspath_prepend_val_cmd(): idem - set_aspath_exclude_cmd(): idem - no_set_aspath_exclude_val_cmd(): idem
Diffstat (limited to 'bgpd/bgp_aspath.c')
-rw-r--r--bgpd/bgp_aspath.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bgpd/bgp_aspath.c b/bgpd/bgp_aspath.c
index a1e4608f..d0d621c2 100644
--- a/bgpd/bgp_aspath.c
+++ b/bgpd/bgp_aspath.c
@@ -1642,7 +1642,7 @@ aspath_gettoken (const char *buf, enum as_token *token, u_long *asno)
/* Check actual AS value. */
if (isdigit ((int) *p))
{
- u_short asval;
+ as_t asval;
*token = as_token_asval;
asval = (*p - '0');