Subject: Re: Merging port numbers.
To: Darren Reed <darrenr@reed.wattle.id.au>
From: None <itojun@iijlab.net>
List: tech-net
Date: 07/23/2000 13:40:48
>Amongst the idle chatter on icb, there was a bit of talk about how bad
>dealing with 16bit things is.  One of the more obvious uses of 16bit
>things in the kernel is TCP/UDP (for port numbers).  The patches below
>introduce some more evilness (in the guise of unions) within the TCP
>and UDP headers to present the port numbers as a combined 32bit entity.
>I've not tested this at all as I'm just curious to get a feeling for
>this.  In a number of places it allows a reduction in the number of
>parameters passed to lookup functions as well as reducing the code
>path length for comparisons.  IPv6 & IPv4 patches included.
>
>Comments ?  Is this sort of evilness welcome within NetBSD for whatever
>minimal performance gain it might provide ?

	for readability, i think i like the current one better
	(separate port number).  we cannot figure out how the port numbers
	are packed until we track things down deeper.

itojun