diff options
author | Thomas Graf <tgraf@suug.ch> | 2006-11-14 22:45:27 -0500 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-12-03 00:22:41 -0500 |
commit | 81878d27fdd297a33f3cfcf29483fe1abaf26dec (patch) | |
tree | 4ce8183643abce3ec5fe5fdab0c9104204e88e6e /net/netlabel/netlabel_mgmt.c | |
parent | 3dabc7157859e706770c825aa229f8943db4e0e1 (diff) |
[GENL]: Add genlmsg_reply() to simply unicast replies to requests
A generic netlink user has no interest in knowing how to
address the source of the original request.
Signed-off-by: Thomas Graf <tgraf@suug.ch>
Acked-by: Paul Moore <paul.moore@hp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/netlabel/netlabel_mgmt.c')
-rw-r--r-- | net/netlabel/netlabel_mgmt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/netlabel/netlabel_mgmt.c b/net/netlabel/netlabel_mgmt.c index c529622ff0b7..784693735e0d 100644 --- a/net/netlabel/netlabel_mgmt.c +++ b/net/netlabel/netlabel_mgmt.c | |||
@@ -390,7 +390,7 @@ static int netlbl_mgmt_listdef(struct sk_buff *skb, struct genl_info *info) | |||
390 | 390 | ||
391 | genlmsg_end(ans_skb, data); | 391 | genlmsg_end(ans_skb, data); |
392 | 392 | ||
393 | ret_val = genlmsg_unicast(ans_skb, info->snd_pid); | 393 | ret_val = genlmsg_reply(ans_skb, info); |
394 | if (ret_val != 0) | 394 | if (ret_val != 0) |
395 | goto listdef_failure; | 395 | goto listdef_failure; |
396 | return 0; | 396 | return 0; |
@@ -512,7 +512,7 @@ static int netlbl_mgmt_version(struct sk_buff *skb, struct genl_info *info) | |||
512 | 512 | ||
513 | genlmsg_end(ans_skb, data); | 513 | genlmsg_end(ans_skb, data); |
514 | 514 | ||
515 | ret_val = genlmsg_unicast(ans_skb, info->snd_pid); | 515 | ret_val = genlmsg_reply(ans_skb, info); |
516 | if (ret_val != 0) | 516 | if (ret_val != 0) |
517 | goto version_failure; | 517 | goto version_failure; |
518 | return 0; | 518 | return 0; |