<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/include/net/inet_sock.h, branch linux-2.6.24.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-2.6.24.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-2.6.24.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2008-03-24T18:47:04Z</updated>
<entry>
<title>TCP: Improve ipv4 established hash function.</title>
<updated>2008-03-24T18:47:04Z</updated>
<author>
<name>David S. Miller</name>
</author>
<published>2008-03-05T22:49:24Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=beeb75e6ebc60fb4323f9ce5cfeffaea5ccffc36'/>
<id>urn:sha1:beeb75e6ebc60fb4323f9ce5cfeffaea5ccffc36</id>
<content type='text'>
Upstream commit: 7adc3830f90df04a13366914d80a3ed407db5381

If all of the entropy is in the local and foreign addresses,
but xor'ing together would cancel out that entropy, the
current hash performs poorly.

Suggested by Cosmin Ratiu:

	Basically, the situation is as follows: There is a client
	machine and a server machine. Both create 15000 virtual
	interfaces, open up a socket for each pair of interfaces and
	do SIP traffic. By profiling I noticed that there is a lot of
	time spent walking the established hash chains with this
	particular setup.

	The addresses were distributed like this: client interfaces
	were 198.18.0.1/16 with increments of 1 and server interfaces
	were 198.18.128.1/16 with increments of 1. As I said, there
	were 15000 interfaces. Source and destination ports were 5060
	for each connection.  So in this case, ports don't matter for
	hashing purposes, and the bits from the address pairs used
	cancel each other, meaning there are no differences in the
	whole lot of pairs, so they all end up in the same hash chain.

Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;
Signed-off-by: Chris Wright &lt;chrisw@sous-sol.org&gt;
</content>
</entry>
<entry>
<title>[UDP]: Make use of inet_iif() when doing socket lookups.</title>
<updated>2007-10-26T01:54:46Z</updated>
<author>
<name>Vlad Yasevich</name>
</author>
<published>2007-10-26T01:54:46Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=fee9dee730a40f671c1972a324ed54f0d68523e1'/>
<id>urn:sha1:fee9dee730a40f671c1972a324ed54f0d68523e1</id>
<content type='text'>
UDP currently uses skb-&gt;dev-&gt;ifindex which may provide the wrong
information when the socket bound to a specific interface.
This patch makes inet_iif() accessible to UDP and makes UDP use it.

The scenario we are trying to fix is when a client is running on
the same system and the server and both client and server bind to
a non-loopback device.

Signed-off-by: Vlad Yasevich &lt;vladislav.yasevich@hp.com&gt;
Acked-by: David L Stevens &lt;dlstevens@us.ibm.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>[INET]: Use jhash + random secret for ehash.</title>
<updated>2007-04-26T05:28:06Z</updated>
<author>
<name>David S. Miller</name>
</author>
<published>2007-03-23T18:40:27Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b3da2cf37c5c6e47698957a25ab43a7223dbb90f'/>
<id>urn:sha1:b3da2cf37c5c6e47698957a25ab43a7223dbb90f</id>
<content type='text'>
The days are gone when this was not an issue, there are folks out
there with huge bot networks that can be used to attack the
established hash tables on remote systems.

So just like the routing cache and connection tracking
hash, use Jenkins hash with random secret input.

Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>[IPV4]: annotate inet_lookup() and friends</title>
<updated>2006-09-29T01:02:26Z</updated>
<author>
<name>Al Viro</name>
</author>
<published>2006-09-28T01:43:33Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=fb99c848e5ae6b8b2bc11f0f90c9e2bb3d702c0d'/>
<id>urn:sha1:fb99c848e5ae6b8b2bc11f0f90c9e2bb3d702c0d</id>
<content type='text'>
inet_lookup() annotated along with helper functions (__inet_lookup(),
__inet_lookup_established(), inet_lookup_established(),
inet_lookup_listener(), __inet_lookup_listener() and inet_ehashfn())

Signed-off-by: Al Viro &lt;viro@zeniv.linux.org.uk&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>[IPV4]: struct inet_request_sock annotations</title>
<updated>2006-09-29T01:02:12Z</updated>
<author>
<name>Al Viro</name>
</author>
<published>2006-09-28T01:35:29Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e11be94bf6a3bfc90816d37847e6b5b179ca2ff6'/>
<id>urn:sha1:e11be94bf6a3bfc90816d37847e6b5b179ca2ff6</id>
<content type='text'>
-&gt;port is net-endian

Signed-off-by: Al Viro &lt;viro@zeniv.linux.org.uk&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>[IPV4]: ports in struct inet_sock are net-endian</title>
<updated>2006-09-29T01:02:06Z</updated>
<author>
<name>Al Viro</name>
</author>
<published>2006-09-28T01:33:05Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=2816e1284a2db03ad5e205bab4eacbc5f7d4f991'/>
<id>urn:sha1:2816e1284a2db03ad5e205bab4eacbc5f7d4f991</id>
<content type='text'>
Signed-off-by: Al Viro &lt;viro@zeniv.linux.org.uk&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>[IPV4]: struct ip_options annotations</title>
<updated>2006-09-29T01:01:53Z</updated>
<author>
<name>Al Viro</name>
</author>
<published>2006-09-28T01:28:07Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3ca3c68e76686bee058937ade2b96f4de58ee434'/>
<id>urn:sha1:3ca3c68e76686bee058937ade2b96f4de58ee434</id>
<content type='text'>
-&gt;faddr is net-endian; annotated as such, variables inferred to be net-endian
annotated.

Signed-off-by: Al Viro &lt;viro@zeniv.linux.org.uk&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>[IPV4]: annotate address in inet_request_sock</title>
<updated>2006-09-29T01:01:51Z</updated>
<author>
<name>Al Viro</name>
</author>
<published>2006-09-28T01:27:13Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=adaf345b537681c6ed3657941904d976fe72f342'/>
<id>urn:sha1:adaf345b537681c6ed3657941904d976fe72f342</id>
<content type='text'>
Signed-off-by: Al Viro &lt;viro@zeniv.linux.org.uk&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>[IPV4]: annotated ipv4 addresses in struct inet_sock</title>
<updated>2006-09-29T00:54:07Z</updated>
<author>
<name>Al Viro</name>
</author>
<published>2006-09-27T04:27:35Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=011a92610826bdeec4b80ab423958d4c512639f6'/>
<id>urn:sha1:011a92610826bdeec4b80ab423958d4c512639f6</id>
<content type='text'>
Signed-off-by: Al Viro &lt;viro@zeniv.linux.org.uk&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>[INET]: Remove is_setbyuser patch</title>
<updated>2006-09-22T21:54:10Z</updated>
<author>
<name>Louis Nyffenegger</name>
</author>
<published>2006-08-08T07:56:11Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=1a01912ae0a5666c4c24eaae2b4821711e2ad79a'/>
<id>urn:sha1:1a01912ae0a5666c4c24eaae2b4821711e2ad79a</id>
<content type='text'>
The value is_setbyuser from struct ip_options is never used and set
only one time (http://linux-net.osdl.org/index.php/TODO#IPV4).
This little patch removes it from the kernel source.

Signed-off-by: Louis Nyffenegger &lt;louis.nyffenegger@gmail.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
</feed>
