Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Aug 2001 14:07:13 +0900 (JST)
From:      itojun@itojun.org
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   i386/29946: ntohl() and friends uses non-standard types
Message-ID:  <200108220507.OAA03950@kame199.kame.net>

next in thread | raw e-mail | index | archive | help

>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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200108220507.OAA03950>