Prev: linux-next: manual merge of the sound tree with the arm tree
Next: [PATCH] V7: Add support for non-PDP11 v7 filesystems
From: zhanglx on 21 Jul 2010 21:30 hello, I have some questions about net subsystem. Does the kernel code store the IP address of local machine, in which variable? If there are two net cards, then there will be two IP and MAC address, how will the kernel store them? When there are two net cards, which card will the PC use to connect to net. Does the webbrowser such as Firefox also use the series of functions( sock(), connect(), send(),receive()...) to connect to internet? Thanks, zhanglx
From: Américo Wang on 23 Jul 2010 04:00
On Thu, Jul 22, 2010 at 09:21:30AM +0800, zhanglx wrote: >hello, > >I have some questions about net subsystem. > >Does the kernel code store the IP address of local machine, in which variable? Yes, it is in a per-interface struct, you must be interested in how SIOCGIFADDR is handled. > >If there are two net cards, then there will be two IP and MAC address, how will the kernel store them? When there are two net cards, which card will the PC use to connect to net. > This depends on your route table. :) >Does the webbrowser such as Firefox also use the series of functions( sock(), connect(), send(),receive()...) to connect to internet? > Sure. Hope this helps. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ |