Designing a library interface for ipfilter...

2007-03-07 Thread Darren . Reed
A project I'm looking to do in my spare time at Sun is to create a library that provides access to some of the more useful ioctls supported by IPFilter. The problem with relying on ioctls is that if the data structures passed through change then often everything needs to be recompiled. I current

Re: ifconfig bridge0 without module not work ?

2007-03-07 Thread Andrew Thompson
On Wed, Mar 07, 2007 at 10:42:42PM +0100, rmkml wrote: > Hi, > I have disabled/removed module on kernel, anyone ok, > but when I create bridge0 : > ifconfig bridge0 create > ifconfig: SIOCIFCREATE: Invalid argument > I just added "options BRIDGE" on my kernel conf. > uname -a : 6.2-RELEASE > ok i

Re: ifconfig bridge0 without module not work ?

2007-03-07 Thread Miroslav Slavkov
man if_bridge options BRIDGE is different bridge implementation to use if_bridge: kldload if_bridge (or add it to kernel config or /boot/loader.conf) ifconfig bridge0 create ... cheers _ From: rmkml [mailto:[EMAIL PROTECTED] To: freebsd-net@freebsd.org Sent: Wed, 07 Mar 2007 23:42:42 +0

Re: ifconfig bridge0 without module not work ?

2007-03-07 Thread Joe Holden
rmkml wrote: Hi, I have disabled/removed module on kernel, anyone ok, but when I create bridge0 : ifconfig bridge0 create ifconfig: SIOCIFCREATE: Invalid argument I just added "options BRIDGE" on my kernel conf. uname -a : 6.2-RELEASE ok if I add interface manually and bridge work : sysctl -w

ifconfig bridge0 without module not work ?

2007-03-07 Thread rmkml
Hi, I have disabled/removed module on kernel, anyone ok, but when I create bridge0 : ifconfig bridge0 create ifconfig: SIOCIFCREATE: Invalid argument I just added "options BRIDGE" on my kernel conf. uname -a : 6.2-RELEASE ok if I add interface manually and bridge work : sysctl -w net.link.ether

Re: kern/109815: wrong interface identifier at pfil_hooks for vlans + if_bridge

2007-03-07 Thread Andrew Thompson
On Tue, Mar 06, 2007 at 08:22:16PM +0300, Roman Kurakin wrote: > Ok, since no one want to provide an explanation I'll to do it myself. ... > I suggest to fix this problem in the other way, by checking if the > physical interface > is the dst interface by MAC. Eq if we got packet from Ci, it will b

Re: 802.1q bridged trunk with STP

2007-03-07 Thread Andrew Thompson
On Wed, Mar 07, 2007 at 03:06:10PM -0500, Corey Smith wrote: > Please CC: me as I am off list. > > I want to be able to create an 802.1q bridged trunk. This is nice if > you want layer 1 and 2 redundancy on an arbitrary number of logical > networks with only two physical network interfaces. > >

802.1q bridged trunk with STP

2007-03-07 Thread Corey Smith
Please CC: me as I am off list. I want to be able to create an 802.1q bridged trunk. This is nice if you want layer 1 and 2 redundancy on an arbitrary number of logical networks with only two physical network interfaces. Here is try1: ifconfig bridge18 destroy ifconfig bridge19 destroy ifconfi

Re: SO_ACCEPTCONN equivalent

2007-03-07 Thread Bruce M. Simpson
Alexandru Arion wrote: Is there an equivalent in FreeBSD to the SO_ACCEPTCONN option for getsockopt(), available in Linux? It doesn't actually has to be an option for getsockopt(), just a way to determine if a socket has been marked to accept connections with listen(). SO_ACCEPTCONN appears t

Re: SO_ACCEPTCONN equivalent

2007-03-07 Thread Vlad GALU
On 3/7/07, Alexandru Arion <[EMAIL PROTECTED]> wrote: Hi, I'm rather new here, so excuses in advance if the question is out of topic. Is there an equivalent in FreeBSD to the SO_ACCEPTCONN option for getsockopt(), available in Linux? It doesn't actually has to be an option for getsockopt(), jus

SO_ACCEPTCONN equivalent

2007-03-07 Thread Alexandru Arion
Hi, I'm rather new here, so excuses in advance if the question is out of topic. Is there an equivalent in FreeBSD to the SO_ACCEPTCONN option for getsockopt(), available in Linux? It doesn't actually has to be an option for getsockopt(), just a way to determine if a socket has been marked to acce

Re: Inconsistencies with IP_ONESBCAST and/or IP_SENDSRCADDR

2007-03-07 Thread Bruce M. Simpson
Bruce M. Simpson wrote: Dealing with dhclient is a separate issue -- here, something like IP_SENDIF needs to be introduced, as we are truly in an 'ip unnumbered' situation -- ie the ifnet MAY not yet have been assigned an IPv4 address at all, and IP_SENDSRCADDR implies that you are source ro