pkgsrc-wip/openbgpd-as4byte/patches/patch-aj
George Michaelson edb12a94da This is a modified import of the FreeBSD port of OpenBGPD.
This pkg includes modifications to implement 4byte (32bit) AS number extensions
to BGP.

the original FreeBSD port descr is appended below.

-george

OpenBGPD is a FREE implementation of the Border Gateway Protocol, Version 4.
It allows ordinary machines to be used as routers exchanging routes with
other systems speaking the BGP protocol.

WWW: http://www.openbgp.org/

- Florent Thoumie
flz@xbsd.org
2007-01-12 04:32:48 +00:00

11 lines
353 B
Text

--- bgpd/parse.y.dist 2007-01-11 13:14:40.000000000 +1000
+++ bgpd/parse.y 2007-01-11 12:50:41.000000000 +1000
@@ -2322,7 +2322,7 @@
t[0] = s[2*i];
t[1] = s[2*i + 1];
t[2] = 0;
- if (!isxdigit(t[0]) || !isxdigit(t[1])) {
+ if (!isxdigit((int)t[0]) || !isxdigit((int)t[1])) {
yyerror("key must be specified in hex");
return (-1);
}