lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20100723080303.GA5822@cr0.nay.redhat.com>
Date:	Fri, 23 Jul 2010 16:03:03 +0800
From:	Américo Wang <xiyou.wangcong@...il.com>
To:	zhanglx <zhanglx@...ico.com.cn>
Cc:	linux-kernel@...r.kernel.org
Subject: Re: Question about net subsystem

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@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