summaryrefslogtreecommitdiff
path: root/src/dns.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Fix for uninitialized var in valgrind outputGravatar brain2006-09-081-0/+4
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5172 e03df62e-2008-0410-955e-edbf42e46eb7
* Wahhhhhhhhhhhh bwahahaha. Mass commit to tidy up tons of messy include listsGravatar brain2006-08-301-7/+0
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5080 e03df62e-2008-0410-955e-edbf42e46eb7
* EventHandler class, an abstraction for raw i/oGravatar brain2006-08-181-73/+60
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4941 e03df62e-2008-0410-955e-edbf42e46eb7
* Just to mess with om's head, remove helperfuncs.h from everywhereGravatar brain2006-08-111-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4900 e03df62e-2008-0410-955e-edbf42e46eb7
* Change to using Instance->Log (InspIRCd::Log) rather than log() macroGravatar brain2006-08-111-22/+22
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4880 e03df62e-2008-0410-955e-edbf42e46eb7
* Now two types of log macro, log() and ilog(). log() assumes an InspIRCd ↵Gravatar brain2006-08-111-3/+0
| | | | | | | | | object called ServerInstance, ilog() takes an InspIRCd object as first param. TODO: Run a regexp over these, using perl, to translate them into InspIRCd::Log calls and then eliminate the macro :) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4879 e03df62e-2008-0410-955e-edbf42e46eb7
* Move the socket functions like insp_ntoa into their own namespace. They ↵Gravatar brain2006-08-101-0/+7
| | | | | | arent really sensible to put into a class, but namespacing them out discourages developers from directly using them without explicitly saing 'using irc::sockets::BindPorts' or whatever first. Some functions such as insp_ntoa are already 'exposed' by headers that use them so 'using irc::sockets::inet_ntoa' isnt required. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4828 e03df62e-2008-0410-955e-edbf42e46eb7
* Passing invalid instance to dns isnt a good ideaGravatar brain2006-08-091-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4825 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix passing wrong instance to resolverGravatar brain2006-08-091-0/+4
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4824 e03df62e-2008-0410-955e-edbf42e46eb7
* Change some resolver stuff.Gravatar brain2006-08-091-5/+2
| | | | | | | OM, THIS STILL WONT COMPILE! Error on the same line git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4821 e03df62e-2008-0410-955e-edbf42e46eb7
* ServerConfig extern moved into class InspIRCdGravatar brain2006-08-091-7/+6
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4808 e03df62e-2008-0410-955e-edbf42e46eb7
* Extra checking that the fd's we pass to SocketEngine::AddFd were added (a ↵Gravatar brain2006-08-081-1/+13
| | | | | | lot of assuming was going off, leading to total chaos if we run out of fd's etc) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4780 e03df62e-2008-0410-955e-edbf42e46eb7
* Fixes for ::0 ip's, disable autobind when using ::ffff: etcGravatar brain2006-08-041-0/+8
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4703 e03df62e-2008-0410-955e-edbf42e46eb7
* Safety wrapper defines for ipv6 code on ipv4 ircdsGravatar brain2006-08-041-1/+6
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4697 e03df62e-2008-0410-955e-edbf42e46eb7
* Add proper support for "munging" of ipv6 addresses when ::ffff:addr is used ↵Gravatar brain2006-08-031-5/+10
| | | | | | (this is temporary) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4693 e03df62e-2008-0410-955e-edbf42e46eb7
* Change some checkingGravatar brain2006-08-031-3/+9
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4692 e03df62e-2008-0410-955e-edbf42e46eb7
* More stuffGravatar brain2006-08-031-1/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4691 e03df62e-2008-0410-955e-edbf42e46eb7
* Odd stuff with ::ffff ipv6 addressesGravatar brain2006-08-031-0/+5
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4690 e03df62e-2008-0410-955e-edbf42e46eb7
* Extra debugGravatar brain2006-08-031-0/+6
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4689 e03df62e-2008-0410-955e-edbf42e46eb7
* TweakGravatar brain2006-08-031-1/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4688 e03df62e-2008-0410-955e-edbf42e46eb7
* Tweak tweakGravatar brain2006-08-031-1/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4687 e03df62e-2008-0410-955e-edbf42e46eb7
* Change to use inaddr6_anyGravatar brain2006-08-031-1/+5
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4686 e03df62e-2008-0410-955e-edbf42e46eb7
* Add more debugGravatar brain2006-08-031-0/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4685 e03df62e-2008-0410-955e-edbf42e46eb7
* Debug output on invalid nameserver address in constructorGravatar brain2006-08-031-0/+6
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4684 e03df62e-2008-0410-955e-edbf42e46eb7
* Add strerror stuffGravatar brain2006-08-031-1/+4
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4683 e03df62e-2008-0410-955e-edbf42e46eb7
* Tidier MakeIP6Int()Gravatar brain2006-08-031-5/+4
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4681 e03df62e-2008-0410-955e-edbf42e46eb7
* Its ip6.arpa, not ip6.int?Gravatar brain2006-08-031-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4680 e03df62e-2008-0410-955e-edbf42e46eb7
* Extra stuff for forcing a v4 or v6 lookupGravatar brain2006-08-031-0/+59
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4679 e03df62e-2008-0410-955e-edbf42e46eb7
* Improved ip6.int builder (no more HUGE sprintf craq)Gravatar brain2006-08-031-34/+13
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4678 e03df62e-2008-0410-955e-edbf42e46eb7
* Added test framework, so that i can work on improving MakeIP6IntGravatar brain2006-08-031-18/+22
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4677 e03df62e-2008-0410-955e-edbf42e46eb7
* *.ip6.int PTR lookups. FUGLY AS FUCK. someone please help me tidy ↵Gravatar brain2006-08-031-6/+40
| | | | | | (backported from firedns) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4676 e03df62e-2008-0410-955e-edbf42e46eb7
* AAAA lookup fixed. Theyre returned as string, without need for inet_pton ↵Gravatar brain2006-08-031-10/+8
| | | | | | with an in6_addr, so that its possible to resolve ipv6 without an ipv6 supporting kernel ;) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4675 e03df62e-2008-0410-955e-edbf42e46eb7
* Support CNAME, AAAAGravatar brain2006-08-031-31/+122
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4673 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix sockaddr structs for ipv6Gravatar brain2006-08-031-2/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4672 e03df62e-2008-0410-955e-edbf42e46eb7
* Add some commentingGravatar brain2006-08-031-3/+3
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4670 e03df62e-2008-0410-955e-edbf42e46eb7
* add erroring if there are already 65536 id's in transitGravatar brain2006-08-031-2/+5
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4669 e03df62e-2008-0410-955e-edbf42e46eb7
* Check for spoofed DNS replies where the source-port is invalid, or the ip is ↵Gravatar brain2006-08-031-6/+29
| | | | | | not that of the nameserver we're configured to use git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4668 e03df62e-2008-0410-955e-edbf42e46eb7
* Properly check for duplicate dns id's from the PRNGGravatar brain2006-08-031-3/+11
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4667 e03df62e-2008-0410-955e-edbf42e46eb7
* Improve PRNGGravatar brain2006-08-031-3/+13
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4666 e03df62e-2008-0410-955e-edbf42e46eb7
* Pseudo-random id's again, combined with incrementing value, gettimeofday and ↵Gravatar brain2006-08-021-2/+3
| | | | | | geteuid using xor git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4661 e03df62e-2008-0410-955e-edbf42e46eb7
* Add back stats counters for dns total, good and badGravatar brain2006-08-021-0/+8
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4660 e03df62e-2008-0410-955e-edbf42e46eb7
* Allocate request id's in sequence, which means we wont get a duplicate id ↵Gravatar brain2006-08-021-4/+5
| | | | | | | | | until 65536 id's have been given out. Much safer than rand() git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4659 e03df62e-2008-0410-955e-edbf42e46eb7
* Change more names and typesGravatar brain2006-08-021-15/+8
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4657 e03df62e-2008-0410-955e-edbf42e46eb7
* Absolutely everything is now part of class DNS, or class Resolver.Gravatar brain2006-08-021-5/+29
| | | | | | | | | This means our dns code is totally encapsulated and we know that changing it wont effect anything else so long as the interface stays the same. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4656 e03df62e-2008-0410-955e-edbf42e46eb7
* More tidyingGravatar brain2006-08-021-46/+47
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4655 e03df62e-2008-0410-955e-edbf42e46eb7
* Move more stuff into private members of class DNSGravatar brain2006-08-021-21/+12
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4654 e03df62e-2008-0410-955e-edbf42e46eb7
* Tidyups, rename some varsGravatar brain2006-08-021-23/+16
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4653 e03df62e-2008-0410-955e-edbf42e46eb7
* Made MasterSocket staticGravatar brain2006-08-021-22/+27
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4652 e03df62e-2008-0410-955e-edbf42e46eb7
* Move more stuff into class DNSGravatar brain2006-08-021-102/+103
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4651 e03df62e-2008-0410-955e-edbf42e46eb7
* Tweak case of all classes to match those in the rest of the coreGravatar brain2006-08-021-38/+49
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4650 e03df62e-2008-0410-955e-edbf42e46eb7