diff options
author | Peter Hessler <phessler@cvs.openbsd.org> | 2017-01-18 04:28:46 +0000 |
---|---|---|
committer | Peter Hessler <phessler@cvs.openbsd.org> | 2017-01-18 04:28:46 +0000 |
commit | ff228505396f2f11949b5aef6d8c18ea8ad3985c (patch) | |
tree | 381a8589a8b2533a2b6cbbdbd7d70520f4d3c56a /usr.sbin | |
parent | d76ee4956982ac1c1baa844b72928e90f7503618 (diff) |
while a u_int is large enough for 32bit-asns, it is not big enough for
some of the magic values we use to indicate '*' or neighbor-as.
fixes "allow from any large-community neighbor-as:*:*"
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/bgpd/parse.y | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/bgpd/parse.y b/usr.sbin/bgpd/parse.y index 16b0fc87a4c..efbc8d45f40 100644 --- a/usr.sbin/bgpd/parse.y +++ b/usr.sbin/bgpd/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.294 2017/01/13 18:59:12 phessler Exp $ */ +/* $OpenBSD: parse.y,v 1.295 2017/01/18 04:28:45 phessler Exp $ */ /* * Copyright (c) 2002, 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -140,7 +140,7 @@ struct filter_rule *get_rule(enum action_types); int getcommunity(char *); int parsecommunity(struct filter_community *, char *); -u_int getlargecommunity(char *); +int64_t getlargecommunity(char *); int parselargecommunity(struct filter_largecommunity *, char *); int parsesubtype(char *); int parseextvalue(char *, u_int32_t *); @@ -2966,7 +2966,7 @@ parsecommunity(struct filter_community *c, char *s) return (0); } -u_int +int64_t getlargecommunity(char *s) { u_int val; |