| To: | linux-net@xxxxxxxxxxxxxxx, netdev@xxxxxxxxxxx |
|---|---|
| Subject: | Re: Is a driver allowed to modify dev->flags? |
| From: | rask@xxxxxxxxxx (Rask Ingemann Lambertsen) |
| Date: | Tue, 1 Apr 2003 19:40:30 +0200 |
| References: | <Pine.LNX.4.44.0304011213380.1685-100000@beohost.scyld.com> |
| Reply-to: | rask@xxxxxxxxxx |
| Sender: | netdev-bounce@xxxxxxxxxxx |
Donald Becker wrote: > On Tue, 1 Apr 2003, Rask Ingemann Lambertsen wrote: > > > Is a network device driver allowed to modify dev->flags? For example: > > > > if (dev->flags & IFF_ALLMULTI) > > dev->flags |= IFF_PROMISC; > > You must be looking at the atp.c driver, or a driver that cribbed from > it. (Is anyone still running a parallel port Ethernet device?!) No, but I've seen such code in other Ethernet drivers and adopted it for my NE3200 driver. > > I've found it to cause the IFF_PROMISC flag to stick when using > > "tcpdump -p", which to my surprice sets the IFF_ALLMULTI flag. > > Which driver are you using? My experimental NE3200 driver, linux 2.4.20 and tcpdump from Redhat 7.3. Regards, Rask Ingemann Lambertsen |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH][RESEND] Update of tcp_syncookies explanation, David S. Miller |
|---|---|
| Next by Date: | RE: [Fwd: [E1000] NAPI re-insertion w/ changes], Robert Olsson |
| Previous by Thread: | Re: Is a driver allowed to modify dev->flags?, Donald Becker |
| Next by Thread: | Re: Is a driver allowed to modify dev->flags?, Rask Ingemann Lambertsen |
| Indexes: | [Date] [Thread] [Top] [All Lists] |