Mailing List ArchiveSupport open source code!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: Association between eth0 and 3c59x...
- To: Tokyo Linux Users' Group <tlug@example.com>
- Subject: Re: Association between eth0 and 3c59x...
- From: Tim Hurman <kano-tlug@example.com>
- Date: Sat, 1 Sep 2001 12:52:03 +0900 (JST)
- Content-Type: TEXT/PLAIN; charset=US-ASCII
- Delivered-To: tlug@example.com
- In-Reply-To: <Pine.GSO.4.05.10108311809120.18641-100000@example.com>
- List-Help: <mailto:tlug-request@example.comsubject=help>
- List-Post: <mailto:tlug@example.com>
- List-Subscribe: <mailto:tlug-request@example.comsubject=subscribe>
- List-Unsubscribe: <mailto:tlug-request@example.comsubject=unsubscribe>
- Old-Return-Path: <kano-tlug@example.com>
- Reply-To: tlug@example.com
- Resent-From: tlug@example.com
- Resent-Message-ID: <FnTaEB.A.p2.psFk7@example.com>
- Resent-Sender: tlug-request@example.com
sorry, half asleep this morning, the way I did it a while back was to know what mac addrs I have, then use the SIOCGIFCONF ioctl call which returns a lot on info on the currently open socket (you have to bind a socket to INADDR_ANY or 0 first). One whing it returns is the MAC address which you can match. If you are doing this sort of thing, I would sggest TCP/IP Illustrated volume 1, it is an excellent reference book anyway. I have an example of using this ioctl on http://www.kano.org.uk/projects/pxe/pxe-1.2.tar.gz sock.cc contains some fairly evil socket code. Tim On Fri, 31 Aug 2001, Scott M. Stone wrote: > > How can you figure out, by querying the kernel, what ethernet driver is > bound, say, to eth0? shouldn't the kernel keep track of this somewhere? > I can't find any ioctl, any system call, etc, that will give me this > information. > > I would think there's some way to ask the kernel, "what driver is giving > you eth0" without having to look through dmesg, conf.modules, etc, etc.. > > -------------------------- > Scott M. Stone <sstone@example.com> > Director of Information Technology, Director of Research and Development > ITIsOpen, Inc. - http://www.itisopen.com > Cisco Certified Network Associate, Sun Solaris Certified Systems Administrator > > ----------------------------------------------------------------------- > Next Technical Meeting: Sat, Sep 15 13:30- Leading Edge Co., Place Canada > Next Nomikai Meeting: Fri, Oct 19 19:30- Tengu Tokyo Eki-Mae > ----------------------------------------------------------------------- > more info: http://www.tlug.gr.jp Sponsor: Global Online Japan > >
- References:
- Association between eth0 and 3c59x...
- From: "Scott M. Stone" <sstone@example.com>
Home | Main Index | Thread Index
- Prev by Date: Re: Association between eth0 and 3c59x...
- Next by Date: Re: Association between eth0 and 3c59x...
- Prev by thread: Re: Association between eth0 and 3c59x...
- Next by thread: serial and other devices programming.
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links