On Thu, 2004-07-15 at 22:33, so usp wrote: > Hi... > > But i would like to know where, in kernel source, i > can find the structure that stores the http, ftp Kernel doesn't know if there is any protocol called http or ftp. It does know only TCP (and others such as UDP). HTTP and FTP are working over tcp. >From user point of view everything is a socket (ofcourse file descriptor). http and ftp are sockets having a port number (80 and 21). Creating a socket (using socket system) and binding (using bind system call) it to port number 80 and then putting it to the listen mode (using listen system call) makes that socket a http socket. So basically http socket is nothing but a listening socket (All the manipulation over http is upto the web server, Apache working in userland). Track down those three system calls (socket, bind, listen) and accept system call (Its really a tough job). For general idea u can go for man page ip(7). List, please correct me if I am wrong. > > Luis Henrique. Thanks and Regards, Shine Mohamed Jabbar > > --- Ameet Gandhare <ameet@xxxxxxxxxx> escreveu: > > Simplest is to read from ProcFS entries > > /proc/net/tcp , /proc/net/udp.Which are updated by > > network api . > > Utilities like netstat use them. > > > > ProcFS statistics are maintained by > > /usr/local/ameet/linux-2.6.1/net/ipv4/proc.c > > > > > > > > so usp wrote: > > > Hi... > > > > > > I would like to know how the kernel store the > > ports in > > > use like ftp, http, and how can i recover them. > > > > > > Thanks, > > > Luis Henrique. > > > > > > > > > > > > > > > > > > > > > _______________________________________________________ > > > Yahoo! Mail agora com 100MB, anti-spam e antivÃrus > > grÃtis! > > > http://br.info.mail.yahoo.com/ > > > > > > -- > > > Kernelnewbies: Help each other learn about the > > Linux kernel. > > > Archive: > > http://mail.nl.linux.org/kernelnewbies/ > > > FAQ: http://kernelnewbies.org/faq/ > > > > > > > *********************************************************************** > > > > > ******************************************************************** > > > > SASKEN BUSINESS DISCLAIMER > > > > This message may contain confidential, proprietary > > or legally Privileged information. In case you are > > not the original intended Recipient of the message, > > you must not, directly or indirectly, use, Disclose, > > distribute, print, or copy any part of this message > > and you are requested to delete it and inform the > > sender. Any views expressed in this message are > > those of the individual sender unless otherwise > > stated. Nothing contained in this message shall be > > construed as an offer or acceptance of any offer by > > Sasken Communication Technologies Limited ("Sasken") > > unless sent with that express intent and with due > > authority of Sasken. Sasken has taken enough > > precautions to prevent the spread of viruses. > > However the company accepts no liability for any > > damage caused by any virus transmitted by this > > email. > > > > > *********************************************************************** > > > > > > > > _______________________________________________________ > Yahoo! Mail agora com 100MB, anti-spam e antivÃrus grÃtis! > http://br.info.mail.yahoo.com/ > > -- > Kernelnewbies: Help each other learn about the Linux kernel. > Archive: http://mail.nl.linux.org/kernelnewbies/ > FAQ: http://kernelnewbies.org/faq/ > > -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/