From owner-freebsd-bugs Tue Aug 21 22:10:39 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 47C6737B406 for ; Tue, 21 Aug 2001 22:10:18 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f7M5AIU77520; Tue, 21 Aug 2001 22:10:18 -0700 (PDT) (envelope-from gnats) Received: from kame199.kame.net (kame199.kame.net [203.178.141.199]) by hub.freebsd.org (Postfix) with ESMTP id 4FA1237B413 for ; Tue, 21 Aug 2001 22:07:14 -0700 (PDT) (envelope-from itojun@kame.net) Received: (from itojun@localhost) by kame199.kame.net (8.9.3+3.2W/3.7W) id OAA03950; Wed, 22 Aug 2001 14:07:13 +0900 (JST) Message-Id: <200108220507.OAA03950@kame199.kame.net> Date: Wed, 22 Aug 2001 14:07:13 +0900 (JST) From: itojun@itojun.org Reply-To: itojun@kame.net To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: i386/29946: ntohl() and friends uses non-standard types Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 29946 >Category: i386 >Synopsis: ntohl() and friends uses non-standard types >Confidential: no >Severity: serious >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Aug 21 22:10:17 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Jun-ichiro itojun Hagino >Release: FreeBSD 2.2.8 and up to current >Organization: itojun.org >Environment: all past revisions of freebsd/i386. checked with cvs. >Description: in XNET 5.2, ntohl() and htonl() are typed as follows: uint32_t ntohl(uint32_t x); and ntohs() and htons() are: uint16_t ntohs(uint16_t x); freebsd src/sys/i386/include/endian.h uses u_long and u_short, which are different from these types, and causes problem in portable appliation programming. >How-To-Repeat: code inspection >Fix: >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message