Re: iptables-dev Source Example

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Well, I have been running "tc" commands like "tc qdisc" or "tc class" to
get some information I need on various devices and interfaces.

Right now I need to implement the exact same feature in a program of mine,
but I don't want to just externally call the "tc" command and read its
output... So I was searching for an API to use it in my source code. My
search led me to the iptc-dev and iptables-dev libraries, but those have
no tutorial or how-tos so I'm kinda lost...

So, that's my story and that's why I posted the initial question in this
mailing list.

I guess I'm gonna have to read the "tc" source codes and find a way on my
own.. Sounds like fun...not :p



>>> What I want to do is to write my very own program using the iptables
>>> library to query the interface information
>>> of various machines (queues, lost packets, total packets etc).
>
> I'm also not sure why you're even thinking about the 'iptables'
> library - it has to do with firewall management.
> Sounds like what you're wanting to query is basic interface statistics.
> I would suggest looking at programs like ip (iproute / iproute2)
> and/or netlink libraries (or worst case the obsolete ifconfig).
>
> - Maciej
>


-- 
Katia Sarsempagieva
-----
Research Associate
Media Networks Laboratory
Institute of Networks and Telecommunications
NCSR Demokritos

--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux