Index: uspace/lib/net/include/icmp_interface.h
===================================================================
--- uspace/lib/net/include/icmp_interface.h	(revision 2aa15d4b5fde837f4d953cf5f4dbd890418d7282)
+++ uspace/lib/net/include/icmp_interface.h	(revision 058edb65425eee0ae717ce76dd285e73f72faeeb)
@@ -34,4 +34,5 @@
 #define __NET_ICMP_INTERFACE_H__
 
+#include <net/socket_codes.h>
 #include <sys/types.h>
 
@@ -41,5 +42,4 @@
 #include <inet.h>
 #include <ip_codes.h>
-#include <socket_codes.h>
 #include <icmp_codes.h>
 #include <icmp_common.h>
Index: uspace/lib/net/include/ip_client.h
===================================================================
--- uspace/lib/net/include/ip_client.h	(revision 2aa15d4b5fde837f4d953cf5f4dbd890418d7282)
+++ uspace/lib/net/include/ip_client.h	(revision 058edb65425eee0ae717ce76dd285e73f72faeeb)
@@ -38,4 +38,5 @@
 #define __NET_IP_CLIENT_H__
 
+#include <net/socket_codes.h>
 #include <sys/types.h>
 
@@ -43,5 +44,4 @@
 #include <ip_codes.h>
 #include <ip_interface.h>
-#include <socket_codes.h>
 
 /** Prepares the packet to be transfered via IP.
Index: uspace/lib/net/include/ip_interface.h
===================================================================
--- uspace/lib/net/include/ip_interface.h	(revision 2aa15d4b5fde837f4d953cf5f4dbd890418d7282)
+++ uspace/lib/net/include/ip_interface.h	(revision 058edb65425eee0ae717ce76dd285e73f72faeeb)
@@ -34,4 +34,5 @@
 #define __NET_IP_INTERFACE_H__
 
+#include <net/socket_codes.h>
 #include <async.h>
 #include <ipc/services.h>
@@ -42,5 +43,4 @@
 #include <in.h>
 #include <ip_codes.h>
-#include <socket_codes.h>
 
 #ifdef CONFIG_IL_TL_BUNDLE
Index: uspace/lib/net/include/tl_common.h
===================================================================
--- uspace/lib/net/include/tl_common.h	(revision 2aa15d4b5fde837f4d953cf5f4dbd890418d7282)
+++ uspace/lib/net/include/tl_common.h	(revision 058edb65425eee0ae717ce76dd285e73f72faeeb)
@@ -38,8 +38,9 @@
 #define __NET_TL_COMMON_H__
 
+#include <net/socket_codes.h>
+
 #include <packet/packet.h>
 #include <net_device.h>
 #include <inet.h>
-#include <socket_codes.h>
 
 /** Device packet dimensions.
