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
-----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 = 0;
j.path = argv[1];
j.hostname = 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;
...
i = inet.aton(argv[3], &in);
...
j.ip.number = ntohl(in.s.addr); <- here you see ? this should be
j.ip_numer= ntohl(in.s.addr); // this is right.
- ---------
Douglas José Pereira dos Santos
Security Officer
Impsat Fiber Networks.
Tel. (55 11) 3444-4496
Fax.(55 11) 3444-6200
Email: dsantos@impsat.com.br
-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 7.0.3 for non-commercial use <http://www.pgp.com>
iQA/AwUBPRsjf3G7OSBCfNU4EQJSDQCfR0cOVZt7/9+sIwuF5PNiF8AYcW8AnjVJ
r/y/kvbGWAgjFKQS+Mup7Xct
=NSob
-----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>
