Re: Question about bridging code

2003-10-16 Thread Robert Watson
On Thu, 16 Oct 2003, Barney Wolff wrote: > On Thu, Oct 16, 2003 at 05:18:24PM -0400, Robert Watson wrote: > > > > My conclusion from my BPF bridge experience was that prototyping in > > userspace made it a lot easier to experiment with changes, and > > dramatically reduced the development time.

Re: Question about bridging code

2003-10-16 Thread Barney Wolff
On Thu, Oct 16, 2003 at 05:18:24PM -0400, Robert Watson wrote: > > My conclusion from my BPF bridge experience was that prototyping in > userspace made it a lot easier to experiment with changes, and > dramatically reduced the development time. On the other hand, it did > terrible things to perfo

Re: Question about bridging code

2003-10-16 Thread Robert Watson
On Thu, 16 Oct 2003, Fernando A. Paulo wrote: > this is about the thread regarding the use of a freebsd bridge and > tap(4) to change the contents of the frames. > > the solution proposed in the list was to use: > > net.link.ether.bridge_cfg=fxp0:0,tap0:0,tap1:1,fxp1:1 > > then you'd write a

Re: Question about bridging code

2003-10-16 Thread Julian Elischer
this is a really complicatged way of doing this.. why not just use divert sockets, like natd? or, altenatively, if you must do it at link layer, use netgraph to directly deliver the packets to your daemon.. as to packet delay, if the daemon has a high priority then, no, it shouldn't slow it down

Re: Question about bridging code

2003-10-16 Thread Fernando A. Paulo
hi all, this is about the thread regarding the use of a freebsd bridge and tap(4) to change the contents of the frames. the solution proposed in the list was to use: net.link.ether.bridge_cfg=fxp0:0,tap0:0,tap1:1,fxp1:1 then you'd write and application to bridge between clusters 0 and 1. i ha

Re: Question about bridging code

2003-07-10 Thread Doug Ambrisko
[EMAIL PROTECTED] writes: | > It's just a naming issue, vmnetX is the network-device name of /dev/tapX. | > (the ip-equivalent thing, "tun", has the same name for both the network | > device and the device entry in the filesystem. As a matter of fact the | > latter is totally arbitrary so "tun" per

Re: Question about bridging code

2003-07-10 Thread Doug Ambrisko
[EMAIL PROTECTED] writes: [ Charset ISO-8859-1 unsupported, converting... ] | Hi Luigi, | | Thanks for response, the vmnet/tap stuff sounds like neat stuff. After reading | the description of tap (from the vtun site), the system seems to make a lot of | sense. However, I'm not sure how vmnet com

Re: Question about bridging code

2003-07-10 Thread kw3wong
Hi guys, I finally got it working - apparently, the taps won't work unless I were to ifconfig the tap device with an ip address (I don't think an ip address is actually needed, but the ifconfig probably does some ioctl that is needed to start up the tap device). I'll try to find what exact ioct

Re: Question about bridging code

2003-07-10 Thread kw3wong
Hi Luigi, > It's just a naming issue, vmnetX is the network-device name of /dev/tapX. > (the ip-equivalent thing, "tun", has the same name for both the network > device and the device entry in the filesystem. As a matter of fact the > latter is totally arbitrary so "tun" perhaps should be called

Re: Question about bridging code

2003-07-10 Thread Julian Elischer
On Wed, 9 Jul 2003 [EMAIL PROTECTED] wrote: > Hi Julian, > > Thanks for the tip, it looks like netgraph can do what I need to do. I've never > used netgraph before, so I better do some background reading first before > asking any more questions. > > I guess once I moved away from the IP laye

Re: Question about bridging code

2003-07-10 Thread Luigi Rizzo
On Thu, Jul 10, 2003 at 02:10:15PM -0400, [EMAIL PROTECTED] wrote: > Hi Luigi, > >Thanks for response, the vmnet/tap stuff sounds like neat stuff. After reading >the description of tap (from the vtun site), the system seems to make a lot of >sense.However, I'm not sure how vmnet comes into play

Re: Question about bridging code

