From owner-freebsd-doc Thu Jun 27 7:44:16 2002 Delivered-To: freebsd-doc@freebsd.org Received: from halley.impsat.com.br (halley.impsat.com.br [200.196.65.16]) by hub.freebsd.org (Postfix) with ESMTP id 3C85B37B4EA for ; Thu, 27 Jun 2002 07:43:52 -0700 (PDT) Received: from bra_nt10.impsat.com.br (10.80.1.20) by halley.impsat.com.br (NPlex 4.5.039) id 3D0F1B7100023127 for doc@FreeBSD.org; Thu, 27 Jun 2002 11:42:21 -0300 Received: by BRA_NT10 with Internet Mail Service (5.5.2653.19) id ; Thu, 27 Jun 2002 11:43:48 -0300 Message-ID: From: "BRA-SAO-Santos,Douglas Jose Pereira" To: doc@FreeBSD.org Subject: Little typping error on Developer's handbook Date: Thu, 27 Jun 2002 11:43:47 -0300 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org =20 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, I recently found a little typping error on the develper's handbook in the jail section ... well here it goes (sorry if it isn't the right mail to send, but i was in a hurry) As you can see, there is an entry for each of the arguments passed to the jail program, and indeed, they are set during it's execution. /usr/src/usr.sbin/jail.c j.version =3D 0;=20 j.path =3D argv[1]; j.hostname =3D argv[2]; 12.1.1.2 Networking One of the arguments passed to the Jail program is an IP address with which the jail can be accessed over the network. Jail translates the ip address given into network byte order and then stores it in j (the jail structure). /usr/src/usr.sbin/jail/jail.c: struct in.addr in;=20 ...=20 i =3D inet.aton(argv[3], &in);=20 ...=20 j.ip.number =3D ntohl(in.s.addr); <- here you see ? this should be j.ip_numer=3D ntohl(in.s.addr); // this is right. =20 - ---------=20 Douglas Jos=E9 Pereira dos Santos=20 Security Officer=20 Impsat Fiber Networks.=20 Tel. (55 11) 3444-4496=20 Fax.(55 11) 3444-6200=20 Email: dsantos@impsat.com.br=20 -----BEGIN PGP SIGNATURE----- Version: PGPfreeware 7.0.3 for non-commercial use iQA/AwUBPRsjf3G7OSBCfNU4EQJSDQCfR0cOVZt7/9+sIwuF5PNiF8AYcW8AnjVJ r/y/kvbGWAgjFKQS+Mup7Xct =3DNSob -----END PGP SIGNATURE----- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message