Re: [9fans] bug in network stack regarding Ipht

2015-06-09 Thread cinap_lenrek
good catch! -- cinap

[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