diff options
author | Thomas Graf <tgr@lsx.localdomain> | 2008-05-15 11:26:32 (GMT) |
---|---|---|
committer | Thomas Graf <tgr@lsx.localdomain> | 2008-05-15 11:26:32 (GMT) |
commit | 1155370f520cb64657e25153255cf7dc1424317f (patch) | |
tree | bfa1323d2495dfe5729eb27d0536d4349f2a9d86 /lib/route/rtnl.c | |
parent | 0cf780859cbce363a6e2cd4b8d19c5498a3530f5 (diff) | |
download | libnl-1155370f520cb64657e25153255cf7dc1424317f.zip libnl-1155370f520cb64657e25153255cf7dc1424317f.tar.gz libnl-1155370f520cb64657e25153255cf7dc1424317f.tar.bz2 |
Rename struct nl_handle to struct nl_sock
The idea of a common handle is long revised and only misleading,
nl_handle really represents a socket with some additional
action handlers assigned to it.
Alias for nl_handle is kept for backwards compatibility.
Diffstat (limited to 'lib/route/rtnl.c')
-rw-r--r-- | lib/route/rtnl.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/route/rtnl.c b/lib/route/rtnl.c index 81ddf94..f87c5f5 100644 --- a/lib/route/rtnl.c +++ b/lib/route/rtnl.c @@ -6,7 +6,7 @@ * License as published by the Free Software Foundation version 2.1 * of the License. * - * Copyright (c) 2003-2006 Thomas Graf <tgraf@suug.ch> + * Copyright (c) 2003-2008 Thomas Graf <tgraf@suug.ch> */ /** @@ -27,7 +27,7 @@ /** * Send routing netlink request message - * @arg handle Netlink handle. + * @arg sk Netlink socket. * @arg type Netlink message type. * @arg family Address family. * @arg flags Additional netlink message flags. @@ -37,13 +37,13 @@ * * @return 0 on success or a negative error code. */ -int nl_rtgen_request(struct nl_handle *handle, int type, int family, int flags) +int nl_rtgen_request(struct nl_sock *sk, int type, int family, int flags) { struct rtgenmsg gmsg = { .rtgen_family = family, }; - return nl_send_simple(handle, type, flags, &gmsg, sizeof(gmsg)); + return nl_send_simple(sk, type, flags, &gmsg, sizeof(gmsg)); } /** @} */ |