diff options
author | Daniel Borkmann <dborkman@redhat.com> | 2013-05-21 20:10:35 +0200 |
---|---|---|
committer | Simon Horman <horms@verge.net.au> | 2013-05-22 15:05:59 +0900 |
commit | f48e93c1dedee316532a1a9a758c4705c7ac43d6 (patch) | |
tree | 7e7eb7e801bbfea173c1c34089e1aec0ea37a69f | |
parent | 566c97146b8132ae65351734dca3b005027d3daf (diff) | |
download | ipvsadm-f48e93c1dedee316532a1a9a758c4705c7ac43d6.tar.gz |
libipvs: libnl3: fix compilation error
nl_handle_* needs to be replaced by nl_socket_* equivalents in order
to compile and work.
Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Signed-off-by: Simon Horman <horms@verge.net.au>
-rw-r--r-- | libipvs/libipvs.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libipvs/libipvs.c b/libipvs/libipvs.c index be34dbc..811ca84 100644 --- a/libipvs/libipvs.c +++ b/libipvs/libipvs.c @@ -32,7 +32,7 @@ static void* ipvs_func = NULL; struct ip_vs_getinfo ipvs_info; #ifdef LIBIPVS_USE_NL -static struct nl_handle *sock = NULL; +static struct nl_sock *sock = NULL; static int family, try_nl = 1; #endif @@ -73,7 +73,7 @@ int ipvs_nl_send_message(struct nl_msg *msg, nl_recvmsg_msg_cb_t func, void *arg { int err = EINVAL; - sock = nl_handle_alloc(); + sock = nl_socket_alloc(); if (!sock) { nlmsg_free(msg); return -1; @@ -88,7 +88,7 @@ int ipvs_nl_send_message(struct nl_msg *msg, nl_recvmsg_msg_cb_t func, void *arg /* To test connections and set the family */ if (msg == NULL) { - nl_handle_destroy(sock); + nl_socket_free(sock); sock = NULL; return 0; } @@ -104,12 +104,12 @@ int ipvs_nl_send_message(struct nl_msg *msg, nl_recvmsg_msg_cb_t func, void *arg nlmsg_free(msg); - nl_handle_destroy(sock); + nl_socket_free(sock); return 0; fail_genl: - nl_handle_destroy(sock); + nl_socket_free(sock); sock = NULL; nlmsg_free(msg); errno = err; |