Re: Using netgraph to implement pseudo interfaces

2001-02-24 Thread Rogier R. Mulhuijzen
> > I plan to design a netgraph as follows: > > > > iface1 > >/ > > fxp0 <-> bpf > >\ > > iface2 > >I forgot to add in my previous response that you'd have to do this like: > >fxp0: <--> bpf <--> bpf <--> interface0 > \\ >

Re: Using netgraph to implement pseudo interfaces

2001-02-19 Thread Julian Elischer
Satyajeet Seth wrote: > > Hi > > A node of type ng_bpf uses BPF. How is a packet passed onto the > BPF? I believe a copy of the packet is sent. Is this correct? man ng_bpf. the ng_bpf node takes a packet as input and applies a bpf 'filter' to it. if the filter succeeds, the packet is sent out

Re: Using netgraph to implement pseudo interfaces

2001-02-19 Thread Satyajeet Seth
Hi A node of type ng_bpf uses BPF. How is a packet passed onto the BPF? I believe a copy of the packet is sent. Is this correct? Once a packet is sent to the BPF, will the driver process the packet further and queue it to the IP layer? If so, in our case, there will be duplication of packets. H

Re: Using netgraph to implement pseudo interfaces

2001-02-19 Thread Julian Elischer
Satyajeet Seth wrote: > > Hi > > I wished to implement pseudo interfaces with the following requirements: > > 1. There is a ethernet interface fxp0 having MAC address MAC0. It also > receives packets with destination MAC address MAC1 and MAC2. > > 2. The packets with destination MAC address MA

Re: Using netgraph to implement pseudo interfaces

2001-02-17 Thread Julian Elischer
Satyajeet Seth wrote: > > Hi > > I wished to implement pseudo interfaces with the following requirements: > > 1. There is a ethernet interface fxp0 having MAC address MAC0. It also > receives packets with destination MAC address MAC1 and MAC2. > > 2. The packets with destination MAC address MA

Using netgraph to implement pseudo interfaces

2001-02-17 Thread Satyajeet Seth
Hi I wished to implement pseudo interfaces with the following requirements: 1. There is a ethernet interface fxp0 having MAC address MAC0. It also receives packets with destination MAC address MAC1 and MAC2. 2. The packets with destination MAC address MAC1 are sent to a pseudo interface 1 and p