Date: Mon, 20 Dec 2004 11:47:15 GMT From: "Vladimir Yu. Stepanov" <vys@renet.ru> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/75300: quagga come to infinitive loop when 'write file' or 'show running' command given (only amd64) Message-ID: <200412201147.iBKBlFtu074653@www.freebsd.org> Resent-Message-ID: <200412201150.iBKBoP3P056583@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 75300 >Category: ports >Synopsis: quagga come to infinitive loop when 'write file' or 'show running' command given (only amd64) >Confidential: no >Severity: serious >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Dec 20 11:50:25 GMT 2004 >Closed-Date: >Last-Modified: >Originator: Vladimir Yu. Stepanov >Release: 5.3-RELEASE >Organization: Renet COM >Environment: FreeBSD flash.renet.ru 5.3-RELEASE FreeBSD 5.3-RELEASE #1: Thu Dec 16 12:25:08 MSK 2004 root@flash.renet.ru:/M/safedir/src/sys/amd64/compile/FLASH amd64 >Description: Found problem with zebra and bgpd quagga servers. Problem become when commands like 'show running' or 'write file' are given. It happend on AMD-64 architecture (maybe IA 64 has this problem too). >How-To-Repeat: XXX:vys!~ > telnet localhost zebra Trying ::1... Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. User Access Verification Password: ZEBRA:XXX# write file (come to infinitive loop) >Fix: Apply patch: http://vys.renet.ru/patch/quagga-amd64-vys.patch diff -ruN quagga-0.96.5.orig/lib/keychain.c quagga-0.96.5/lib/keychain.c --- quagga-0.96.5.orig/lib/keychain.c Sat Mar 13 01:45:25 2004 +++ quagga-0.96.5/lib/keychain.c Sun Dec 19 20:20:52 2004 @@ -277,7 +277,7 @@ { struct keychain *keychain; struct key *key; - u_int32_t index; + u_long index; char *endptr = NULL; keychain = vty->index; @@ -304,7 +304,7 @@ { struct keychain *keychain; struct key *key; - u_int32_t index; + u_long index; char *endptr = NULL; keychain = vty->index; @@ -506,7 +506,7 @@ char *syear_str, char *duration_str) { time_t time_start; - u_int32_t duration; + u_long duration; char *endptr = NULL; time_start = key_str2time (stime_str, sday_str, smonth_str, syear_str); diff -ruN quagga-0.96.5.orig/zebra/ipforward_sysctl.c quagga-0.96.5/zebra/ipforward_sysctl.c --- quagga-0.96.5.orig/zebra/ipforward_sysctl.c Wed Jun 4 17:59:39 2003 +++ quagga-0.96.5/zebra/ipforward_sysctl.c Sun Dec 19 20:24:10 2004 @@ -44,7 +44,7 @@ int ipforward () { - int len; + size_t len; int ipforwarding = 0; len = sizeof ipforwarding; @@ -117,7 +117,7 @@ int ipforward_ipv6 () { - int len; + size_t len; int ip6forwarding = 0; len = sizeof ip6forwarding; >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200412201147.iBKBlFtu074653>