LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-29-2004, 10:34 PM   #1
anuqan
LQ Newbie
 
Registered: Mar 2004
Posts: 2

Rep: Reputation: 0
reading bridge values from kernel


Hi!
I am using my Linux Box as a bridge. I use brctl to configure it. It is working fine. brctl showmacs br0 shows the list of Mac Addresses the bridge knows about. Now I want to read the values directly by opening a file etc in a routine. i.e I need to know where brctl gets the values from so that I can also get them from there directly.
Could anyone please help... its urgent
Thanks
Anupama
 
Old 03-30-2004, 12:33 AM   #2
leckie
Member
 
Registered: Dec 2003
Location: Australia
Distribution: Mandrake 9.2
Posts: 151

Rep: Reputation: 30
well for startes you can simply redirect the output from brctl into the script it's self, this is probably a more ideal solution then reading it from a file.
I also have no idea where it stores the data, but have a good look through /proc/ and also iptables, or chains depending on what you use. The data how ever is stored in what is called a Forwarding DataBase (fdb), try looking this up and see what you find.
 
Old 03-30-2004, 01:08 AM   #3
anuqan
LQ Newbie
 
Registered: Mar 2004
Posts: 2

Original Poster
Rep: Reputation: 0
thanks for the prompt reply. I was going thru the source code of brctl - you are right about forwarding tables - it all boils to an ioctl call and I am not too familiar with ioctl - am now doing some study on that
 
Old 04-14-2004, 06:18 PM   #4
159ww
LQ Newbie
 
Registered: Apr 2004
Posts: 1

Rep: Reputation: 0
brctl

Hi,

I have a quick question about brctl. I want to directly access the MAC address to physical interface mapping of the bridge - where is this stored internally? I dont want to use brctl show/showmacs.
Please shed some light on how to do this
Thanks!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
bash; reading values from a file km4hr Programming 16 07-28-2005 02:07 PM
reading values for a background process shadowman21i Programming 1 12-22-2004 06:47 AM
when changing values under make xconfig, need to recompile the whole kernel? sirpelidor Linux - Newbie 2 02-01-2004 11:15 PM
Firewall-Bridge Kernel Question eldavido Linux - Networking 3 09-26-2003 10:39 PM
Perl of Wisdom needed for reading in iptables values pjcp64 Programming 5 06-02-2003 05:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:13 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration