summaryrefslogtreecommitdiff
path: root/src/dns.cpp
Commit message (Expand)AuthorAgeFilesLines
* Drop some unused filesGravatar Daniel De Graaf2010-08-081-2/+0
* Finish header file #include untangleGravatar Daniel De Graaf2010-08-081-3/+0
* Define comparator for irc::sockets::sockaddrs•••This only compares IP/port, which ignores IPv6 flow information and scope ID, which aren't important in testing for equality. Gravatar Daniel De Graaf2010-08-031-1/+1
* Add debug output for received DNS packetsGravatar Daniel De Graaf2010-08-031-0/+4
* Change DNS binding to avoid BindSocket which could use the wrong address familyGravatar Daniel De Graaf2010-08-031-20/+11
* Add better debug output to dns.cppGravatar Daniel De Graaf2010-08-031-4/+24
* Calling OnError from Resolver's constructor is broken; just use the exceptionGravatar Daniel De Graaf2010-08-031-4/+1
* Add random number generation functions to InspIRCd class.•••Default implementation uses libc random(), which can be better than rand(). If gnutls is loaded, gcrypt will be used to provide random numbers. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12404 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2010-02-091-16/+3
* Remove excessive gettimeofday system calls•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12293 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2010-01-181-5/+14
* ...because every now and again, i have to do a massive commit.•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12248 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2010-01-111-1/+1
* Get rid of OpenTCPSocket•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11969 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-10-241-2/+3
* Make irc::sockets::* parameters consistent, add irc::sockets::mask•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11953 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-10-221-1/+1
* Fix crash due to null address in DNS•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11797 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-10-031-13/+2
* Get rid of a bunch of memory-wasting C-style strings•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11796 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-10-031-58/+13
* Remove include/inspircd_se_config.h and socketengine-specific headers•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11784 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-09-301-1/+0
* Remove InspIRCd* parameters and fields•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11763 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-09-261-14/+11
* Clean up SocketEngine interface to allow edge-triggered I/O and sockets that ...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11760 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-09-261-1/+1
* Change Extensible to use strongly typed entries•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11696 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-09-131-1/+0
* Valgrind cleanup: fix segfault on exit•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11616 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-09-021-1/+2
* Valgrind cleanup: finish destructor creation•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11615 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-09-021-1/+6
* Remove unneeded #ifdef IPV6 lines•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11582 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-09-011-8/+0
* Remove now-unused insp_sockaddr and insp_inaddr types•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11579 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-09-011-48/+0
* Remove needless sockaddr[2] allocations, replace with irc::sockets::sockaddrs...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11574 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-09-011-13/+6
* Strip SUPPORT_IP6LINKS #define•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11572 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-09-011-6/+1
* Move list of open ports out of Config object•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11423 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-07-011-1/+1
* Roll back mysterious DNS change from 2007 which broke multiple-answer•••DNS requests (CNAME, A). It looks like this was to be related to bitmask dnsbl support, but it would never have worked anyway (resultnum was always 0..). git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11419 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2009-06-301-14/+11
* Remove the unused RESOLVER_NOTREADY define and fix the spelling of RESLOVER_F...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11286 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar psychon2009-04-051-1/+1
* Update all wiki links to point to the new wiki. This was done automatically w...•••for file in $(find -type f -and -not -path '*/.svn/*' -and -not -name '*.so') ; do sed -e 's#http://www.inspircd.org/wiki#http://wiki.inspircd.org#' -e 's#http://wiki.inspircd.org/index.php/#http://wiki.inspircd.org/#' -i $file ; done git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11223 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar psychon2009-03-151-1/+1
* Nuke trailing spaces•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11105 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar peavey2009-02-141-13/+10
* Update copyrights for 2009.•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10932 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2009-01-021-1/+1
* Second attempt at time() -> SI->Time(), now problems with the original were f...•••Thanks Namegduf! (Please test, all, valdebug etc, report odd behaviour/warnings!) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10783 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2008-11-011-1/+1
* Revert earlier time() -> SI->Time() diff for now, this causes problems with d...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10695 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2008-10-231-1/+1
* Patch from Namegduf converting all instances (where possible) of time() -> Se...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10691 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2008-10-231-1/+1
* Merge commit 'danieldg/out-12'•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10540 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2008-09-131-10/+5
* Remove last vestige of libircdfoo, by changing tag into a single identifier...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10076 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2008-07-291-1/+1
* Now builds ok on gcc 4.3, not tested fully. Also UGLY, oh we hate you GCC, wh...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9894 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2008-06-121-2/+2
* Merge in large patchset from GreenReaper, useful fixes for freeing a ton of d...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9565 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2008-04-211-1/+0
* Apply patches to remove 200-odd dll limit on windows, made by GreenReaper, lo...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9533 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2008-04-181-0/+2
* Commit -Wformat=2 -Wmissing-format-attributes, printf-like functions in inspi...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9217 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar aquanight2008-03-301-1/+1
* Convert remaining InspIRCd::Log() calls to new logging system•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9001 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar aquanight2008-02-221-14/+14
* Add -Wshadow to cflags, and fix a bunch of warnings that come with it. Add a ...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8892 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2008-02-111-2/+2
* Header update: 2007 -> 2008•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8694 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2008-01-101-1/+1
* NOTE: our stuff for parsing multiple dns replies for dnsbl with an 'A record ...•••We will fix this at some later date. It was breaking other stuff git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8591 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-11-121-39/+37
* Fixed all that, back to the crash we had before (yay?)•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8583 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-11-111-2/+0
* This fixed. Initialise dns at the end of pass 1 before loading first set of m...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8582 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-11-111-0/+2
* Hmm•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8579 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-11-111-0/+16
* Honking huge commit. Removal of DELETE() template that never worked right anyway•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8527 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-11-041-1/+1
* Pedantic safe•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8315 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-10-231-4/+4
* Remove the need for a bunch of the hard coded arrays/hashes by scanning the s...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8307 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-10-221-0/+2
* InspTimer -> Timer•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8205 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2007-10-151-4/+4