aboutsummaryrefslogtreecommitdiffstats
path: root/src/res.c
Commit message (Expand)AuthorAgeFilesLines
* Major win32 build system cleanup:•••- Win32: Attempt to move to 100% winsock2 (the include, to be precise), this means includes have to be in a very particular order (!) - Win32: #define _WIN32_WINNT 0x0501 and force our own inet_ntop/pton, otherwise you get an ntop runtime error on XP and earlier. - Win32: Get rid of c-ares includes and library in our tree, and use the DLL instead of static LIB, just like we do for ssl and zlib. - Win32: Get rid of TRE lib and includes - Win32: reorder includes to fix winsock errors with curl Gravatar Bram Matthys2010-12-121-0/+1
* - Partially fixed bug where IPv4 addresses were randomly mishandled by the cg...Gravatar binki2010-05-281-0/+5
* /* Prevent crashes due to invalid prototype/ABI.••• * And force the use of at least the version shipped with Unreal * (or at least one without known security issues). */ this text is fcked btw.. whatever... Gravatar Bram Matthys2009-05-131-1/+4
* - Applied another patch from ohnobinki which adds --with-system-cares••• (#0003847). Gravatar Bram Matthys2009-05-131-9/+22
* - Fix for compile problem on FreeBSD (and possibly other OS's):••• - When pkg-config is present but does not recognize --static, use default c-ares library options. - Set default c-ares library options to -lcares on FreeBSD and others. Set to -lcares -lrt on Linux (previously was -lcares -lrt for all). Thanks to goldenwolf for the bugreport (#0003803) and providing a test- shell to trace this issue down. Gravatar Bram Matthys2009-02-011-0/+5
* - Fixed crash which could happen when rehashing while linking to a server,••• this could be #0003689 reported by Monk. Gravatar Bram Matthys2008-12-271-0/+2
* - Upgraded c-ares to 1.5.1, thanks to aegis for the partial patch (#0003671).••• This also fixed a curl compile/run issue, reported by static-x (#0003545). Gravatar Bram Matthys2008-04-071-6/+6
* - Windows 2003: Fixed UnrealIRCd unable to boot if no DNS server is configure...••• fallback to set::dns::nameserver in such a case. Thanks to Romeo (reporter, #0002802) and Bock for tracing this down. Gravatar Bram Matthys2006-09-191-9/+32
* - Fixed small memory leak in resolver (~40 bytes when connecting to a server)•••- Made Unreal use the original name in case of a CNAME, instead of the forwarded name, reported by jerrcsnet (#0003054). - The "looking up your hostname" message was always sent, regardless of show-connect-info. Gravatar Bram Matthys2006-09-061-10/+11
* - Removed server numeric output from /MAP for normal users (still visible to ...•••- Renamed unreal32docs.tk.html to unreal32docs.tr.html - Module coders: Added HOOKTYPE_POST_SERVER_CONNECT (1 param: cptr) which is called when a server connects, just like HOOTYPE_SERVER_CONNECT but this is actually called *after* all clients and channels are synched. Obviously needed for some modules which must synch data that refers to clients/channels that would otherwise not exist yet on the other side. Gravatar Bram Matthys2006-08-191-1/+1
* - Updated release notes a bit (will be updated more later): backrefs (\1) in ...••• kinda scary, or at least at the moment. Gravatar Bram Matthys2006-06-061-0/+23
* - Made the resolver no longer check /etc/hosts, since that's how it used to b...•••and... config.h comment change.. Gravatar Bram Matthys2006-06-031-0/+6
* - c-ares (currently, a forked off version) enhancements:••• - '/quote dns i' now shows the nameserver settings (which is taken from /etc/resolv.conf on *NIX, and from the registry on Windows) - We no longer depend on a C++ compiler (was useless c-ares dependency caused by libtool) - '/REHASH -dns' now rereads the resolver data from resolv.conf/registry, no IRCd restart needed anymore. It's currently kinda experimental however, but I *think* it will work ok. Unfortunately the above features required some ugly hacks if curl was enabled, so if you use curl (Remote includes), feel free to test on your OS (Linux, but especially FreeBSD and the other *NIXes) to see if things still compile (make clean; ./Config && make). Gravatar Bram Matthys2006-04-111-6/+48
* - Added error message if c-ares failed to initialize, might help in case some...••• (either with Unreal or the OS/environment). Gravatar Bram Matthys2006-02-161-1/+10
* - Added new charsys languages: belarussian-w1251 and ukrainian-w1251. Patch p...••• by Bock (#0002724). - Fixed memory leak in new resolver. [ATTEMPT II] Gravatar Bram Matthys2006-01-141-0/+8
* - [CVS Only] Refixed name<->ip mapping check in new resolver, reported by Darko.Gravatar Bram Matthys2005-11-221-3/+7
* - Added proper "not enough parameters" message for /SETNAME and cleaned up so...••• in the function, reported by Robby22 (#0002696). - Fixed set::static-part set to 'no' not working properly. Reported by Robby22 (#0002698). - Fixed crash in new resolver, reported by firstof9. Gravatar Bram Matthys2005-11-161-5/+4
* Added a check for idiots trying to update from 3.2.3 -> CVS/3.2.4 without run...Gravatar Bram Matthys2005-10-291-0/+5
* - Removed all old resolver code and switched over to c-ares (+our caching rou...••• This should get rid of some annoying untracable (and usually rare) crashbugs in the old resolver. Besides that, it makes things look more clean and understandable. This should be the fix for the following bugids (all the same issue): #2499, #2551, #2558, #2559, #2603, #2642, #2502, #2501, #2618, #2616. Feedback and testing is very much welcomed (syzop@unrealircd.com). Gravatar Bram Matthys2005-10-101-1706/+440
* - Added some TSCTL logging (this reminds me we need to add new log levels for...•••- Attempt to fix bug #2431: 3.2.2 broke CNAME delegation for reverse dns. I'm sorry it took so long, but this stuff just plain sucks... Gravatar Bram Matthys2005-07-051-10/+17
* - Fixed a resolver cache bug regarding CNAME's, this needs some more testing.••• [this description will be updated after knowing if this indeed fixes #2229/#1236] Gravatar Bram Matthys2005-01-211-3/+57
* - Added set::dns::bind-ip (rarely ever needed, but might be useful for parano...•••- Some unreal32docs->security section improvements. Gravatar Bram Matthys2004-11-191-2/+7
* Corrected numerous -Wall warningsGravatar codemastr2004-11-041-1/+0
* - IPv6: Fixed hostnames in link::hostname not working, reported by Jasmin (#0...Gravatar Bram Matthys2004-10-071-6/+10
* - Fixed resolver not working in FreeBSD jail, reported & patch provided by ur...Gravatar Bram Matthys2004-09-291-1/+11
* - Fixed possible crash id /rehash'ing and a servername was just resolving (du...••• /connect or autoconnect) and was not present in the cache. Reported and traced by sh0 (#0001976). - Fixed compile bug at *NIX caused by ModuleGetErrorStr fix. Gravatar Bram Matthys2004-07-221-0/+13
* - Applied patch from slePP for bug #0001252: if IPv6 was enabled then in some...••• were not properly resolved. Original bug reported by kormat. Gravatar Bram Matthys2004-07-221-11/+68
* - Fixed compile problem with debugmode + ipv6Gravatar Bram Matthys2004-06-171-1/+1
* Added /dns c to clear the DNS cacheGravatar codemastr2004-06-011-0/+7
* Made the win32 version use a dynamically linked libcGravatar codemastr2004-05-301-1/+1
* - Changed random number generator to use arc4random-alike routines so we can ...••• random numbers. We will also no longer be using rand()/random() anywhere. Thanks to dek\ for pointing out this is potentionally dangerous, especially on win32 with NOSPOOF enabled. Gravatar Bram Matthys2004-01-191-28/+5
* - Added oper::maxlogins which allows you to limit the number of concurrent se...••• with the same oper block. Suggested by kain. - Made /dns oper-only (the ircd command, not your client /dns command :p). - Various help.conf fixes. Reported by nukie (#0001373). Gravatar Bram Matthys2003-11-191-2/+9
* - (Internal) Added __attribute__ format checking for most format string funct...••• this will currently produce a lot of warnings with -Wall. - Fixed 159 of 184 warnings detected by the above, the other warnings are false. Most warnings had to do with long vs int, and thus the format strings (%d->%ld) or the vars (int->long) have been changed (many of these were time_t/TS vs int). Only a few rare crashbugs were discovered. - Module coders: for HOOKTYPE_LOCAL_CHANMODE the 'sendts' parameter was changed from type 'int' to 'time_t', while in most circumstances (like on ia32) you won't notice, I suggest you to update your callback functions anyway. - Possibly fixed an issue with set::modes-on-join and mode +f, it could have set random remove-chanmode times in the default chanmode line. Gravatar Bram Matthys2003-11-021-3/+3
* - Fixed a win32 resolver lockup bugGravatar Bram Matthys2003-09-211-3/+9
* extcmode changesGravatar codemastr2003-08-241-1/+1
* *nix resolver for WindowsGravatar codemastr2003-08-211-379/+34
* blahGravatar Bram Matthys2003-06-151-1/+7
* Recoded some resolver mutex stuffGravatar codemastr2003-06-011-6/+0
* Fixed a win32 resolver bugGravatar codemastr2003-06-011-0/+3
* - Resolver fix nr #1 (prolly not "the real problem").Gravatar Bram Matthys2003-06-011-6/+17
* multiple patches:•••- Module coders: new hooks: part, kick, chanmode, topic. changed: quit (added 'comment' param). - Enlarged REPORT_* vars a bit. - IPv6: UnrealIRCd can now lookup ip6.arpa addresses too (original IRCnet patch modified for UnrealIRCd by Onliner). Gravatar Bram Matthys2003-05-271-2/+8
* Resolver changesGravatar codemastr2003-05-111-2/+4
* channelmode +f fix /// IPv6: Fixed unable-to-resolve-bug if both a A/AAAA rec...Gravatar Bram Matthys2003-05-111-0/+1
* - Fixed unprecise RPING output at windoze, reported by pak (#0000945). + usel...Gravatar Bram Matthys2003-05-041-0/+3
* - code cleanup / misc minor bugfixes (MyMalloc, oper msgs)Gravatar Bram Matthys2003-04-121-1/+1
* - Code cleanup (gcc 3.2 warnings with -Wall).•••Compile tests done: Linux, Linux SSL, Linux SSL+ZIP, Windows, Windows ZIP, Windows SSL+ZIP. This might also have fixed some (or 1) bug(s) :P. Gravatar Bram Matthys2003-02-231-0/+2
* * don't send SHOWCONNECTINFO if the link is (known to be) a server.•••* same for scan message * don't say "you have not registered" on NOTICE in unregistered state. * made a send_prot(aClient, ConfigItem_link) for sending PROTOCTL message, takes care of sending ZIP in token in case of a ziplink (indeed, I don't send "ZIP" if it's not marked as a ziplink). * added automatic fallback tot uncompressed link in case one of the sides has zip turned off or not compiled in. * added configcheck for link::options::zip turned on when not compiled in (just like we do with ssl). Gravatar Bram Matthys2003-02-061-1/+1
* - Fixed a resolver bug where cache entries didn't timeout correctly.•••- Made async resolve-and-connect work - Added link::options::nodnscache which means Unreal will not cache the host forever for outgoing server connections, you could for example enable this if you are linking two servers with an often changing host (like dyndns.org). Gravatar Bram Matthys2003-02-041-2/+24
* Fixed minor bug in resolving of IPv4 names if IPv6 is enabled (#0000659).•••We were doing: T_AAAA, if that fails then T_A. But in that case when a host has both T_A and T_AAAA entries, the reverse lookup will fail for ipv4. Now using T_ANY to fetch both T_A and T_AAAA addresses at once. Gravatar Bram Matthys2003-01-241-2/+2
* Fixed some formatting issues.Gravatar Bram Matthys2003-01-231-1/+1