Subversion Repositories HelenOS

Compare Revisions

Ignore whitespace Rev 4707 → Rev 4708

/branches/network/uspace/srv/net/il/icmp/icmp.c
214,14 → 214,15
}
 
int icmp_process_packet( packet_t packet ){
int length;
size_t length;
int result;
void * data;
icmp_header_ref header;
 
// get rid of the ip header
length = ip_client_process_packet( packet, NULL, NULL, NULL, NULL, NULL );
if( length < 0 ) return length;
packet_trim( packet, length, 0 );
result = ip_client_process_packet( packet, NULL, NULL, NULL, NULL, NULL );
if( result < 0 ) return result;
packet_trim( packet, ( size_t ) result, 0 );
 
length = packet_get_data_length( packet );
if( length <= 0 ) return EINVAL;