* iptc_* implementation queries
@ 2004-02-02 21:28 Jambunathan Jambunathan
2004-02-03 3:57 ` Kiran Kumar
2004-02-03 4:54 ` Michael Kearey
0 siblings, 2 replies; 4+ messages in thread
From: Jambunathan Jambunathan @ 2004-02-02 21:28 UTC (permalink / raw)
To: netfilter
I am interested in knowing the netfilter infrastructure and I would
like to know how iptables communicates with netfilter ( user to
kernel space communication ) I understand that it happens through
raw sockets through setsockot and getsockopt. Also there are a
good number of iptc_* calls that are declared in libiptc.h which
are used by the iptables user space tool. I would like to know
where I can see the implementations for these iptc_* calls.
I am unable to see this either in the kernel code nor in the
iptables bz2 package. I am looking at 2.4.18 code of linux
kernel fyi.
I will appreciate a mini code walk through or example.
Regards,
Jambunathan K.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: iptc_* implementation queries
2004-02-02 21:28 iptc_* implementation queries Jambunathan Jambunathan
@ 2004-02-03 3:57 ` Kiran Kumar
2004-02-03 4:54 ` Michael Kearey
1 sibling, 0 replies; 4+ messages in thread
From: Kiran Kumar @ 2004-02-03 3:57 UTC (permalink / raw)
To: Jambunathan Jambunathan, netfilter
--- Jambunathan Jambunathan <kjambunathan@novell.com>
wrote:
> I am interested in knowing the netfilter
> infrastructure and I would
> like to know how iptables communicates with
> netfilter ( user to
> kernel space communication ) I understand that it
> happens through
> raw sockets through setsockot and getsockopt. Also
> there are a
> good number of iptc_* calls that are declared in
> libiptc.h which
> are used by the iptables user space tool. I would
> like to know
> where I can see the implementations for these iptc_*
> calls.
These are in the libiptc directory of the iptables
module of cvs.
=====
Regards,
Kiran Kumar Immidi
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: iptc_* implementation queries
2004-02-02 21:28 iptc_* implementation queries Jambunathan Jambunathan
2004-02-03 3:57 ` Kiran Kumar
@ 2004-02-03 4:54 ` Michael Kearey
1 sibling, 0 replies; 4+ messages in thread
From: Michael Kearey @ 2004-02-03 4:54 UTC (permalink / raw)
To: netfilter
Jambunathan Jambunathan wrote:
> I am interested in knowing the netfilter infrastructure and I would
> like to know how iptables communicates with netfilter ( user to
> kernel space communication ) I understand that it happens through
> raw sockets through setsockot and getsockopt. Also there are a
> good number of iptc_* calls that are declared in libiptc.h which
> are used by the iptables user space tool. I would like to know
> where I can see the implementations for these iptc_* calls.
> I am unable to see this either in the kernel code nor in the
> iptables bz2 package. I am looking at 2.4.18 code of linux
> kernel fyi.
>
> I will appreciate a mini code walk through or example.
>
(Jambunathan sorry about replying directly to you..here is message to
list)
Here is a reasonably good 'walk through'. It's ever so slightly
inaccurate in some of the example code with redundant #includes, but
is pretty good as a starting point. It really should 'This is how *I*
did it', as there are several ways to acheive same thing...
http://www.tldp.org/HOWTO/Querying-libiptc-HOWTO/index.html
BTW, the libiptc isn't meant to be used as an 'API' to manipulate
tables etc. Several reasons are given see
http://netfilter.org/documentation/FAQ/netfilter-faq-4.html#ss4.5
Cheers,
Michael
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: iptc_* implementation queries
@ 2004-02-03 4:39 Jambunathan Jambunathan
0 siblings, 0 replies; 4+ messages in thread
From: Jambunathan Jambunathan @ 2004-02-03 4:39 UTC (permalink / raw)
To: netfilter; +Cc: immidi_kiran
Sorry if I am sounding stupid. Though I could see
the declarations in the 1.2.9 archive I am unable
to find the definition of iptc_* functions themselves.
Can you point me to the file that you are talking of ?
Please can someone give an hint on the user to kernel
space communication.
Regards,
Jambunathan K.
>>> Kiran Kumar <immidi_kiran@yahoo.com> 02/03/04 9:27 AM >>>
--- Jambunathan Jambunathan <kjambunathan@novell.com>
wrote:
> I am interested in knowing the netfilter
> infrastructure and I would
> like to know how iptables communicates with
> netfilter ( user to
> kernel space communication ) I understand that it
> happens through
> raw sockets through setsockot and getsockopt. Also
> there are a
> good number of iptc_* calls that are declared in
> libiptc.h which
> are used by the iptables user space tool. I would
> like to know
> where I can see the implementations for these iptc_*
> calls.
These are in the libiptc directory of the iptables
module of cvs.
=====
Regards,
Kiran Kumar Immidi
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2004-02-03 4:54 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-02 21:28 iptc_* implementation queries Jambunathan Jambunathan
2004-02-03 3:57 ` Kiran Kumar
2004-02-03 4:54 ` Michael Kearey
-- strict thread matches above, loose matches on Subject: below --
2004-02-03 4:39 Jambunathan Jambunathan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox