Ethernet Bridge development
 help / color / mirror / Atom feed
* [Bridge] bridge management through code
@ 2009-08-30  9:33 salaria113
  2009-09-01 21:02 ` Stephen Hemminger
  0 siblings, 1 reply; 2+ messages in thread
From: salaria113 @ 2009-08-30  9:33 UTC (permalink / raw)
  To: bridge

[-- Attachment #1: Type: text/plain, Size: 833 bytes --]

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


      

[-- Attachment #2: Type: text/html, Size: 1063 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Bridge] bridge management through code
  2009-08-30  9:33 [Bridge] bridge management through code salaria113
@ 2009-09-01 21:02 ` Stephen Hemminger
  0 siblings, 0 replies; 2+ messages in thread
From: Stephen Hemminger @ 2009-09-01 21:02 UTC (permalink / raw)
  To: salaria113@yahoo.com; +Cc: bridge

On Sun, 30 Aug 2009 02:33:27 -0700 (PDT)
"salaria113@yahoo.com" <salaria113@yahoo.com> wrote:

> 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.


-- 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-09-01 21:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-30  9:33 [Bridge] bridge management through code salaria113
2009-09-01 21:02 ` Stephen Hemminger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox