Author: axeld Date: 2011-04-28 20:10:42 +0200 (Thu, 28 Apr 2011) New Revision: 41287 Changeset: https://dev.haiku-os.org/changeset/41287 Modified: haiku/trunk/src/add-ons/kernel/network/protocols/ipv6/ipv6.cpp Log: * Removed two superfluous newlines from debug output. * Automatic whitespace cleanup. Modified: haiku/trunk/src/add-ons/kernel/network/protocols/ipv6/ipv6.cpp =================================================================== --- haiku/trunk/src/add-ons/kernel/network/protocols/ipv6/ipv6.cpp 2011-04-27 20:06:28 UTC (rev 41286) +++ haiku/trunk/src/add-ons/kernel/network/protocols/ipv6/ipv6.cpp 2011-04-28 18:10:42 UTC (rev 41287) @@ -173,7 +173,7 @@ MulticastStateHash::HashKey(const KeyType &key) const { size_t result = 0; - result = jenkins_hashword((const uint32*)&key.first, + result = jenkins_hashword((const uint32*)&key.first, sizeof(in6_addr) / sizeof(uint32), result); result = jenkins_hashword(&key.second, 1, result); return result; @@ -717,7 +717,7 @@ // 2. (If the outgoing interface is detected) the current // hop limit of the interface specified by router advertisement. // 3. The system default hoplimit. - + ipv6_protocol* protocol = (ipv6_protocol*)_protocol; const bool isMulticast = buffer->flags & MSG_MCAST; @@ -790,7 +790,7 @@ // write the checksum for ICMPv6 sockets if (protocolNumber == IPPROTO_ICMPV6 && dataLength >= sizeof(struct icmp6_hdr)) { - NetBufferField<uint16, + NetBufferField<uint16, sizeof(ip6_hdr) + offsetof(icmp6_hdr, icmp6_cksum)> icmpChecksum(buffer); // first make sure the existing checksum is zero @@ -954,7 +954,7 @@ TRACE(" ipv4_receive_data(): packet was not for us %s -> %s", ip6_sprintf(&header.Src(), srcbuf), ip6_sprintf(&header.Dst(), dstbuf)); - + // TODO: Send ICMPv6 error: Host unreachable return B_ERROR; } @@ -1139,7 +1139,7 @@ if (status != B_OK) goto err; - TRACE("init_ipv6: OK\n"); + TRACE("init_ipv6: OK"); return B_OK; err: @@ -1147,7 +1147,7 @@ mutex_destroy(&sReceivingProtocolLock); mutex_destroy(&sMulticastGroupsLock); mutex_destroy(&sRawSocketsLock); - TRACE("init_ipv6: error %s\n", strerror(status)); + TRACE("init_ipv6: error %s", strerror(status)); return status; }