From owner-freebsd-bugs@FreeBSD.ORG Fri May 11 22:10:11 2007 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A1AC916A403 for ; Fri, 11 May 2007 22:10:11 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 8BE5613C447 for ; Fri, 11 May 2007 22:10:11 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l4BMABeb021058 for ; Fri, 11 May 2007 22:10:11 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l4BMABbf021057; Fri, 11 May 2007 22:10:11 GMT (envelope-from gnats) Date: Fri, 11 May 2007 22:10:11 GMT Message-Id: <200705112210.l4BMABbf021057@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Tyler Spivey Cc: Subject: bin/112163 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Tyler Spivey List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 May 2007 22:10:11 -0000 The following reply was made to PR bin/112163; it has been noted by GNATS. From: Tyler Spivey To: bug-followup@freebsd.org Cc: Subject: bin/112163 Date: Fri, 11 May 2007 15:08:23 -0700 diff -ur bootparamd-orig/bootparamd/bootparamd.c bootparamd/bootparamd/bootparamd.c --- bootparamd-orig/bootparamd/bootparamd.c Thu May 10 01:31:56 2007 +++ bootparamd/bootparamd/bootparamd.c Fri May 11 14:57:10 2007 @@ -28,7 +28,7 @@ #include #include extern int debug, dolog; -extern unsigned long route_addr; +extern in_addr_t route_addr; extern char *bootpfile; #define MAXLEN 800 @@ -48,7 +48,7 @@ bp_whoami_arg *whoami; struct svc_req *req; { - long haddr; + in_addr_t haddr; static bp_whoami_res res; if (debug) fprintf(stderr,"whoami got question for %d.%d.%d.%d\n", @@ -81,7 +81,7 @@ if ( res.router_address.address_type != IP_ADDR_TYPE ) { res.router_address.address_type = IP_ADDR_TYPE; - bcopy( &route_addr, &res.router_address.bp_address_u.ip_addr, 4); + bcopy( &route_addr, &res.router_address.bp_address_u.ip_addr, sizeof(in_addr_t)); } if (debug) fprintf(stderr, "Returning %s %s %d.%d.%d.%d\n", Only in bootparamd/bootparamd: bootparamd.o Only in bootparamd/bootparamd: bootparams.5.gz diff -ur bootparamd-orig/bootparamd/main.c bootparamd/bootparamd/main.c --- bootparamd-orig/bootparamd/main.c Thu May 10 01:31:56 2007 +++ bootparamd/bootparamd/main.c Fri May 11 14:57:10 2007 @@ -32,7 +32,7 @@ int debug = 0; int dolog = 0; -unsigned long route_addr = -1; +in_addr_t route_addr = -1; struct sockaddr_in my_addr; char *bootpfile = "/etc/bootparams"; Only in bootparamd/bootparamd: main.o diff -ur bootparamd-orig/callbootd/callbootd.c bootparamd/callbootd/callbootd.c --- bootparamd-orig/callbootd/callbootd.c Thu May 10 01:31:56 2007 +++ bootparamd/callbootd/callbootd.c Fri May 11 14:57:10 2007 @@ -79,7 +79,7 @@ bp_getfile_res *getfile_res, stat_getfile_res; - long the_inet_addr; + in_addr_t the_inet_addr; CLIENT *clnt; enum clnt_stat clnt_stat;