summaryrefslogtreecommitdiff
path: root/src/dns.cpp
AgeCommit message (Collapse)Author
2006-08-01Still working under ipv4 nowbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4614 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-01Dns stuffbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4613 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-01This might well be the last commit to this dns resolver in its current form. ↵brain
With a bit of luck, we can make a better (always-threaded) one git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4612 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-01The IPV6 stuff compiles now, with compile-correct ipv6 code. I dont know if ↵brain
this works yet. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4611 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-01AF_INET -> define to AF_FAMILY, will be either AF_INET or AF_INET6brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4610 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-01Move to entirely using insp_sockaddr and insp_inaddr for socket stuff, first ↵brain
step on the road to ipv6 support git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4609 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-20Add comments, remove debug, alter message in ./configurebrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4466 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-20Fixed, no longer a memory leak (Thread leak)brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4465 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-20Someone please take a look at this and tell me why a thread doesnt free ↵brain
itself like it should when it exits, freeing the ram git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4462 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-20Make threaded dns stable by placing some mutexes around some stl stuff (this ↵brain
really needs lots of testing now) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4460 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-20Threaded dns stuff - im going to try and make this stable in 1.1brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4459 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-19Removed all that lastcreate and wantclose craq from dns.cpp (WHAT THE FUCK ↵brain
WERE THE FIREDNS GUYS SMOKING) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4454 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-19* Seperate out socket engines into derived classes of SocketEngine.brain
* Add a classfactory SocketEngineFactory to create a new socketengine of the configured type * Implement configure hax to compile only the required socketengine and the base class * Eliminates ugly defines, and is more in line with C++ ways git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4439 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-16Tweaks for nonblocking dnsbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4432 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-16Fix socket leak properly this timebrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4405 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-14Rollback dns changebrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4384 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-14Fix dns socket leak found in stablebrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4383 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-12Removed debuggingbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4368 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-12All this works now (hopefully)brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4367 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-12Throw moduleexception if you:brain
(a) try and resolve hosts before the core is initialized (HOW?!) (b) try and resolve a host and the domain server is totally unreacable e.g. through lack of fd's or ifconfig eth0 down :p (this is the only safe way, any other way may result in a developer inserting an invalid pointer into a list of Resolver* theyre watching) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4360 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-12Typobrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4358 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-12Make it work:brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4357 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-12Added class Resolver (needs testing)brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4353 e03df62e-2008-0410-955e-edbf42e46eb7
2006-05-03Return false was missingbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3928 e03df62e-2008-0410-955e-edbf42e46eb7
2006-04-24delete operator tracking in debug mode (using a macro -- live with it.)brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3904 e03df62e-2008-0410-955e-edbf42e46eb7
2006-04-06Holy christ that was a LOT OF SPACES. TABS, USE THEM, LOVE THEM, APPRECIATE ↵w00t
THEM - we now have no stupid spaces. This was mostly a mass find/replace, so some indentation may be stuffed. Minor issue, though. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3838 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-12Const refs (this is about the last of them in the core api)brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3694 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-10Support for hostnames in <bind> tag (so long as the hostname resolves to a ↵brain
locally bindable ip) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3621 e03df62e-2008-0410-955e-edbf42e46eb7
2006-02-09Typo in some code that should usually be #ifdef'ed out anyway, but we still ↵brain
want this to work sometimes, maybe. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3147 e03df62e-2008-0410-955e-edbf42e46eb7
2006-02-02*UNTESTED DO NOT USE YET* - async dns for InspSocket as test - removing ↵brain
requirement on nss_dns.so.1 git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3017 e03df62e-2008-0410-955e-edbf42e46eb7
2006-02-01Allow async dns to compile -- but its still experimental and should not be ↵brain
used on a production network! git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3006 e03df62e-2008-0410-955e-edbf42e46eb7
2006-01-25Remove last relic of last goto in inspircd (an unused label)om
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2907 e03df62e-2008-0410-955e-edbf42e46eb7
2006-01-25One goto is now no gotos.brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2904 e03df62e-2008-0410-955e-edbf42e46eb7
2006-01-15Updated copyrights in headers etc using perl inplace editbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2795 e03df62e-2008-0410-955e-edbf42e46eb7
2005-12-31Tidyup of K&R style indenting, comments in silly places, and pointless curly ↵brain
braces around non-blocks git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2718 e03df62e-2008-0410-955e-edbf42e46eb7
2005-12-31Changed to QueryType rather than short int for query typesbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2717 e03df62e-2008-0410-955e-edbf42e46eb7
2005-12-31Removed crappy linked list stuff and replaced with faster std::mapbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2716 e03df62e-2008-0410-955e-edbf42e46eb7
2005-12-31Improving niceness of DNS code, i WILL make this readable!brain
Changed a ton of ugly firedns #define's to enums git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2715 e03df62e-2008-0410-955e-edbf42e46eb7
2005-12-29Fixed an extremely n00bish mistake involving referencing a global copy of ↵brain
ServerEngine when we now use one local to class InspIRCd (everyone point and laugh at Brain) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2692 e03df62e-2008-0410-955e-edbf42e46eb7
2005-12-16Moved serverstats stuff outbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2529 e03df62e-2008-0410-955e-edbf42e46eb7
2005-12-16Moved SocketEngine* SE into InspIRCd classbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2527 e03df62e-2008-0410-955e-edbf42e46eb7
2005-12-16Moved command parsing crap into command_parse.cppbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2505 e03df62e-2008-0410-955e-edbf42e46eb7
2005-12-14Started moving of data into ServerConfig classbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2393 e03df62e-2008-0410-955e-edbf42e46eb7
2005-12-14Half way through updating to move a ton of extern confs into class ServerConfigbrain
WILL NOT RUN ATM git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2392 e03df62e-2008-0410-955e-edbf42e46eb7
2005-12-12Tied in DNS to SocketEnginebrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2333 e03df62e-2008-0410-955e-edbf42e46eb7
2005-12-12Attempts to make DNS nicer with new socket enginebrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2332 e03df62e-2008-0410-955e-edbf42e46eb7
2005-12-12*EXPERIMENTAL* Tied DNS into new socket enginebrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2331 e03df62e-2008-0410-955e-edbf42e46eb7
2005-12-07Changed behaviour of module API to pass Server* to the constructor, rather ↵brain
than have to create one (makes more sense) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2252 e03df62e-2008-0410-955e-edbf42e46eb7
2005-12-07Tons of DNS debugging and stability fixesbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2247 e03df62e-2008-0410-955e-edbf42e46eb7
2005-12-07DNS safety and loggingbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2246 e03df62e-2008-0410-955e-edbf42e46eb7