Thread (2 messages) flat view 2 messages, 2 authors, 2006-06-02

Re: Question about tcp hash function tcp_hashfn()

From: Florian Weimer <hidden>
Date: 2006-06-02 07:32:28
Also in: lkml

* Evgeniy Polyakov:
That is wrong. And I have a code and picture to show that, 
and you dont - prove me wrong :)
Here we go:

static inline num2ip(__u8 a1, __u8 a2, __u8 a3, __u8 a4)
{
	__u32 a = 0;

	a |= a1;
	a << 8;
	a |= a2;
	a << 8;
	a |= a3;
	a << 8;
	a |= a4;

	return a;
}

"gcc -Wall" was pretty illuminating. 8-P After fixing this and
switching to a better PRNG, I get something which looks pretty normal.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help