Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 4127
b: refs/heads/master
c: 52609c0
h: refs/heads/master
i:
  4125: 7328940
  4123: 0929ffb
  4119: 414d0c8
  4111: cdc8409
  4095: 39ad1ee
v: v3
  • Loading branch information
David Chau authored and David S. Miller committed Jul 5, 2005
1 parent 1324fb4 commit 2e78df5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: bc971dee6ece1fd0d431948924becd9c50e7b778
refs/heads/master: 52609c0b56d7c8dfb6e16ec0a715adf8fcbdae36
5 changes: 3 additions & 2 deletions trunk/net/core/dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -2089,10 +2089,11 @@ void dev_set_promiscuity(struct net_device *dev, int inc)
{
unsigned short old_flags = dev->flags;

dev->flags |= IFF_PROMISC;
if ((dev->promiscuity += inc) == 0)
dev->flags &= ~IFF_PROMISC;
if (dev->flags ^ old_flags) {
else
dev->flags |= IFF_PROMISC;
if (dev->flags != old_flags) {
dev_mc_upload(dev);
printk(KERN_INFO "device %s %s promiscuous mode\n",
dev->name, (dev->flags & IFF_PROMISC) ? "entered" :
Expand Down

0 comments on commit 2e78df5

Please sign in to comment.