Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 278297
b: refs/heads/master
c: 1026fec
h: refs/heads/master
i:
  278295: e8d4b73
v: v3
  • Loading branch information
David Miller committed Nov 30, 2011
1 parent 67e44ae commit 46b442a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 449fa023bca5b53bd924d91a27ffd34807fdeb80
refs/heads/master: 1026fec8739663621d64216ba939c23bc1d089b7
7 changes: 7 additions & 0 deletions trunk/include/net/neighbour.h
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,13 @@ struct neigh_table {
struct pneigh_entry **phash_buckets;
};

#define NEIGH_PRIV_ALIGN sizeof(long long)

static inline void *neighbour_priv(const struct neighbour *n)
{
return (char *)n + ALIGN(sizeof(*n) + n->tbl->key_len, NEIGH_PRIV_ALIGN);
}

/* flags for neigh_update() */
#define NEIGH_UPDATE_F_OVERRIDE 0x00000001
#define NEIGH_UPDATE_F_WEAK_OVERRIDE 0x00000002
Expand Down

0 comments on commit 46b442a

Please sign in to comment.