Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 315171
b: refs/heads/master
c: 1da0faa
h: refs/heads/master
i:
  315169: 874f620
  315167: f5c0e2a
v: v3
  • Loading branch information
Thomas Graf authored and Marc Kleine-Budde committed Jul 10, 2012
1 parent 6013104 commit 2bdd221
Show file tree
Hide file tree
Showing 2 changed files with 8 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: 732d35fd08058a678327ec908528fcc9514c9e48
refs/heads/master: 1da0faa3801e0dcb585b33266a2ac0842f26e58c
10 changes: 7 additions & 3 deletions trunk/net/can/gw.c
Original file line number Diff line number Diff line change
Expand Up @@ -444,11 +444,14 @@ static int cgw_notifier(struct notifier_block *nb,
return NOTIFY_DONE;
}

static int cgw_put_job(struct sk_buff *skb, struct cgw_job *gwj)
static int cgw_put_job(struct sk_buff *skb, struct cgw_job *gwj, int type,
u32 pid, u32 seq, int flags)
{
struct cgw_frame_mod mb;
struct rtcanmsg *rtcan;
struct nlmsghdr *nlh = nlmsg_put(skb, 0, 0, 0, sizeof(*rtcan), 0);
struct nlmsghdr *nlh;

nlh = nlmsg_put(skb, pid, seq, type, sizeof(*rtcan), flags);
if (!nlh)
return -EMSGSIZE;

Expand Down Expand Up @@ -546,7 +549,8 @@ static int cgw_dump_jobs(struct sk_buff *skb, struct netlink_callback *cb)
if (idx < s_idx)
goto cont;

if (cgw_put_job(skb, gwj) < 0)
if (cgw_put_job(skb, gwj, RTM_NEWROUTE, NETLINK_CB(cb->skb).pid,
cb->nlh->nlmsg_seq, NLM_F_MULTI) < 0)
break;
cont:
idx++;
Expand Down

0 comments on commit 2bdd221

Please sign in to comment.