From owner-freebsd-doc@FreeBSD.ORG Fri Nov 4 23:00:30 2005 Return-Path: X-Original-To: freebsd-doc@hub.freebsd.org Delivered-To: freebsd-doc@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8EEC216A420 for ; Fri, 4 Nov 2005 23:00:30 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id C5A4F43D48 for ; Fri, 4 Nov 2005 23:00:28 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id jA4N0STT031791 for ; Fri, 4 Nov 2005 23:00:28 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id jA4N0Sjw031790; Fri, 4 Nov 2005 23:00:28 GMT (envelope-from gnats) Resent-Date: Fri, 4 Nov 2005 23:00:28 GMT Resent-Message-Id: <200511042300.jA4N0Sjw031790@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-doc@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Ulf Lilleengen Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1CE6516A41F for ; Fri, 4 Nov 2005 22:50:42 +0000 (GMT) (envelope-from root@kerneled.org) Received: from merke.itea.ntnu.no (merke.itea.ntnu.no [129.241.7.61]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7453243D46 for ; Fri, 4 Nov 2005 22:50:41 +0000 (GMT) (envelope-from root@kerneled.org) Received: from localhost (localhost [127.0.0.1]) by merke.itea.ntnu.no (Postfix) with ESMTP id B39C313C4F7 for ; Fri, 4 Nov 2005 23:50:39 +0100 (CET) Received: from kerneled.org (m117g.studby.ntnu.no [129.241.134.117]) by merke.itea.ntnu.no (Postfix) with ESMTP for ; Fri, 4 Nov 2005 23:50:25 +0100 (CET) Received: by kerneled.org (Postfix, from userid 0) id 7FC54B884; Fri, 4 Nov 2005 23:50:35 +0100 (CET) Message-Id: <20051104225035.7FC54B884@kerneled.org> Date: Fri, 4 Nov 2005 23:50:35 +0100 (CET) From: Ulf Lilleengen To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: docs/88507: [PATCH] Update sockets chapter in developers handbook X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Ulf Lilleengen List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Nov 2005 23:00:30 -0000 >Number: 88507 >Category: docs >Synopsis: [PATCH] Update sockets chapter in developers handbook >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-doc >State: open >Quarter: >Keywords: >Date-Required: >Class: doc-bug >Submitter-Id: current-users >Arrival-Date: Fri Nov 04 23:00:28 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Ulf Lilleengen >Release: FreeBSD 6.0-STABLE i386 >Organization: >Environment: System: FreeBSD vimes.studby.ntnu.no 6.0-STABLE FreeBSD 6.0-STABLE #2: Fri Nov 4 17:40:15 CET 2005 lulf@vimes.studby.ntnu.no:/usr/obj/usr/src/sys/VIMES i386 >Description: The chapter explaining about sockets in the developers handbook needs to be updated. The code describing the sockaddr structures as well as the address family list needs to be updated to reflect the include files. >How-To-Repeat: >Fix: --- developers_handbook_socket.diff begins here --- Index: en_US.ISO8859-1/books/developers-handbook/sockets/chapter.sgml =================================================================== RCS file: /home/ncvs/doc/en_US.ISO8859-1/books/developers-handbook/sockets/chapter.sgml,v retrieving revision 1.12 diff -u -r1.12 chapter.sgml --- en_US.ISO8859-1/books/developers-handbook/sockets/chapter.sgml 22 Jul 2005 08:18:31 -0000 1.12 +++ en_US.ISO8859-1/books/developers-handbook/sockets/chapter.sgml 4 Nov 2005 22:42:43 -0000 @@ -449,7 +449,7 @@ * addresses. */ struct sockaddr { - u_char sa_len; /* total length */ + unsigned char sa_len; /* total length */ sa_family_t sa_family; /* address family */ char sa_data[14]; /* actually longer; address value */ }; @@ -519,8 +519,12 @@ * in interface output routine */ #define AF_NETGRAPH 32 /* Netgraph sockets */ +#define AF_SLOW 33 /* 802.3ad slow protocol */ +#define AF_SCLUSTER 34 /* Sitara cluster protocol */ +#define AF_ARP 35 +#define AF_BLUETOOTH 36 /* Bluetooth sockets */ +#define AF_MAX 37 -#define AF_MAX 33 The one used for IP is @@ -544,9 +548,9 @@ * Socket address, internet style. */ struct sockaddr_in { - u_char sin_len; - u_char sin_family; - u_short sin_port; + uint8_t sin_len; + sa_family_t sin_family; + in_port_t sin_port; struct in_addr sin_addr; char sin_zero[8]; }; --- developers_handbook_socket.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted: