Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
SDN 101: An Introduction to Software Defined Networking
Discover the advantages of SDN.
SDN has quickly become one of the hottest trends in IT. But not all SDN solutions offer real software-defined functionality. As more enterprises consider SDN, they want to know, “What is SDN? And what are the real benefits?” If you're ready to explore the advantages of SDN, and want to know how it should be implemented within your enterprise, start by reading our introductory white paper.
Click Here to receive this Complete Guide absolutely free.
I have have 8 pysical interfaces in my system which i have configured using netdevice_register fuctions.
I have to bond interfaces 1,2 and 3 to bond0 in round robin mode(ie mode=0). And bond interfaces 4 and 5 to bond1 in active backup mode (ie mode=1).
To do this mode i am supplying the bond mode at the time of bond creation throungh insmod(bonding.c) and creating slaves through enslave module.
However a different module of the project needs to know 1. whether a given interface is bonded or not.
2. if yes then what is the bonding mode.
By checking IFF_SLAVE flag of that net_device structure in interface device driver we can know whether interface is bonded or not.
But i do no know how to find out the bonding mode of the interface ie whether it is in the round-robin mode or active standby mode. I couldnt find out where is the kernel storing bonding mode information.
CAN ANYBODY HELP ME ON THIS.
Early reply would be really appreciated. Thanx in advance