Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 319123
b: refs/heads/master
c: b1beb68
h: refs/heads/master
i:
  319121: d50e15a
  319119: 5f883d0
v: v3
  • Loading branch information
Jiri Benc authored and David S. Miller committed Jul 27, 2012
1 parent 5de432f commit 48c3334
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 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: e4c7f259c5be99dcfc3d98f913590663b0305bf8
refs/heads/master: b1beb681cba5358f62e6187340660ade226a5fcc
8 changes: 7 additions & 1 deletion trunk/net/core/rtnetlink.c
Original file line number Diff line number Diff line change
Expand Up @@ -659,6 +659,12 @@ static void set_operstate(struct net_device *dev, unsigned char transition)
}
}

static unsigned int rtnl_dev_get_flags(const struct net_device *dev)
{
return (dev->flags & ~(IFF_PROMISC | IFF_ALLMULTI)) |
(dev->gflags & (IFF_PROMISC | IFF_ALLMULTI));
}

static unsigned int rtnl_dev_combine_flags(const struct net_device *dev,
const struct ifinfomsg *ifm)
{
Expand All @@ -667,7 +673,7 @@ static unsigned int rtnl_dev_combine_flags(const struct net_device *dev,
/* bugwards compatibility: ifi_change == 0 is treated as ~0 */
if (ifm->ifi_change)
flags = (flags & ifm->ifi_change) |
(dev->flags & ~ifm->ifi_change);
(rtnl_dev_get_flags(dev) & ~ifm->ifi_change);

return flags;
}
Expand Down

0 comments on commit 48c3334

Please sign in to comment.