summaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree
AgeCommit message (Collapse)Author
2009-09-02Remove "servermode" parameter, replace with IS_FAKE() which is more reliabledanieldg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11633 e03df62e-2008-0410-955e-edbf42e46eb7
2009-09-02Add Module* creator to Command and ModeHandlerdanieldg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11631 e03df62e-2008-0410-955e-edbf42e46eb7
2009-09-02Remove calls to strdup() in core, it is not better than std::stringdanieldg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11623 e03df62e-2008-0410-955e-edbf42e46eb7
2009-09-02Make VF_OPTCOMMON module mismatches a fatal link error by defaultdanieldg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11620 e03df62e-2008-0410-955e-edbf42e46eb7
2009-09-02Add VF_OPTCOMMON for optionally common modulesdanieldg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11619 e03df62e-2008-0410-955e-edbf42e46eb7
2009-09-02Remove unneeded Extensible inheritance and remove "age" field from classbasedanieldg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11611 e03df62e-2008-0410-955e-edbf42e46eb7
2009-09-02Remove useless vector copydanieldg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11608 e03df62e-2008-0410-955e-edbf42e46eb7
2009-09-02MetaData reworkdanieldg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11607 e03df62e-2008-0410-955e-edbf42e46eb7
2009-09-02Allow commands to optionally route themselves using ENCAPdanieldg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11602 e03df62e-2008-0410-955e-edbf42e46eb7
2009-09-02Include explicit routing information in Command, will replace CMD_LOCALONLY ↵danieldg
return value git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11601 e03df62e-2008-0410-955e-edbf42e46eb7
2009-09-02Remove unneeded ProtocolInterface::Introducedanieldg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11600 e03df62e-2008-0410-955e-edbf42e46eb7
2009-09-02Remove unused I_ProtoSendMetaData, I_ProtoSendMode fields of Implementationdanieldg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11599 e03df62e-2008-0410-955e-edbf42e46eb7
2009-09-02Add "created" parameter to OnUserJoin, to avoid explicit checks for +Pdanieldg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11597 e03df62e-2008-0410-955e-edbf42e46eb7
2009-09-02Use CheckTimeStamp to merge modes on netburstdanieldg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11596 e03df62e-2008-0410-955e-edbf42e46eb7
2009-09-02Replace std::deque with std::vector in spanningtree and related modulesdanieldg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11593 e03df62e-2008-0410-955e-edbf42e46eb7
2009-09-02Change allocation of commands/modesdanieldg
API change: Commands passed to AddCommand are no longer deleted automatically This removes lots of needless heap allocation and fixes a few memory leaks by allocating commands and modes as part of the Module rather than creating them separately in the module constructor. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11592 e03df62e-2008-0410-955e-edbf42e46eb7
2009-09-02Clean up challenge generation to not include character 0x7F, and fix some ↵danieldg
other things in the file git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11591 e03df62e-2008-0410-955e-edbf42e46eb7
2009-09-02Verify modules providing routed commands are VF_COMMONdanieldg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11590 e03df62e-2008-0410-955e-edbf42e46eb7
2009-09-01Remove unneeded #ifdef IPV6 linesdanieldg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11582 e03df62e-2008-0410-955e-edbf42e46eb7
2009-09-01Remove unneeded paramaters from OnAcceptReadydanieldg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11581 e03df62e-2008-0410-955e-edbf42e46eb7
2009-09-01Remove more text<->binary IP conversions, making code more IPv4/IPv6 independentdanieldg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11578 e03df62e-2008-0410-955e-edbf42e46eb7
2009-09-01Change IP address storage in User to use more IPv4/IPv6 common codedanieldg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11575 e03df62e-2008-0410-955e-edbf42e46eb7
2009-09-01Strip SUPPORT_IP6LINKS #definedanieldg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11572 e03df62e-2008-0410-955e-edbf42e46eb7
2009-09-01Fix build of m_spanningtree and display of dependency regenerationdanieldg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11557 e03df62e-2008-0410-955e-edbf42e46eb7
2009-08-19Fix a regression from fcb51634669e6ed588e42f2072c6f910e267126f ("fix uid ↵w00t
collision on spanningtree reload") caused by access-after-free. Thanks to transnet for the report. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11533 e03df62e-2008-0410-955e-edbf42e46eb7
2009-08-17Allow forward linking compatability by accepting higher protocol version ↵danieldg
numbers (other server should fail the link if it becomes link-incompatable) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11531 e03df62e-2008-0410-955e-edbf42e46eb7
2009-08-15win: Last part of support required for VS2010:w00t
NEEDS COMPILE TESTING ON: gcc3 (if possible), gcc4, vs2008. - Check for vs2010 in hash_map.h - use unordered_map if it exists - change all map creations to: #if defined(WINDOWS) && !defined(HASHMAP_DEPRECATED) // old windows crap #else #if HASHMAP_DEPRECATED // tr1/gcc crap #endif #endif git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11524 e03df62e-2008-0410-955e-edbf42e46eb7
2009-08-14Print line on empty prefix errors to track down a bugw00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11517 e03df62e-2008-0410-955e-edbf42e46eb7
2009-07-03Use server name for source of remote TIME rather than SIDdanieldg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11438 e03df62e-2008-0410-955e-edbf42e46eb7
2009-06-30Roll back mysterious DNS change from 2007 which broke multiple-answerw00t
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
2009-06-15Fix ENCAP forwarding with multiword final parameter, noticed by Namegdufdanieldg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11413 e03df62e-2008-0410-955e-edbf42e46eb7
2009-06-07Allow SSL fingerprint-based server authenticationdanieldg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11404 e03df62e-2008-0410-955e-edbf42e46eb7
2009-05-24OnRehash changes: split to multiple hooks to clarify use and prevent ↵danieldg
explosion of rehashes on a /REHASH * git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11388 e03df62e-2008-0410-955e-edbf42e46eb7
2009-05-14Fix UID collision on reload of m_spanningtree.sodanieldg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11386 e03df62e-2008-0410-955e-edbf42e46eb7
2009-05-14Fix some incorrect STL iterations (using < end() instead of != end())special
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11385 e03df62e-2008-0410-955e-edbf42e46eb7
2009-05-13Show correct server source to users on FTOPIC and FMODEdanieldg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11380 e03df62e-2008-0410-955e-edbf42e46eb7
2009-05-13Use Utils->ServerUser instead of ServerInstance->FakeClient in m_spanningtreedanieldg
This makes it possible to determine which server initiated a mode change, instead of having only a flag saying that some server did. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11379 e03df62e-2008-0410-955e-edbf42e46eb7
2009-05-13Make the previous patches actually workdanieldg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11378 e03df62e-2008-0410-955e-edbf42e46eb7
2009-05-13Replace loopCall detection in OnUserKick with a check for the m_spanningtree ↵danieldg
fake user git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11377 e03df62e-2008-0410-955e-edbf42e46eb7
2009-05-13Use a FakeUser source for server-sourced commands in spanningtreedanieldg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11376 e03df62e-2008-0410-955e-edbf42e46eb7
2009-05-07Remove handshake timer on server sockets that die before completing handshakedanieldg
This fixes some very subtle and hard-to-trace bugs that are triggered when a file descriptor and memory address of an EventHandler* are reused after being deallocated. Impossible to trigger in valgrind; has been seen in live networks. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11369 e03df62e-2008-0410-955e-edbf42e46eb7
2009-04-26Enable lag-check pings on active servers - if bandwidth waste is an issue, ↵danieldg
there should be an option to disable lag pings git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11331 e03df62e-2008-0410-955e-edbf42e46eb7
2009-04-26Remove lag reporting in /map from servers that do not yet have a valid ↵danieldg
value; <1ms is misleading. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11330 e03df62e-2008-0410-955e-edbf42e46eb7
2009-04-23rollback r11326, we're going to make vc9 the officially supported windows ↵peavey
build methods since the few of us doing win dev can't keep up maintaining the others. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11327 e03df62e-2008-0410-955e-edbf42e46eb7
2009-04-23Heres the beef so farbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11326 e03df62e-2008-0410-955e-edbf42e46eb7
2009-04-22Addendum to previous ping patch: NextPingTime was not being set at endburst, ↵danieldg
and servers without ENDBURST were no longer being detected. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11325 e03df62e-2008-0410-955e-edbf42e46eb7
2009-04-22Fix PingFlag not being set correctly for servers whose burst takes longer ↵danieldg
than PingFreq git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11324 e03df62e-2008-0410-955e-edbf42e46eb7
2009-04-21Abort link early when mismatched modules are detected so that the error ↵danieldg
message is more useful git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11323 e03df62e-2008-0410-955e-edbf42e46eb7
2009-04-20Actually use irc::modestacker correctlydanieldg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11322 e03df62e-2008-0410-955e-edbf42e46eb7
2009-04-20Use loopCall to protect OnUserKick rather than the triggerevents hackdanieldg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11321 e03df62e-2008-0410-955e-edbf42e46eb7