Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 41664
b: refs/heads/master
c: 81878d2
h: refs/heads/master
v: v3
  • Loading branch information
Thomas Graf authored and David S. Miller committed Dec 3, 2006
1 parent dec3852 commit 40adc1b
Show file tree
Hide file tree
Showing 6 changed files with 16 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: 3dabc7157859e706770c825aa229f8943db4e0e1
refs/heads/master: 81878d27fdd297a33f3cfcf29483fe1abaf26dec
10 changes: 10 additions & 0 deletions trunk/include/net/genetlink.h
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,16 @@ static inline int genlmsg_unicast(struct sk_buff *skb, u32 pid)
return nlmsg_unicast(genl_sock, skb, pid);
}

/**
* genlmsg_reply - reply to a request
* @skb: netlink message to be sent back
* @info: receiver information
*/
static inline int genlmsg_reply(struct sk_buff *skb, struct genl_info *info)
{
return genlmsg_unicast(skb, info->snd_pid);
}

/**
* gennlmsg_data - head of message payload
* @gnlh: genetlink messsage header
Expand Down
2 changes: 1 addition & 1 deletion trunk/net/netlabel/netlabel_cipso_v4.c
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,7 @@ static int netlbl_cipsov4_list(struct sk_buff *skb, struct genl_info *info)

genlmsg_end(ans_skb, data);

ret_val = genlmsg_unicast(ans_skb, info->snd_pid);
ret_val = genlmsg_reply(ans_skb, info);
if (ret_val != 0)
goto list_failure;

Expand Down
4 changes: 2 additions & 2 deletions trunk/net/netlabel/netlabel_mgmt.c
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ static int netlbl_mgmt_listdef(struct sk_buff *skb, struct genl_info *info)

genlmsg_end(ans_skb, data);

ret_val = genlmsg_unicast(ans_skb, info->snd_pid);
ret_val = genlmsg_reply(ans_skb, info);
if (ret_val != 0)
goto listdef_failure;
return 0;
Expand Down Expand Up @@ -512,7 +512,7 @@ static int netlbl_mgmt_version(struct sk_buff *skb, struct genl_info *info)

genlmsg_end(ans_skb, data);

ret_val = genlmsg_unicast(ans_skb, info->snd_pid);
ret_val = genlmsg_reply(ans_skb, info);
if (ret_val != 0)
goto version_failure;
return 0;
Expand Down
2 changes: 1 addition & 1 deletion trunk/net/netlabel/netlabel_unlabeled.c
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ static int netlbl_unlabel_list(struct sk_buff *skb, struct genl_info *info)

genlmsg_end(ans_skb, data);

ret_val = genlmsg_unicast(ans_skb, info->snd_pid);
ret_val = genlmsg_reply(ans_skb, info);
if (ret_val != 0)
goto list_failure;
return 0;
Expand Down
2 changes: 1 addition & 1 deletion trunk/net/netlink/genetlink.c
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@ static int ctrl_getfamily(struct sk_buff *skb, struct genl_info *info)
goto errout;
}

err = genlmsg_unicast(msg, info->snd_pid);
err = genlmsg_reply(msg, info);
errout:
return err;
}
Expand Down

0 comments on commit 40adc1b

Please sign in to comment.