All of lore.kernel.org
 help / color / mirror / Atom feed
* Variable-length data?
@ 2004-09-15 17:18 Bruce Guenter
  2004-09-15 18:10 ` Henrik Nordstrom
  0 siblings, 1 reply; 2+ messages in thread
From: Bruce Guenter @ 2004-09-15 17:18 UTC (permalink / raw)
  To: netfilter-devel

Greetings.

I have written a simple filter for matching multiple network masks in a
list.  From what I can see, the actual netfilter data has to be constant
sized.  Is this true, or is there an easy way to have a non-fixed size
list of addresses (for example)?  It seems rather wasteful to allocate a
large array when only a small one is needed.

Thanks.
-- 
Bruce Guenter <bruceg@em.ca> http://em.ca/~bruceg/ http://untroubled.org/
OpenPGP key: 699980E8 / D0B7 C8DD 365D A395 29DA  2E2A E96F B2DC 6999 80E8

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Variable-length data?
  2004-09-15 17:18 Variable-length data? Bruce Guenter
@ 2004-09-15 18:10 ` Henrik Nordstrom
  0 siblings, 0 replies; 2+ messages in thread
From: Henrik Nordstrom @ 2004-09-15 18:10 UTC (permalink / raw)
  To: Bruce Guenter; +Cc: netfilter-devel

On Wed, 15 Sep 2004, Bruce Guenter wrote:

> I have written a simple filter for matching multiple network masks in a
> list.  From what I can see, the actual netfilter data has to be constant
> sized.  Is this true, or is there an easy way to have a non-fixed size
> list of addresses (for example)?

iptables matches (and targets) must use a static size matchdata structure 
per match (or target).

> It seems rather wasteful to allocate a large array when only a small one 
> is needed.

It is.

Regards
Henrik

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-09-15 18:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-15 17:18 Variable-length data? Bruce Guenter
2004-09-15 18:10 ` Henrik Nordstrom

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.