Messages in this thread | | | Subject | Re: [patch 1/1] /proc/$$/ipaddr and per-task networking bits | From | Lorenzo Hernández García-Hierro <> | Date | Thu, 10 Mar 2005 17:00:29 +0100 |
| |
El jue, 10-03-2005 a las 16:38 +0100, Arjan van de Ven escribió: > but.... tasks don't have an IP address. Hosts do. Hosts can have > multiple IP addresses. Both ipv4 and ipv6. Users don't have IP > addresses either (they do have user IDs so that link is clear). > I think I'm missing something big here. What does it *mean* for a task > to have an IP address. Once that is clear maybe I can start to > understand the rest, but until the meaning of "task has an IP address" > is better explained/more clear I think I'm stuck. (and no the output in > a log isn't a meaning, it's only a result)
I think I've explained it well, more concretely, it tries to fill the ipaddr member of the task_struct structure with the IP address associated to the user running @current task/process,if available. Then, it will be attached within the proc fs in an entry called ipaddr, under the proper pid directory.
The whole thing is almost self-explaining by just looking at the code.
Cheers, -- Lorenzo Hernández García-Hierro <lorenzo@gnu.org> [1024D/6F2B2DEC] & [2048g/9AE91A22][http://tuxedo-es.org] [unhandled content-type:application/pgp-signature] | |