2003-07-10 Thread kw3wong
Hi Luigi, Thanks for response, the vmnet/tap stuff sounds like neat stuff. After reading the description of tap (from the vtun site), the system seems to make a lot of sense. However, I'm not sure how vmnet comes into play here - what purpose does it serve, shouldn't I just be able to read from

Re: Question about bridging code

2003-07-10 Thread kw3wong
Hi Julian, Thanks for the tip, it looks like netgraph can do what I need to do. I've never used netgraph before, so I better do some background reading first before asking any more questions. I guess once I moved away from the IP layer to the link layer, divert sockets no longer make that much

Re: Question about bridging code

2003-07-09 Thread Luigi Rizzo
Hi, On Wed, Jul 09, 2003 at 03:23:52PM -0400, [EMAIL PROTECTED] wrote: > So here is what my code changes involved so far. BTW, I'm using FreeBSD 4.8 > > 1) Removed the check in ipfw_chk (ip_fw2.c) for whether it is layer2 or not. > This allows briged packets to still match the ipfw2 divert rule

Re: Question about bridging code

2003-07-09 Thread Petri Helenius
> > how come no-one knows about netgraph.. the framework designed to do > exactly this? :-) > It's only been in use for 6 years.. > We do this and a lot more with netgraph and love the architechture, thanks goes for the people who did the architechture. So this qualifies as "somebody knows" :)

Re: Question about bridging code

2003-07-09 Thread Chuck Swiger
Michael Sierchio wrote: [ ... ] (NB: smiley. You're not a humorless, literal-minded prat, but some of us are.) Nice. The last one-liner I heard that had such a good pacing to it was the remark about some politician "being off his meds and out of therapy". -- -Chuck _

Re: Question about bridging code

2003-07-09 Thread Michael Sierchio
Julian Elischer wrote: I have a netgraph node that does load balancing, but it's not completed to my satisfaction.. you can play with it if you want :-) That would be excellent, I might even be in danger of learning something. I have a buncha Soekris net4501 boxes to play with. __

Re: Question about bridging code

2003-07-09 Thread Julian Elischer
On Wed, 9 Jul 2003, Michael Sierchio wrote: > Julian Elischer wrote: > > > how come no-one knows about netgraph.. the framework designed to do > > exactly this? :-) > > It's only been in use for 6 years.. > > Because we're missing a Nutshell book on the topic? Because only > initiates into th

Re: Question about bridging code

2003-07-09 Thread Michael Sierchio
Julian Elischer wrote: how come no-one knows about netgraph.. the framework designed to do exactly this? :-) It's only been in use for 6 years.. Because we're missing a Nutshell book on the topic? Because only initiates into the Dark Art of Whistling know how to use it? ;-) (NB: smiley. You're n

Re: Question about bridging code

2003-07-09 Thread Julian Elischer
On Wed, 9 Jul 2003, Brooks Davis wrote: > On Wed, Jul 09, 2003 at 03:23:52PM -0400, [EMAIL PROTECTED] wrote: > > Hi guys, > > > > My first attempts at hacking FreeBSD kernel code has not been very fruitful, so > > I'm hoping someone with more experience and knowhow might be able to point out

Re: Question about bridging code

2003-07-09 Thread Julian Elischer
On Wed, 9 Jul 2003 [EMAIL PROTECTED] wrote: > Hi guys, > > My first attempts at hacking FreeBSD kernel code has not been very fruitful, so > I'm hoping someone with more experience and knowhow might be able to point out > the mistakes that I'm making. > > Firstly, let me explain what I'm try

Re: Question about bridging code

2003-07-09 Thread Brooks Davis
On Wed, Jul 09, 2003 at 03:23:52PM -0400, [EMAIL PROTECTED] wrote: > Hi guys, > > My first attempts at hacking FreeBSD kernel code has not been very fruitful, so > I'm hoping someone with more experience and knowhow might be able to point out > the mistakes that I'm making. > > Firstly, let me

Question about bridging code

2003-07-09 Thread kw3wong
Hi guys, My first attempts at hacking FreeBSD kernel code has not been very fruitful, so I'm hoping someone with more experience and knowhow might be able to point out the mistakes that I'm making. Firstly, let me explain what I'm trying to do. I'm currently working on a University project tha