From: "Américo Wang" <xiyou.wangcong@gmail.com>
To: zhanglx <zhanglx@semico.com.cn>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Question about net subsystem
Date: Fri, 23 Jul 2010 16:03:03 +0800 [thread overview]
Message-ID: <20100723080303.GA5822@cr0.nay.redhat.com> (raw)
In-Reply-To: <007001cb293c$36ec6630$3701a8c0@wxintech.com>
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.
next prev parent reply other threads:[~2010-07-23 7:59 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-22 1:21 zhanglx
2010-07-23 8:03 ` Américo Wang [this message]
2010-07-23 7:39 zhanglx
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100723080303.GA5822@cr0.nay.redhat.com \
--to=xiyou.wangcong@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=zhanglx@semico.com.cn \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®