aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree/resolvers.cpp
Commit message (Expand)AuthorAgeFilesLines
* Fix various cases of the &* being next to the name instead of type.Gravatar Sadie Powell2022-09-291-4/+4
* Use auto in places where it is really obvious what the type is.Gravatar Sadie Powell2022-09-041-3/+3
* Move aptosa/untosa into the sockaddrs union and add from/from_ip.•••The struct will also now always be zero-initialized by default which removes the footgun which has happened previously where the union has been accessed before being initialized leading to it containing weird values. Gravatar Sadie Powell2022-08-111-2/+2
* Rewrite logging calls to use the new APIs.Gravatar Sadie Powell2022-05-011-2/+2
* Always catch exceptions as a constant reference.Gravatar Sadie Powell2022-01-091-1/+1
* Merge branch 'insp3' into master.Gravatar Sadie Powell2022-01-031-1/+1
|\
| * Update copyright headers.Gravatar InspIRCd Robot2021-12-301-1/+1
* | Merge branch 'insp3' into master.Gravatar Sadie Powell2021-12-271-16/+31
|\|
| * Fix not looking up IPv4 addresses when a server has an IPv6 address.•••Closes #1811. Gravatar Sadie Powell2021-12-251-16/+31
* | Remove unused time_t field from the timer system.•••This is equivalent to calling InspIRCd::Now() and is only actually used in one place in modules. Gravatar Sadie Powell2021-11-051-1/+1
* | Switch simple iterator loops to use range-based for loops.Gravatar Sadie Powell2021-04-071-2/+1
* | Fix the case of getError/getSendQSize and rewrite the doc comments.Gravatar Sadie Powell2020-07-201-1/+1
* | Merge branch 'insp3' into master.Gravatar Sadie Powell2020-05-051-2/+2
|\|
| * Update copyright headers.Gravatar InspIRCd Robot2020-04-241-1/+1
| * Fixes by misspell-fixerGravatar InspIRCd Robot2020-04-211-1/+1
* | Switch the spanningtree module from reference<> to std::shared_ptr<>.Gravatar Sadie Powell2020-04-131-4/+3
* | Merge branch 'insp3' into master.Gravatar Sadie Powell2020-02-191-5/+1
|\|
| * Add HasFd to EventHandler and switch code to use it.Gravatar Sadie Powell2020-02-151-5/+1
* | Merge branch 'insp3' into master.Gravatar Sadie Powell2020-01-171-1/+7
|\|
| * Update copyright headers.Gravatar InspIRCd Robot2020-01-111-1/+7
* | Merge branch 'insp3' into master.Gravatar Sadie Powell2019-05-151-1/+9
|\|
| * Fix linking servers with UNIX sockets.•••- Remove the address/port overloads of BeginConnect. - Change DoConnect to take a sockaddrs instead of an address/port. Gravatar Peter Powell2019-04-151-1/+9
* | SnomaskManager: remove fakederef.Gravatar Sadie Powell2019-02-071-2/+2
* | LogManager: remove fakederef.Gravatar Sadie Powell2019-02-071-1/+1
|/
* m_spanningtree Allow multiple valid ips for link blocks as a result of Securi...Gravatar Adam2016-09-021-3/+6
* m_spanningtree Drop unnecessary c_str() call when passing Link::Name to metho...Gravatar Attila Molnar2016-08-261-1/+1
* m_spanningtree Handle unload in resolversGravatar Attila Molnar2016-08-251-1/+7
* core_dns Make question a member of request, move common FindAnswerOfType to b...Gravatar Adam2016-08-251-2/+7
* Remove current time parameter of the Timer constructorGravatar Attila Molnar2014-07-101-1/+1
* m_spanningtree Remove SpanningTreeUtilities* fields and parametersGravatar attilamolnar2013-08-171-9/+11
* Remove $ModDep commentsGravatar attilamolnar2013-08-151-2/+0
* Change modules to use the MODNAME constant when logging.•••The majority of modules were logging with their module name as the log type. There was a few places which were logging to a non-name type but, with the exception of CONFIG, those messages are so uncommon that it doesn't make sense to use a seperate type for them. Gravatar Peter Powell2013-08-041-1/+1
* Change CacheRefreshTimer tick time back to 5 minutesGravatar Adam2013-05-231-1/+1
* Fix spacing in calls to LogManager::Log.Gravatar Peter Powell2013-05-191-1/+1
* Modularize DNS•••The DNS modules are temporarily in commands/ so they're loaded automatically Thanks to Attila for helping with much of this. Gravatar Adam2013-04-261-22/+39
* m_spanningtree Move CacheTimer into utilsGravatar attilamolnar2013-04-211-0/+12
* m_spanningtree Remove unneeded #includesGravatar attilamolnar2013-04-121-2/+0
* Add LOG_ prefix to the log level enum values.Gravatar Peter Powell2013-04-121-1/+1
* Windows: In-depth cleanup (see details)•••-Fix x64 builds for Windows. Now all configurations compile. -Remove the non-working rebase stuff. -Remove the Windows fork hack and instead use FreeConsole() to emulate the behavior. This directly allows us to compile with ASLR, which is turned on now. -Remove the old IPC mechanism for the removed GUI. This is not needed anymore as the GUI wasn't ever supported on anything newer than 1.2 -Remove the WIN32/WINDOWS macros. _WIN32 is supported on all x86-based VC++ targets, so that's what we need. -Enable optimizations for release builds. -De-duplicate printf_c(), it was previously copy-pasted into colors.h for configure -Add the VC++ specific bad files in .gitignore -Disable PID writing on Windows. This is only making sense for *nix builds. -Replace the CPU usage retrieval with an algorithm analogous to the *nix behavior. Also supports separated now/total values. (Tested with a dummy busy loop - seems working) -Removed certain unused functions and variables -Remove stdint defines from the windows wrapper -Remove CRT debug alloc. This is a bad idea as it would define a macro to replace free which breaks builds. -Re-evaluated the warnings list, commented it. -Moved inspircd_config/_version to include/ to match *nix -Removed the creation of inspircd_se_config, as it isn't used at all. -Made non-git builds show as "r0" instead of "r" (thanks to @SaberUK for pointing this out) -Fixed up m_spanningtree's project paths. Now all configurations (debug/release x86/x64) have been tested and build properly. -Moved FindDNS out of the wrapper and matched its log behavior with *nix. (It's pointless having it in the wrapper after the recent slimming down) -Replaced random/srandom wrappers with a mechanism that tries to use Windows' Random API first is no SSL module is loaded. -Removed more old junk from support for compilers older than VC++ 2010 (we don't have project files for these, so compiling them would be hard anyways) -Removed the unused ClearConsole() -Removed unused includes from the wrapper. Also, do not include psapi.h here if we don't link psapi.lib. This should be done where appropriate. -Made inet_aton an inline function for increased performance -C4800, performance warning about bool forcing, resolved at all occurrences. -C4701, uninitialized variable 'cached', resolved at all occurrences. -dlerror() was migrated out of the wrapper for more thread safety (no global buffer being shared) and increased performance. -Removed the wrong CRT debug flags. This drains a lot of performance. -Removed the clock_gettime/gettimeofday wrappers -Replaced all TCHAR/ANSI mix-ups of functions with the correct respective function. -Added a block of C4355 for < VS2012 -Update project files for c870714 Gravatar ChrisTX2012-10-121-2/+2
* m_spanningtree Only add a resolved server IP as valid if it still exists when...Gravatar attilamolnar2012-06-111-1/+9
* m_spanningtree Move SecurityIPResolver code to resolvers.cpp from resolvers.hGravatar attilamolnar2012-06-111-0/+22
* Replace copyright headers with headers granting specific authors copyrightGravatar Robby-2012-04-191-8/+15
* Clean up treesocket naming confusion by adding a link block reference during ...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12452 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2010-02-131-2/+1
* ...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
* private, who needs private...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11814 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-10-091-1/+2
* Fix hook finding code and error reporting•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11813 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-10-091-2/+1
* Move autoconnect next-server to TreeSocket::cull, and drop autoconnect refere...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11811 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-10-091-2/+2
* Update Event and Request APIs•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11808 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-10-081-11/+5
* Allow multiple autoconnects in a single <autoconnect> tag, fix infinite failover•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11786 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-09-301-9/+10
* 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-2/+2