* Automatic whitespace cleanup, no functional change.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38119 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -183,7 +183,7 @@ icmp_to_net_error(uint8 type, uint8 code)
|
||||
return B_NET_ERROR_REASSEMBLY_TIME_EXCEEDED;
|
||||
}
|
||||
break;
|
||||
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
@@ -397,7 +397,7 @@ icmp_read_avail(net_protocol* protocol)
|
||||
}
|
||||
|
||||
|
||||
struct net_domain*
|
||||
struct net_domain*
|
||||
icmp_get_domain(net_protocol* protocol)
|
||||
{
|
||||
return protocol->next->module->get_domain(protocol->next);
|
||||
@@ -561,7 +561,7 @@ icmp_error_reply(net_protocol* protocol, net_buffer* buffer, net_error error,
|
||||
}
|
||||
|
||||
// a datagram to an IP multicast or broadcast address,
|
||||
if ((buffer->flags & (MSG_BCAST | MSG_MCAST)) != 0)
|
||||
if ((buffer->flags & (MSG_BCAST | MSG_MCAST)) != 0)
|
||||
return B_ERROR;
|
||||
|
||||
// a non-initial fragment
|
||||
@@ -571,7 +571,7 @@ icmp_error_reply(net_protocol* protocol, net_buffer* buffer, net_error error,
|
||||
net_buffer* reply = gBufferModule->create(256);
|
||||
if (reply == NULL)
|
||||
return B_NO_MEMORY;
|
||||
|
||||
|
||||
if (buffer->destination->sa_family == AF_INET) {
|
||||
memcpy(reply->source, buffer->destination, buffer->destination->sa_len);
|
||||
memcpy(reply->destination, buffer->source, buffer->source->sa_len);
|
||||
|
||||
@@ -1599,7 +1599,7 @@ ipv4_receive_data(net_buffer* buffer)
|
||||
buffer->destination, &buffer->interface_address)) {
|
||||
TRACE(" ipv4_receive_data(): packet was not for us %x -> %x",
|
||||
ntohl(header.source), ntohl(header.destination));
|
||||
|
||||
|
||||
// Send ICMP error: Host unreachable
|
||||
sDomain->module->error_reply(NULL, buffer, B_NET_ERROR_UNREACH_HOST,
|
||||
NULL);
|
||||
|
||||
@@ -1159,7 +1159,7 @@ free_buffer(net_buffer* _buffer)
|
||||
delete_ancillary_data_container(buffer->ancillary_data);
|
||||
|
||||
release_data_header(buffer->allocation_header);
|
||||
|
||||
|
||||
if (buffer->interface_address != NULL)
|
||||
((InterfaceAddress*)buffer->interface_address)->ReleaseReference();
|
||||
|
||||
@@ -2109,7 +2109,7 @@ status_t
|
||||
restore_header(net_buffer* _buffer, uint32 offset, void* data, size_t bytes)
|
||||
{
|
||||
net_buffer_private* buffer = (net_buffer_private*)_buffer;
|
||||
|
||||
|
||||
if (offset < buffer->stored_header_length) {
|
||||
data_node* node = (data_node*)list_get_first_item(&buffer->buffers);
|
||||
if (node == NULL
|
||||
|
||||
Reference in New Issue
Block a user