Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 67070
b: refs/heads/master
c: 28f7b03
h: refs/heads/master
v: v3
  • Loading branch information
David S. Miller committed Oct 11, 2007
1 parent 5353d49 commit da8487c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 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: 31910575a9de61e78065e93846e8e7a4894a18bf
refs/heads/master: 28f7b0360f46eeb9eeee63d03bb5484918a54837
16 changes: 5 additions & 11 deletions trunk/net/ipv4/fib_frontend.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@

#define FFprint(a...) printk(KERN_DEBUG a)

static struct sock *fibnl;

#ifndef CONFIG_IP_MULTIPLE_TABLES

struct fib_table *ip_fib_local_table;
Expand All @@ -62,9 +64,6 @@ static struct hlist_head fib_table_hash[FIB_TABLE_HASHSZ];
#define FIB_TABLE_HASHSZ 256
static struct hlist_head fib_table_hash[FIB_TABLE_HASHSZ];

static struct sock *fibnl = NULL;


struct fib_table *fib_new_table(u32 id)
{
struct fib_table *tb;
Expand Down Expand Up @@ -787,17 +786,12 @@ static void nl_fib_lookup(struct fib_result_nl *frn, struct fib_table *tb )
}
}

static void nl_fib_input(struct sock *sk, int len)
static void nl_fib_input(struct sk_buff *skb)
{
struct sk_buff *skb = NULL;
struct nlmsghdr *nlh = NULL;
struct fib_result_nl *frn;
u32 pid;
struct nlmsghdr *nlh;
struct fib_table *tb;

skb = skb_dequeue(&sk->sk_receive_queue);
if (skb == NULL)
return;
u32 pid;

nlh = nlmsg_hdr(skb);
if (skb->len < NLMSG_SPACE(0) || skb->len < nlh->nlmsg_len ||
Expand Down

0 comments on commit da8487c

Please sign in to comment.