Index: uspace/lib/c/generic/net/packet.c
===================================================================
--- uspace/lib/c/generic/net/packet.c	(revision 1bfd3d3b2991b8f2df4cff87d9723059528b9bd1)
+++ uspace/lib/c/generic/net/packet.c	(revision 46d4d9f449e7933280b1877c70448602ec0ab0ae)
@@ -62,5 +62,5 @@
 
 /** Type definition of the packet map page. */
-typedef packet_t packet_map_t[PACKET_MAP_SIZE];
+typedef packet_t *packet_map_t[PACKET_MAP_SIZE];
 
 /** Packet map.
@@ -104,8 +104,8 @@
  * @return		NULL if the mapping does not exist.
  */
-packet_t pm_find(packet_id_t packet_id)
+packet_t *pm_find(packet_id_t packet_id)
 {
 	packet_map_t *map;
-	packet_t packet;
+	packet_t *packet;
 
 	if (!packet_id)
@@ -135,5 +135,5 @@
  * @return		ENOMEM if there is not enough memory left.
  */
-int pm_add(packet_t packet)
+int pm_add(packet_t *packet)
 {
 	packet_map_t *map;
@@ -178,5 +178,5 @@
 	int index;
 	packet_map_t *map;
-	packet_t packet;
+	packet_t *packet;
 
 	fibril_rwlock_write_lock(&pm_globals.lock);
@@ -209,7 +209,7 @@
  * @return		EINVAL if the packet is not valid.
  */
-int pq_add(packet_t * first, packet_t packet, size_t order, size_t metric)
-{
-	packet_t item;
+int pq_add(packet_t **first, packet_t *packet, size_t order, size_t metric)
+{
+	packet_t *item;
 
 	if (!first || !packet_is_valid(packet))
@@ -253,7 +253,7 @@
  * @return		NULL if the packet is not found.
  */
-packet_t pq_find(packet_t packet, size_t order)
-{
-	packet_t item;
+packet_t *pq_find(packet_t *packet, size_t order)
+{
+	packet_t *item;
 
 	if (!packet_is_valid(packet))
@@ -278,7 +278,7 @@
  * @return		EINVAL if etiher of the packets is invalid.
  */
-int pq_insert_after(packet_t packet, packet_t new_packet)
-{
-	packet_t item;
+int pq_insert_after(packet_t *packet, packet_t *new_packet)
+{
+	packet_t *item;
 
 	if (!packet_is_valid(packet) || !packet_is_valid(new_packet))
@@ -303,8 +303,8 @@
  * @return		NULL if the packet is not valid.
  */
-packet_t pq_detach(packet_t packet)
-{
-	packet_t next;
-	packet_t previous;
+packet_t *pq_detach(packet_t *packet)
+{
+	packet_t *next;
+	packet_t *previous;
 
 	if (!packet_is_valid(packet))
@@ -331,5 +331,5 @@
  * @return		EINVAL if the packet is invalid.
  */
-int pq_set_order(packet_t packet, size_t order, size_t metric)
+int pq_set_order(packet_t *packet, size_t order, size_t metric)
 {
 	if (!packet_is_valid(packet))
@@ -349,5 +349,5 @@
  * @return		EINVAL if the packet is invalid.
  */
-int pq_get_order(packet_t packet, size_t *order, size_t *metric)
+int pq_get_order(packet_t *packet, size_t *order, size_t *metric)
 {
 	if (!packet_is_valid(packet))
@@ -372,8 +372,8 @@
  *			packets after its detachment.
  */
-void pq_destroy(packet_t first, void (*packet_release)(packet_t packet))
-{
-	packet_t actual;
-	packet_t next;
+void pq_destroy(packet_t *first, void (*packet_release)(packet_t *packet))
+{
+	packet_t *actual;
+	packet_t *next;
 
 	actual = first;
@@ -395,5 +395,5 @@
  * @return		NULL if the packet is not valid.
  */
-packet_t pq_next(packet_t packet)
+packet_t *pq_next(packet_t *packet)
 {
 	if (!packet_is_valid(packet))
@@ -410,5 +410,5 @@
  * @return		NULL if the packet is not valid.
  */
-packet_t pq_previous(packet_t packet)
+packet_t *pq_previous(packet_t *packet)
 {
 	if (!packet_is_valid(packet))
Index: uspace/lib/c/include/net/packet.h
===================================================================
--- uspace/lib/c/include/net/packet.h	(revision 1bfd3d3b2991b8f2df4cff87d9723059528b9bd1)
+++ uspace/lib/c/include/net/packet.h	(revision 46d4d9f449e7933280b1877c70448602ec0ab0ae)
@@ -46,5 +46,5 @@
  * @see packet
  */
-typedef struct packet * packet_t;
+typedef struct packet packet_t;
 
 /** Type definition of the packet dimension.
@@ -69,18 +69,18 @@
 /*@{*/
 
-extern packet_t pm_find(packet_id_t);
-extern int pm_add(packet_t);
+extern packet_t *pm_find(packet_id_t);
+extern int pm_add(packet_t *);
 extern int pm_init(void);
 extern void pm_destroy(void);
 
-extern int pq_add(packet_t *, packet_t, size_t, size_t);
-extern packet_t pq_find(packet_t, size_t);
-extern int pq_insert_after(packet_t, packet_t);
-extern packet_t pq_detach(packet_t);
-extern int pq_set_order(packet_t, size_t, size_t);
-extern int pq_get_order(packet_t, size_t *, size_t *);
-extern void pq_destroy(packet_t, void (*)(packet_t));
-extern packet_t pq_next(packet_t);
-extern packet_t pq_previous(packet_t);
+extern int pq_add(packet_t **, packet_t *, size_t, size_t);
+extern packet_t *pq_find(packet_t *, size_t);
+extern int pq_insert_after(packet_t *, packet_t *);
+extern packet_t *pq_detach(packet_t *);
+extern int pq_set_order(packet_t *, size_t, size_t);
+extern int pq_get_order(packet_t *, size_t *, size_t *);
+extern void pq_destroy(packet_t *, void (*)(packet_t *));
+extern packet_t *pq_next(packet_t *);
+extern packet_t *pq_previous(packet_t *);
 
 /*@}*/
Index: uspace/lib/c/include/net/packet_header.h
===================================================================
--- uspace/lib/c/include/net/packet_header.h	(revision 1bfd3d3b2991b8f2df4cff87d9723059528b9bd1)
+++ uspace/lib/c/include/net/packet_header.h	(revision 46d4d9f449e7933280b1877c70448602ec0ab0ae)
@@ -128,5 +128,5 @@
  * @return		False otherwise.
  */
-static inline int packet_is_valid(const packet_t packet)
+static inline int packet_is_valid(const packet_t *packet)
 {
 	return packet && (packet->magic_value == PACKET_MAGIC_VALUE);
