[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 <[email protected]>
Acked-by: Paul Moore <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
Thomas Graf 2006-11-14 19:45:27 -08:00 • committed by David S. Miller
commit 81878d27fd
5 changed files with 15 additions and 5 deletions

View file

@ -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;
}