Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 224419
b: refs/heads/master
c: ca7479e
h: refs/heads/master
i:
  224417: 6089da7
  224415: ff53a2a
v: v3
  • Loading branch information
Thomas Graf authored and David S. Miller committed Nov 17, 2010
1 parent 3008d00 commit 2fcf1ee
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 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: f8ff182c716c6f11ca3061961f5722f26a14e101
refs/heads/master: ca7479ebbd9f7621646bf2792cb7143647f035bb
8 changes: 5 additions & 3 deletions trunk/include/linux/inetdevice.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,12 @@ enum
__IPV4_DEVCONF_MAX
};

#define IPV4_DEVCONF_MAX (__IPV4_DEVCONF_MAX - 1)

struct ipv4_devconf {
void *sysctl;
int data[__IPV4_DEVCONF_MAX - 1];
DECLARE_BITMAP(state, __IPV4_DEVCONF_MAX - 1);
int data[IPV4_DEVCONF_MAX];
DECLARE_BITMAP(state, IPV4_DEVCONF_MAX);
};

struct in_device {
Expand Down Expand Up @@ -90,7 +92,7 @@ static inline void ipv4_devconf_set(struct in_device *in_dev, int index,

static inline void ipv4_devconf_setall(struct in_device *in_dev)
{
bitmap_fill(in_dev->cnf.state, __IPV4_DEVCONF_MAX - 1);
bitmap_fill(in_dev->cnf.state, IPV4_DEVCONF_MAX);
}

#define IN_DEV_CONF_GET(in_dev, attr) \
Expand Down

0 comments on commit 2fcf1ee

Please sign in to comment.