Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 78733
b: refs/heads/master
c: 868d13a
h: refs/heads/master
i:
  78731: bb1de67
v: v3
  • Loading branch information
Denis V. Lunev authored and David S. Miller committed Jan 28, 2008
1 parent 1e0679e commit 372ff28
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 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: f8c26b8d589867aed8251db2935f8aa03aa68717
refs/heads/master: 868d13ac811746e28e4c806f2b1bd8575796f9af
2 changes: 1 addition & 1 deletion trunk/include/net/fib_rules.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ struct fib_rules_ops
int (*fill)(struct fib_rule *, struct sk_buff *,
struct nlmsghdr *,
struct fib_rule_hdr *);
u32 (*default_pref)(void);
u32 (*default_pref)(struct fib_rules_ops *ops);
size_t (*nlmsg_payload)(struct fib_rule *);

/* Called after modifications to the rules set, must flush
Expand Down
2 changes: 1 addition & 1 deletion trunk/net/core/fib_rules.c
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ static int fib_nl_newrule(struct sk_buff *skb, struct nlmsghdr* nlh, void *arg)
rule->table = frh_get_table(frh, tb);

if (!rule->pref && ops->default_pref)
rule->pref = ops->default_pref();
rule->pref = ops->default_pref(ops);

err = -EINVAL;
if (tb[FRA_GOTO]) {
Expand Down
2 changes: 1 addition & 1 deletion trunk/net/decnet/dn_rules.c
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ static int dn_fib_rule_fill(struct fib_rule *rule, struct sk_buff *skb,
return -ENOBUFS;
}

static u32 dn_fib_rule_default_pref(void)
static u32 dn_fib_rule_default_pref(struct fib_rules_ops *ops)
{
struct list_head *pos;
struct fib_rule *rule;
Expand Down
2 changes: 1 addition & 1 deletion trunk/net/ipv4/fib_rules.c
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ static int fib4_rule_fill(struct fib_rule *rule, struct sk_buff *skb,
return -ENOBUFS;
}

static u32 fib4_rule_default_pref(void)
static u32 fib4_rule_default_pref(struct fib_rules_ops *ops)
{
struct list_head *pos;
struct fib_rule *rule;
Expand Down
2 changes: 1 addition & 1 deletion trunk/net/ipv6/fib6_rules.c
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ static int fib6_rule_fill(struct fib_rule *rule, struct sk_buff *skb,
return -ENOBUFS;
}

static u32 fib6_rule_default_pref(void)
static u32 fib6_rule_default_pref(struct fib_rules_ops *ops)
{
return 0x3FFF;
}
Expand Down

0 comments on commit 372ff28

Please sign in to comment.