dhcp on one of 2 nics

2003-11-26 Thread Ken Vescovi
I finally got cable modem access here in the backwoods of west-central PA. I want to set up my Dell Latitude running 4.8 as a gateway doing PAT and using ipfw. I have 2, 3c589c cards and need one to get an address from the cable company via DHCP. The other nic will be configured as the gateway f

problem on dummynet, please help me

2003-11-26 Thread villy Luo
After reading the ip_dummynet.c, I found that dummynet uses link list to store packets as the following code: if (q->head == NULL) q->head = pkt; else DN_NEXT(q->tail) = pkt; q->tail = pkt; q->len++; q->len_bytes += len ; However, when I tried to use the follo

Re: Question about Netgraph (I'm in a mess :)

2003-11-26 Thread Juan Rodriguez Hervella
On Wednesday 26 November 2003 13:24, Gerasimos Dimitriadis wrote: > Hi, > > I believe that the best approach would be to divert all the traffic from/to > the interface you are interested. Connect > the 'upper' and 'lower' hooks of the corresponding ng_ether node to a node > that implements the func

Re: Question about Netgraph (I'm in a mess :)

2003-11-26 Thread Gerasimos Dimitriadis
Hi, I believe that the best approach would be to divert all the traffic from/to the interface you are interested. Connect the 'upper' and 'lower' hooks of the corresponding ng_ether node to a node that implements the functionality you want. By checking the 'type' value in the ethernet header you c

Question about Netgraph (I'm in a mess :)

2003-11-26 Thread Juan Rodriguez Hervella
Hello, I'd like to make some modifications to the IPv6 hearder of some packets before sending them out the interface. I'm thinking where's the best way of doing this. So, I've found out the Netgraph tool (I didn't know it before :) but now I'm wondering how to use it properly. As far as I unders