* IPT_ENTRY_ITERATE @ 2004-09-23 7:00 Swapnil Nagle 2004-09-23 7:43 ` IPT_ENTRY_ITERATE Martin Josefsson 0 siblings, 1 reply; 7+ messages in thread From: Swapnil Nagle @ 2004-09-23 7:00 UTC (permalink / raw) To: netfilter-devel I am embarassed to ask this but : where is IPT_ENTRY_ITERATE defined ? grep shows only one match : libiptc/libip4tc.c:#define ENTRY_ITERATE IPT_ENTRY_ITERATE Regards, Swapnil. ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: IPT_ENTRY_ITERATE 2004-09-23 7:00 IPT_ENTRY_ITERATE Swapnil Nagle @ 2004-09-23 7:43 ` Martin Josefsson 2004-09-23 8:07 ` IPT_ENTRY_ITERATE Swapnil Nagle 0 siblings, 1 reply; 7+ messages in thread From: Martin Josefsson @ 2004-09-23 7:43 UTC (permalink / raw) To: Swapnil Nagle; +Cc: netfilter-devel On Thu, 23 Sep 2004, Swapnil Nagle wrote: > I am embarassed to ask this but : where is IPT_ENTRY_ITERATE defined ? Don't be. > grep shows only one match : > > libiptc/libip4tc.c:#define ENTRY_ITERATE IPT_ENTRY_ITERATE These defines are used backwards... the function in libiptc.c is called ENTRY_ITERATE() which then gets expanded to IPT_ENTRY_ITERATE() when it's compiled for ipv4. This is because most of the libiptc code is shared between ipv4 and ipv6 and we don't want massive code duplication when it's mostly just the names of the structures that change. (look at ENTRY_ITERATE in libip6tc.c and you'll see it's similar) You want to look at ENTRY_ITERATE() in libiptc.c /Martin ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: IPT_ENTRY_ITERATE 2004-09-23 7:43 ` IPT_ENTRY_ITERATE Martin Josefsson @ 2004-09-23 8:07 ` Swapnil Nagle 2004-09-23 8:18 ` IPT_ENTRY_ITERATE KOVACS Krisztian 0 siblings, 1 reply; 7+ messages in thread From: Swapnil Nagle @ 2004-09-23 8:07 UTC (permalink / raw) To: Martin Josefsson; +Cc: netfilter-devel >>grep shows only one match : >> >>libiptc/libip4tc.c:#define ENTRY_ITERATE IPT_ENTRY_ITERATE >> >> > >These defines are used backwards... the function in libiptc.c is called >ENTRY_ITERATE() which then gets expanded to IPT_ENTRY_ITERATE() when it's >compiled for ipv4. This is because most of the libiptc code is shared > > > ... >You want to look at ENTRY_ITERATE() in libiptc.c > > > I couldn't find the definition for either ENTRY_ITERATE() or IPT_ENTRY_ITERATE() in libiptc.c. Basically I want to see the code that iterates through the entries and calls the function specified through ENTRY_ITERATE(). Regards, Swapnil. ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: IPT_ENTRY_ITERATE 2004-09-23 8:07 ` IPT_ENTRY_ITERATE Swapnil Nagle @ 2004-09-23 8:18 ` KOVACS Krisztian 2004-09-23 8:24 ` IPT_ENTRY_ITERATE Martin Josefsson 2004-09-23 8:33 ` IPT_ENTRY_ITERATE Swapnil Nagle 0 siblings, 2 replies; 7+ messages in thread From: KOVACS Krisztian @ 2004-09-23 8:18 UTC (permalink / raw) To: Swapnil Nagle; +Cc: netfilter-devel, Martin Josefsson Hi, 2004-09-23, cs keltezéssel 10:07-kor Swapnil Nagle ezt írta: > I couldn't find the definition for either ENTRY_ITERATE() or > IPT_ENTRY_ITERATE() in libiptc.c. > Basically I want to see the code that iterates through the entries and > calls the function specified through ENTRY_ITERATE(). Use LXR! http://lxr.linux.no/ident?v=2.6.8.1&i=IPT_ENTRY_ITERATE -- Regards, Krisztian KOVACS ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: IPT_ENTRY_ITERATE 2004-09-23 8:18 ` IPT_ENTRY_ITERATE KOVACS Krisztian @ 2004-09-23 8:24 ` Martin Josefsson 2004-09-23 8:33 ` IPT_ENTRY_ITERATE Swapnil Nagle 1 sibling, 0 replies; 7+ messages in thread From: Martin Josefsson @ 2004-09-23 8:24 UTC (permalink / raw) To: KOVACS Krisztian; +Cc: netfilter-devel, Swapnil Nagle On Thu, 23 Sep 2004, KOVACS Krisztian wrote: > > Hi, > > 2004-09-23, cs keltezéssel 10:07-kor Swapnil Nagle ezt írta: > > I couldn't find the definition for either ENTRY_ITERATE() or > > IPT_ENTRY_ITERATE() in libiptc.c. > > Basically I want to see the code that iterates through the entries and > > calls the function specified through ENTRY_ITERATE(). > > Use LXR! > > http://lxr.linux.no/ident?v=2.6.8.1&i=IPT_ENTRY_ITERATE Ah yes. Thats what you get for trying to answer questions before the first cup of coffee. /Martin ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: IPT_ENTRY_ITERATE 2004-09-23 8:18 ` IPT_ENTRY_ITERATE KOVACS Krisztian 2004-09-23 8:24 ` IPT_ENTRY_ITERATE Martin Josefsson @ 2004-09-23 8:33 ` Swapnil Nagle 2004-09-26 7:41 ` IPT_ENTRY_ITERATE Harald Welte 1 sibling, 1 reply; 7+ messages in thread From: Swapnil Nagle @ 2004-09-23 8:33 UTC (permalink / raw) To: KOVACS Krisztian; +Cc: netfilter-devel, Martin Josefsson >>I couldn't find the definition for either ENTRY_ITERATE() or >>IPT_ENTRY_ITERATE() in libiptc.c. >> >> ... > Use LXR! > > http://lxr.linux.no/ident?v=2.6.8.1&i=IPT_ENTRY_ITERATE > > > Thanks :) I had no idea that it was in the iptables kernel headers & not in the userspace program ! -- Swapnil ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: IPT_ENTRY_ITERATE 2004-09-23 8:33 ` IPT_ENTRY_ITERATE Swapnil Nagle @ 2004-09-26 7:41 ` Harald Welte 0 siblings, 0 replies; 7+ messages in thread From: Harald Welte @ 2004-09-26 7:41 UTC (permalink / raw) To: Swapnil Nagle; +Cc: netfilter-devel, Martin Josefsson, KOVACS Krisztian [-- Attachment #1: Type: text/plain, Size: 768 bytes --] On Thu, Sep 23, 2004 at 02:03:33PM +0530, Swapnil Nagle wrote: > Thanks :) I had no idea that it was in the iptables kernel headers & not > in the userspace program ! Both have to iterate the ruleset, so it is logical to have them only in one place. An since you can compile the kernel without iptables userspace (but not vice versa) it becomes completely obvious ;) > -- Swapnil -- - Harald Welte <laforge@netfilter.org> http://www.netfilter.org/ ============================================================================ "Fragmentation is like classful addressing -- an interesting early architectural error that shows how much experimentation was going on while IP was being designed." -- Paul Vixie [-- Attachment #2: Digital signature --] [-- Type: application/pgp-signature, Size: 189 bytes --] ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2004-09-26 7:41 UTC | newest] Thread overview: 7+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2004-09-23 7:00 IPT_ENTRY_ITERATE Swapnil Nagle 2004-09-23 7:43 ` IPT_ENTRY_ITERATE Martin Josefsson 2004-09-23 8:07 ` IPT_ENTRY_ITERATE Swapnil Nagle 2004-09-23 8:18 ` IPT_ENTRY_ITERATE KOVACS Krisztian 2004-09-23 8:24 ` IPT_ENTRY_ITERATE Martin Josefsson 2004-09-23 8:33 ` IPT_ENTRY_ITERATE Swapnil Nagle 2004-09-26 7:41 ` IPT_ENTRY_ITERATE Harald Welte
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.