Skip to contentSkip to conversation

How about libtc

LARTC Damjan 4 participants 6 messages Feb 17, 2004 – Feb 20, 2004

lore
Share & tools
lore

Damjan

author
#0 lore raw

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.

Signature · 5 lines
Damjan Georgievski
jabberID: [email protected]
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
#1 lore raw

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" <[email protected]>
To: <[email protected]>
Sent: Tuesday, February 17, 2004 9:14 PM
Subject: [LARTC] How about libtc

Quoted 7 lines

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.

Quoted 15 lines

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.

Signature · 5 lines
Damjan Georgievski
jabberID: [email protected]
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#2 lore raw
In reply to Damjan
Quoted 11 lines · Damjan
Quoted 11 lines

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

Quoted 4 lines · Roy

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

There 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)

Signature · 5 lines
Jody Belka
knew (at) pimb (dot) org
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
author
#3 lore raw
In reply to Damjan
Quoted 1 line

probably you can modify tc into library easily,

that may be an option.
I first wanted to check if it was already done.

Quoted 1 line

or implement file parsing like iptables-restore

iptables-restore does not parse the iptables input, it talks directly to the kernel.

Signature · 5 lines
Damjan Georgievski
jabberID: [email protected]
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
#4 lore raw
In reply to Damjan
Quoted 8 lines
Quoted 4 lines

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 / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#5 lore raw
In reply to Damjan

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

Quoted 14 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Damjan
Sent: terça-feira, 17 de Fevereiro de 2004 19:15
To: [email protected]
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.

Quoted 15 lines

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.

Signature · 5 lines
Damjan Georgievski
jabberID: [email protected]
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/