Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 132135
b: refs/heads/master
c: 4843b93
h: refs/heads/master
i:
  132133: 2766cd1
  132131: 3ec8639
  132127: c8764d4
v: v3
  • Loading branch information
Pablo Neira Ayuso authored and David S. Miller committed Mar 4, 2009
1 parent 388dc6c commit a3fddab
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 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: 17edde520927070a6bf14a6a75027c0b843443e5
refs/heads/master: 4843b93c96ae5043c6279c4ec6fcd8ee3866ff5b
10 changes: 9 additions & 1 deletion trunk/net/netlink/af_netlink.c
Original file line number Diff line number Diff line change
Expand Up @@ -1084,6 +1084,13 @@ static inline int do_one_set_err(struct sock *sk,
return 0;
}

/**
* netlink_set_err - report error to broadcast listeners
* @ssk: the kernel netlink socket, as returned by netlink_kernel_create()
* @pid: the PID of a process that we want to skip (if any)
* @groups: the broadcast group that will notice the error
* @code: error code, must be negative (as usual in kernelspace)
*/
void netlink_set_err(struct sock *ssk, u32 pid, u32 group, int code)
{
struct netlink_set_err_data info;
Expand All @@ -1093,7 +1100,8 @@ void netlink_set_err(struct sock *ssk, u32 pid, u32 group, int code)
info.exclude_sk = ssk;
info.pid = pid;
info.group = group;
info.code = code;
/* sk->sk_err wants a positive error value */
info.code = -code;

read_lock(&nl_table_lock);

Expand Down

0 comments on commit a3fddab

Please sign in to comment.