Skip to content

Commit

Permalink
netdevice: change net_device->promiscuity/allmulti to unsigned int
Browse files Browse the repository at this point in the history
The comments of dev_set_allmulti/promiscuity() is that "While the count in
the device remains above zero...". So negative count is useless.
Fix the type of the counter from "int" to "unsigned int".

Signed-off-by: Wang Chen <wangchen@cn.fujitsu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Wang Chen authored and David S. Miller committed Jun 18, 2008
1 parent cb61cb9 commit 9d45abe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/linux/netdevice.h
Original file line number Diff line number Diff line change
Expand Up @@ -595,8 +595,8 @@ struct net_device
int uc_promisc;
struct dev_addr_list *mc_list; /* Multicast mac addresses */
int mc_count; /* Number of installed mcasts */
int promiscuity;
int allmulti;
unsigned int promiscuity;
unsigned int allmulti;


/* Protocol specific pointers */
Expand Down

0 comments on commit 9d45abe

Please sign in to comment.