[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freebsd-hackers
Subject:    ipfw2 interface / examples
From:       Dirk-Willem van Gulik <dirkx () webweaving ! org>
Date:       2003-04-30 9:50:36
[Download RAW message or body]


I am recoding some firewall management code which acts on data on the
application layer (to open ports etc) from ipfw to the new ipfw2. And am
struggling a bit understanding what exactly to pass.

-	Needless to say - a bug in your rule gives one
	a 'Adding rule: Invalid argument' errno; is there
	any way/tool to decode how the IP_FW_ADD struct is
	passed and get some more insight ?

-	Is there a simpler example than ipfw2.c, or an raw docs
	for the getsockopt() api which helps me understand this better.
	In particular the from/to 'O_IN/(!O_IN)' versus the ability
	of ipfw.c to set both IP_FW_F_IN and IP_FW_F_OUT to make
	the rule symetrical around from/to.

Thanks.

Dw

_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic