I like to make a program that will manipulate the TC Linux internals, like the tc tool does. But I don''t want to execute the tc tool itself since that will have overhead and I''d have to parse the output. So the question is: is there some library to help me communicate eith the TC subsystem... or if not maybe someone could help, provide some intro to how the "tc" tools works, what are the important functions etc... Thank you. -- Damjan Georgievski jabberID: damjan@bagra.net.mk _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
I donk know much about userspace linux programing. so cant help much on that but unfortunalely I think there is no libraries for tc or iptables management probably you can modify tc into library easily, or implement file parsing like iptables-restore also you can just use c modules from tc and simply include them in your program as I know each qudisc have own tc c file. this is easy on c proogram but not much help for perl or others. ----- Original Message ----- From: "Damjan" <gdamjan@mail.net.mk> To: <lartc@mailman.ds9a.nl> Sent: Tuesday, February 17, 2004 9:14 PM Subject: [LARTC] How about libtc> I like to make a program that will manipulate the TC Linux > internals, > like the tc tool does. > > But I don''t want to execute the tc tool itself since that will have > overhead and I''d have to parse the output. > > So the question is: is there some library to help me communicate eith > the TC subsystem... or if not maybe someone could help, provide some > intro to how the ''"''tc''"'' tools works, what are the important functions > etc... > > Thank you. > > > -- > Damjan Georgievski > jabberID: damjan@bagra.net.mk > _______________________________________________ > LARTC mailing list / LARTC@mailman.ds9a.nl > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/ >_______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
On Tue, Feb 17, 2004 at 09:14PM, Damjan wrote:> > I like to make a program that will manipulate the TC Linux > > internals, > > like the tc tool does. > > > > But I don''t want to execute the tc tool itself since that will have > > overhead and I''d have to parse the output. > > > > So the question is: is there some library to help me communicate eith > > the TC subsystem... or if not maybe someone could help, provide some > > intro to how the ''"''tc''"'' tools works, what are the important functions > > etc...On Thu, Feb 19, 2004 at 01:35:45AM +0200, Roy wrote:> I donk know much about userspace linux programing. > so cant help much on that > but unfortunalely I think there is no libraries for tc or iptables > managementThere certainly isn''t a library for tc unfortunately, but there most certainly is a library for iptables. It''s called libiptc (see http://www.tldp.org/HOWTO/Querying-libiptc-HOWTO/whatis.html), and there''s even a nice perl module that interfaces with it (http://search.cpan.org/~dpates/IPTables-IPv4) -- Jody Belka knew (at) pimb (dot) org _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
> probably you can modify tc into library easily,that may be an option. I first wanted to check if it was already done.> or implement file parsing like iptables-restoreiptables-restore does not parse the iptables input, it talks directly to the kernel. -- Damjan Georgievski jabberID: damjan@bagra.net.mk _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
> > > or implement file parsing like iptables-restore > > iptables-restore does not parse the iptables input, > it talks directly to the kernel. >I was talking about other thing, iptables-restore can take multiple lines at once while iptables can parse one line at one run only of course it does not call iptables _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
This question was addressed in: http://mailman.ds9a.nl/pipermail/lartc/2003q3/010000.html Unfortunantelly my project priorities are no longer to develop such a new lib, soo I can only do this in my spare time, maybe a alpha release by summer time :) ? =Diogo Gomes> -----Original Message----- > From: lartc-admin@mailman.ds9a.nl > [mailto:lartc-admin@mailman.ds9a.nl] On Behalf Of Damjan > Sent: terça-feira, 17 de Fevereiro de 2004 19:15 > To: lartc@mailman.ds9a.nl > Subject: [LARTC] How about libtc > > > I like to make a program that will manipulate the TC Linux internals, > like the tc tool does. > > But I don''t want to execute the tc tool itself since that will have > overhead and I''d have to parse the output. > > So the question is: is there some library to help me communicate eith > the TC subsystem... or if not maybe someone could help, provide some > intro to how the "tc" tools works, what are the important functions > etc... > > Thank you. > > > -- > Damjan Georgievski > jabberID: damjan@bagra.net.mk > _______________________________________________ > LARTC mailing list / LARTC@mailman.ds9a.nl > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/ >_______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/