Efficient use of Dummynet pipes in IPFW

Luigi Rizzo rizzo at icir.org
Mon Sep 19 00:59:33 PDT 2005


On Mon, Sep 19, 2005 at 01:32:33AM -0600, Brett Glass wrote:
...
> Unfortunately, this requires inverting the sense of rules. And in IPFW's
> very simplistic language, you can't invert a single rule with more
> than one condition into another single rule because you can only

yes i know. you need to make it into two rules.
you have to live with what is there.

Same for as the 'resume' option. It might be nice to have,
however but there is already a two-rule version (the one i
suggested, follow the non-terminating action with a skipto rule)
so its absence is not blocking you from doing what you want.

in terms of implementation, if you want to add it, the best place
would be to add the 'skipto' fields to each 'action' opcode.
I am not very interested in implementing it, though, because i still see
ipfw as a low-level language.

> I've looked at the source and it's fragmented and virtually undocumented,

are you talking about the userland part or the kernel code ?

i agree the userland part is a mess.
But the kernel code i believe is reasonably documented
(of course it could be documented better - patches welcome).
the first 250 or so lines in ip_fw2.h are almost all comments
describing the opcode formats.
ip_fw2.c tries to describe rule parsing in the body of ipfw_chk()

	cheers
	luigi


More information about the freebsd-net mailing list