Index: uspace/srv/net/loopip/loopip.c
===================================================================
--- uspace/srv/net/loopip/loopip.c	(revision a17356fd13769fdbaa2f4df26127bb541d940247)
+++ uspace/srv/net/loopip/loopip.c	(revision f1d04b29c4d5f435d0eabfc231a48fc82a5f02b8)
@@ -40,5 +40,4 @@
 #include <inet/iplink_srv.h>
 #include <inet/addr.h>
-#include <net/socket_codes.h>
 #include <io/log.h>
 #include <loc.h>
@@ -76,5 +75,6 @@
 	link_t link;
 	
-	uint16_t af;
+	/* XXX Version should be part of SDU */
+	ip_ver_t ver;
 	iplink_recv_sdu_t sdu;
 } rqueue_entry_t;
@@ -88,5 +88,5 @@
 		    list_get_instance(link, rqueue_entry_t, link);
 		
-		(void) iplink_ev_recv(&loopip_iplink, &rqe->sdu, rqe->af);
+		(void) iplink_ev_recv(&loopip_iplink, &rqe->sdu, rqe->ver);
 		
 		free(rqe->sdu.data);
@@ -174,5 +174,5 @@
 	 * Clone SDU
 	 */
-	rqe->af = AF_INET;
+	rqe->ver = ip_v4;
 	rqe->sdu.data = malloc(sdu->size);
 	if (rqe->sdu.data == NULL) {
@@ -203,5 +203,5 @@
 	 * Clone SDU
 	 */
-	rqe->af = AF_INET6;
+	rqe->ver = ip_v6;
 	rqe->sdu.data = malloc(sdu->size);
 	if (rqe->sdu.data == NULL) {
