<HTML ><HEAD ><TITLE >Objectives</TITLE ><META NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ "><LINK REL="HOME" TITLE="Querying libiptc HOWTO" HREF="index.html"><LINK REL="PREVIOUS" TITLE="Credits" HREF="credits.html"><LINK REL="NEXT" TITLE="What is libiptc?" HREF="whatis.html"></HEAD ><BODY CLASS="SECT1" BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#840084" ALINK="#0000FF" ><DIV CLASS="NAVHEADER" ><TABLE SUMMARY="Header navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TH COLSPAN="3" ALIGN="center" >Querying libiptc HOWTO</TH ></TR ><TR ><TD WIDTH="10%" ALIGN="left" VALIGN="bottom" ><A HREF="credits.html" ACCESSKEY="P" >Prev</A ></TD ><TD WIDTH="80%" ALIGN="center" VALIGN="bottom" ></TD ><TD WIDTH="10%" ALIGN="right" VALIGN="bottom" ><A HREF="whatis.html" ACCESSKEY="N" >Next</A ></TD ></TR ></TABLE ><HR ALIGN="LEFT" WIDTH="100%"></DIV ><DIV CLASS="SECT1" ><H1 CLASS="SECT1" ><A NAME="OBJECT">5. Objectives</H1 ><P >This HOWTO explains how to use the <EM >libiptc</EM > library included in the <EM >iptables</EM > package. This document can show you how to use short C or C++ programs to query the internal structure of the firewalling code, to check chains and rules, packet and byte counters, and in a second phase, if you are a little <SPAN CLASS="QUOTE" >"brave"</SPAN >, to modify them.</P ><P >You can find the latest version of this document at <A HREF="http://opalsoft.net/qos/libiptc/qlibiptc.html" TARGET="_top" >Querying libiptc HOWTO.html</A >.</P ><P >If you have suggestions to help make this document better, please submit your ideas to me at the following address: <A HREF="mailto:leonardo@opalsoft.net" TARGET="_top" >leonardo@opalsoft.net</A >.</P ><P >While I wrote this HOWTO, I developed a simple bandwith meter using user-defined chains to get the data to be measured. This idea was conceived looking at <B CLASS="COMMAND" >monitor.pl</B >, a simple perl program for bandwith measurement, written by Stef Coene at <A HREF="http://www.docum.org" TARGET="_top" >http://www.docum.org</A >. I recommend this site to people interested in bandwidth control and measurement.</P ></DIV ><DIV CLASS="NAVFOOTER" ><HR ALIGN="LEFT" WIDTH="100%"><TABLE SUMMARY="Footer navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" ><A HREF="credits.html" ACCESSKEY="P" >Prev</A ></TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="index.html" ACCESSKEY="H" >Home</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" ><A HREF="whatis.html" ACCESSKEY="N" >Next</A ></TD ></TR ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" >Credits</TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" > </TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" >What is libiptc?</TD ></TR ></TABLE ></DIV ></BODY ></HTML >