+2000-12-16 Isomer <Isomer@coders.net>
+ * ircd/parse.c: detect if the prefix is missing and try and recover
+ instead of coring.
+
2000-12-15 Kevin L. Mitchell <klmitch@mit.edu>
* ircd/ircd_log.c: found and fixed some bugs in the debug logging
set rlim_fd_max = 4096
The server will raise the soft limit to the hard limit.
+Linux 2.2 -- [Tri]/Isomer
+The kernel has a kernel destination cache size of 4096. If the kernel sees
+more than 4096 IP's in 60s it warns 'dst cache overflow'. This limit can be
+changed by modifying /proc/sys/net/ipv4/route/max_size.
return 0;
}
}
- else if (Protocol(cptr) > 9) /* Well, not ALWAYS, 2.9 can send no prefix */
- {
+ else {
char numeric_prefix[6];
int i;
for (i = 0; i < 5; ++i) {
}
}
numeric_prefix[i] = '\0';
+
/*
* We got a numeric nick as prefix
* 1 or 2 character prefixes are from servers
* 3 or 5 chars are from clients
*/
- if (' ' == ch[1] || ' ' == ch[2])
+ if (0 == i) {
+ protocol_violation(cptr,"Missing Prefix");
+ from = cptr;
+ }
+ else if (' ' == ch[1] || ' ' == ch[2])
from = FindNServer(numeric_prefix);
else
from = findNUser(numeric_prefix);