--- dropwatch-1.3/src/main.c	2012-01-16 22:58:49.000000000 -0500
+++ dropwatch-1.3/src/main.c	2012-01-16 23:06:53.000000000 -0500
@@ -78,7 +78,7 @@
 	NULL
 };
 
-static struct nl_handle *nsd;
+static struct nl_sock *nsd;
 static int nsf;
 
 enum {
@@ -106,13 +106,13 @@
 	return;	
 }
 
-struct nl_handle *setup_netlink_socket()
+struct nl_sock *setup_netlink_socket()
 {
-	struct nl_handle *sd;
+	struct nl_sock *sd;
 	int family;
 
 	
-	sd = nl_handle_alloc();
+	sd = nl_socket_alloc();
 
 	genl_connect(sd);
 
@@ -126,9 +126,9 @@
 	nsf = family;
 
 	nl_close(sd);
-	nl_handle_destroy(sd);
+	nl_socket_free(sd);
 
-	sd = nl_handle_alloc();
+	sd = nl_socket_alloc();
 	nl_join_groups(sd, NET_DM_GRP_ALERT);
 
 	nl_connect(sd, NETLINK_GENERIC);
@@ -137,7 +137,7 @@
 
 out_close:
 	nl_close(sd);
-	nl_handle_destroy(sd);
+	nl_socket_free(sd);
 	return NULL;
 
 }
