Index: uspace/lib/c/include/net/icmp_codes.h
===================================================================
--- uspace/lib/c/include/net/icmp_codes.h	(revision 3a609e0c8ac6319b4548c3b5ee2f2ad7fcf30112)
+++ uspace/lib/c/include/net/icmp_codes.h	(revision 25171e5b00abbda367f2b93c84f58fb1d300c689)
@@ -42,4 +42,6 @@
 #define LIBC_ICMP_CODES_H_
 
+#include <sys/types.h>
+
 /** ICMP type type definition. */
 typedef uint8_t icmp_type_t;
Index: uspace/lib/net/include/icmp_client.h
===================================================================
--- uspace/lib/net/include/icmp_client.h	(revision 3a609e0c8ac6319b4548c3b5ee2f2ad7fcf30112)
+++ uspace/lib/net/include/icmp_client.h	(revision 25171e5b00abbda367f2b93c84f58fb1d300c689)
@@ -27,34 +27,21 @@
  */
 
-/** @addtogroup icmp
- *  @{
+/** @addtogroup libnet
+ * @{
  */
 
 /** @file
- *  ICMP client interface.
+ * ICMP client interface.
  */
 
-#ifndef __NET_ICMP_CLIENT_H__
-#define __NET_ICMP_CLIENT_H__
+#ifndef LIBNET_ICMP_CLIENT_H_
+#define LIBNET_ICMP_CLIENT_H_
 
 #include <net/icmp_codes.h>
 #include <net/packet.h>
 
-/** Processes the received packet prefixed with an ICMP header.
- *  @param[in] packet The received packet.
- *  @param[out] type The ICMP header type.
- *  @param[out] code The ICMP header code.
- *  @param[out] pointer The ICMP header pointer.
- *  @param[out] mtu The ICMP header MTU.
- *  @returns The ICMP header length.
- *  @returns Zero (0) if the packet contains no data.
- */
-extern int icmp_client_process_packet(packet_t packet, icmp_type_t * type, icmp_code_t * code, icmp_param_t * pointer, icmp_param_t * mtu);
-
-/** Returns the ICMP header length.
- *  @param[in] packet The packet.
- *  @returns The ICMP header length in bytes.
- */
-extern size_t icmp_client_header_length(packet_t packet);
+extern int icmp_client_process_packet(packet_t, icmp_type_t *, icmp_code_t *,
+    icmp_param_t *, icmp_param_t *);
+extern size_t icmp_client_header_length(packet_t);
 
 #endif
Index: uspace/lib/net/tl/icmp_client.c
===================================================================
--- uspace/lib/net/tl/icmp_client.c	(revision 3a609e0c8ac6319b4548c3b5ee2f2ad7fcf30112)
+++ uspace/lib/net/tl/icmp_client.c	(revision 25171e5b00abbda367f2b93c84f58fb1d300c689)
@@ -27,15 +27,19 @@
  */
 
-/** @addtogroup icmp
- *  @{
+/** @addtogroup libnet
+ * @{
  */
 
 /** @file
- *  ICMP client interface implementation.
- *  @see icmp_client.h
+ * ICMP client interface implementation.
+ * @see icmp_client.h
  */
 
+#include <icmp_client.h>
+#include <icmp_header.h>
+#include <packet_client.h>
+
 #ifdef CONFIG_DEBUG
-	#include <stdio.h>
+#include <stdio.h>
 #endif
 
@@ -44,40 +48,55 @@
 
 #include <net/icmp_codes.h>
-#include <icmp_client.h>
 #include <net/packet.h>
-#include <packet_client.h>
-#include <icmp_header.h>
 
-int icmp_client_process_packet(packet_t packet, icmp_type_t * type, icmp_code_t * code, icmp_param_t * pointer, icmp_param_t * mtu){
+/** Processes the received packet prefixed with an ICMP header.
+ *
+ * @param[in] packet	The received packet.
+ * @param[out] type	The ICMP header type.
+ * @param[out] code	The ICMP header code.
+ * @param[out] pointer	The ICMP header pointer.
+ * @param[out] mtu	The ICMP header MTU.
+ * @returns		The ICMP header length.
+ * @returns		Zero if the packet contains no data.
+ */
+int
+icmp_client_process_packet(packet_t packet, icmp_type_t *type,
+    icmp_code_t *code, icmp_param_t *pointer, icmp_param_t *mtu)
+{
 	icmp_header_ref header;
 
 	header = (icmp_header_ref) packet_get_data(packet);
-	if((! header)
-		|| (packet_get_data_length(packet) < sizeof(icmp_header_t))){
+	if (!header ||
+	    (packet_get_data_length(packet) < sizeof(icmp_header_t))) {
 		return 0;
 	}
-	if(type){
+
+	if (type)
 		*type = header->type;
-	}
-	if(code){
+	if (code)
 		*code = header->code;
-	}
-	if(pointer){
+	if (pointer)
 		*pointer = header->un.param.pointer;
-	}
-	if(mtu){
+	if (mtu)
 		*mtu = header->un.frag.mtu;
-	}
+
 	// remove debug dump
 #ifdef CONFIG_DEBUG
-	printf("ICMP error %d (%d) in packet %d\n", header->type, header->code, packet_get_id(packet));
+	printf("ICMP error %d (%d) in packet %d\n", header->type, header->code,
+	    packet_get_id(packet));
 #endif
 	return sizeof(icmp_header_t);
 }
 
-size_t icmp_client_header_length(packet_t packet){
-	if(packet_get_data_length(packet) < sizeof(icmp_header_t)){
+/** Returns the ICMP header length.
+ *
+ * @param[in] packet	The packet.
+ * @returns		The ICMP header length in bytes.
+ */
+size_t icmp_client_header_length(packet_t packet)
+{
+	if (packet_get_data_length(packet) < sizeof(icmp_header_t))
 		return 0;
-	}
+
 	return sizeof(icmp_header_t);
 }
