[9fans] bug in network stack regarding Ipht

2015-06-08 Thread yoann padioleau
Hi,

I think I’ve found a bug in the network stack.
in 9/ip/ip.h there is
struct Ipht
{
Lock;
Iphash  *tab[Nipht];
};

where Night is 521,

but then in 9/ip/ipaux.c there is

ulong
iphash(uchar *sa, ushort sp, uchar *da, ushort dp)
{
return ((sa[IPaddrlen-1]<<24) ^ (sp << 16) ^ (da[IPaddrlen-1]<<8) ^ dp 
) % Nhash;
}

where Nhash is just 64,

so lots of entries in Ipht.tab will never be used. This slows down every 
ip+port lookups in the UDP and TCP code.





Re: [9fans] small VFD display

2015-06-08 Thread Ethan Grammatikidis
On Wed, 6 May 2015 10:52:30 +0100
"Steve Simon"  wrote:

> Could I run the plan9 graphics subsystem in a stand alone app rather
> than involving the kernel?
> I think I can but are there any examples of this?

vncs(1)



-- 
Developing the austere intellectual discipline of keeping things
sufficiently simple is in this environment a formidable challenge,
both technically and educationally.
 -- Dijstraka, EWD898, 1984