Subversion Repositories HelenOS

Compare Revisions

Ignore whitespace Rev 4504 → Rev 4505

/branches/network/uspace/srv/net/structures/packet/packet.c
40,6 → 40,7
#include <mem.h>
#include <rwlock.h>
//#include <stdio.h>
#include <unistd.h>
 
#include <sys/mman.h>
 
47,8 → 48,8
 
#include "../generic_field.h"
 
#include "packet.h"
#include "packet_header.h"
#include "packet.h"
 
/** Packet map page size.
*/
211,6 → 212,18
return packet;
}
 
int pq_insert_after( packet_t packet, packet_t new_packet ){
packet_t item;
 
if( !( packet_is_valid( packet ) && packet_is_valid( new_packet ))) return EINVAL;
new_packet->previous = packet->packet_id;
new_packet->next = packet->next;
item = pm_find( packet->next );
if( item ) item->previous = new_packet->packet_id;
packet->next = new_packet->packet_id;
return EOK;
}
 
packet_t pq_detach( packet_t packet ){
packet_t next;
packet_t previous;