Skip to contentSkip to conversation

bridge management through code

Bridge [email protected] 2 participants 2 messages Aug 30, 2009 – Sep 1, 2009 Ethernet bridge

lore
Share & tools
lore
#0 lore raw

Hi,
I need to create an user interface (QT based MMI) to manage bridge but I can't found c/c++ function in user space to develop this application. The functions are: br_add_bridge, br_del_bridge etc. in libbridge.a library are accessible from user space linking the library ? These functions are in
user space or kernel space ?
Developing an application (bridgeConf.so)
during loading phase of the application the undefined reference error
related to the previus functions is generated.
While if I try to use thase functions in kernel space a compile time error is generated, the function are not declared. Are the br_*_bridge functions the correct way to manage bridge through code in user space ?
For our needs something in kernel space is useful too. What you can suggest ?

Thanks

Best Regards

Luca

#1 lore raw
Quoted 3 lines · On Sun, 30 Aug 2009 02:33:27 -0700 (PDT) "[email protected]"…

Hi,
I need to create an user interface (QT based MMI) to manage bridge but I can't found c/c++ function in user space to develop this application. The functions are: br_add_bridge, br_del_bridge etc. in libbridge.a library are accessible from user space linking the library ?

There is no standard user library for this. You need to build your own interface. Look at bridge utils source and RSTP daemon source. They use combinations of ioctl()'s, sysfs and netlink. Eventually, I hope to make all of bridge control under netlink but for now you need ioctl's and sysfs.