Subversion Repositories HelenOS

Compare Revisions

Ignore whitespace Rev 4743 → Rev 4733

/branches/network/uspace/srv/net/structures/packet/packet.h
52,6 → 52,23
*/
typedef packet_t * packet_ref;
 
/** Type of the received packet.
*/
enum packet_type{
/** The packet is from the local subsystem.
*/
PACKET_SELF,
/** The packet is for all hosts.
*/
PACKET_BROADCAST,
/** The packet target complies with the local subsystem filter.
*/
PACKET_MULTICAST,
/** The packet is for the local subsystem from other host.
*/
PACKET_OTHERHOST
};
 
/** @name Packet management system interface
*/
/*@{*/
/branches/network/uspace/srv/net/structures/packet/packet_server.c
223,8 → 223,6
void packet_release( packet_t packet ){
int index;
 
// remove debug dump
// printf( "packet %d released\n", packet->packet_id );
for( index = 0; ( index < FREE_QUEUES_COUNT - 1 ) && ( packet->length > ps_globals.sizes[ index ] ); ++ index );
ps_globals.free[ index ] = pq_add( ps_globals.free[ index ], packet, packet->length, packet->length );
assert( ps_globals.free[ index ] );
251,8 → 249,6
}
packet_init( packet, addr_len, max_prefix, max_content, max_suffix );
fibril_mutex_unlock( & ps_globals.lock );
// remove debug dump
// printf( "packet %d got\n", packet->packet_id );
return packet;
}
}
259,8 → 255,6
}
packet = packet_create( length, addr_len, max_prefix, max_content, max_suffix );
fibril_mutex_unlock( & ps_globals.lock );
// remove debug dump
printf( "packet %d created\n", packet->packet_id );
return packet;
}
 
/branches/network/uspace/srv/net/structures/generic_field.h
56,7 → 56,7
typedef name##_t * name##_ref; \
\
struct name{ \
int size; \
size_t size; \
int next; \
type ** items; \
int magic; \
/branches/network/uspace/srv/net/structures/int_map.h
68,7 → 68,7
}; \
\
struct name{ \
int size; \
size_t size; \
int next; \
name##_item_ref items; \
int magic; \
/branches/network/uspace/srv/net/structures/char_map.c
67,13 → 67,6
*/
char_map_ref char_map_find_node( const char_map_ref map, const char * identifier, const size_t length );
 
/** Returns the value assigned to the map.
* @param map The character string to integer map. Input parameter.
* @returns The integral value assigned to the map.
* @returns CHAR_MAP_NULL if the map is not assigned a&nbsp;value.
*/
int char_map_get_value( const char_map_ref map );
 
/** Checks if the map is valid.
* @param map The character string to integer map. Input parameter.
* @returns TRUE if the map is valid.
/branches/network/uspace/srv/net/structures/char_map.h
114,6 → 114,13
*/
int char_map_find( const char_map_ref map, const char * identifier, size_t length );
 
/** Returns the value assigned to the map.
* @param map The character string to integer map. Input parameter.
* @returns The integral value assigned to the map.
* @returns CHAR_MAP_NULL if the map is not assigned a&nbsp;value.
*/
int char_map_get_value( const char_map_ref map );
 
/** Initializes the map.
* @param map The character string to integer map. Input/output parameter.
* @returns EOK on success.