[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
diff --git a/bgpd/bgp_aspath.c b/bgpd/bgp_aspath.c
index a1e4608..d0d621c 100644
--- a/bgpd/bgp_aspath.c
+++ b/bgpd/bgp_aspath.c
@@ -1642,7 +1642,7 @@
/* Check actual AS value. */
if (isdigit ((int) *p))
{
- u_short asval;
+ as_t asval;
*token = as_token_asval;
asval = (*p - '0');