Date: Thu, 27 Jun 2002 11:43:47 -0300 From: "BRA-SAO-Santos,Douglas Jose Pereira" <dsantos@impsat.com.br> To: doc@FreeBSD.org Subject: Little typping error on Developer's handbook Message-ID: <F82AEFF6E93BD411915700508BA8E6EE033E4267@BRA_NT10>
next in thread | raw e-mail | index | archive | help
=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 <http://www.pgp.com> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?F82AEFF6E93BD411915700508BA8E6EE033E4267>