aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree/treesocket2.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Fix various warnings when building with LLVM 3.5.Gravatar Peter Powell2014-10-131-3/+3
| | | | | - warning: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Wabsolute-value] - warning: 'this' pointer cannot be null in well-defined C++ code; pointer may be assumed to always convert to true [-Wundefined-bool-conversion]
* m_spanningtree Always treat the remote client as the winner on nick ↵Gravatar Attila Molnar2014-07-241-1/+1
| | | | collision if the nick is used by a (local) client that isn't fully registered
* m_spanningtree Forward NICK messages when they cause a collision with the ↵Gravatar Attila Molnar2014-06-061-7/+7
| | | | | | | | | | | | | | new nick param rewritten to the uuid Suppressing these messages meant that we relied on an appropriate NICK to come from the direction the SAVE was sent to; this left all servers behind us uninformed until the target server of the SAVE reacted with a nick change to uuid. This was problematic because someone can legitimately change nick to the past nick of the SAVEd user on a server that already has the SAVEd user with the uuid nick and that nick change message can reach servers that haven't yet seen the nick change to uuid of the SAVEd user.
* m_spanningtree Create new TreeServers for incoming connections only when ↵Gravatar attilamolnar2013-04-101-0/+12
| | | | they've accepted our credentials, not when they send SERVER
* m_spanningtree Fix rare desync when a KILL crosses a message that has the ↵Gravatar attilamolnar2013-01-141-3/+19
| | | | killed user's prefix and modifies global state
* Add a flag to Command that controls whether an empty last parameter is ↵Gravatar attilamolnar2012-12-151-0/+8
| | | | allowed or not
* m_spanningtree Refuse bogus NICK messagesGravatar attilamolnar2012-11-091-1/+7
| | | | If the new nick looks like an uid verify that its the correct uid
* Remove superfluous std::string()sGravatar attilamolnar2012-10-121-2/+2
|
* Fix more undefined behavior caused by referencing the returned buffer by ↵Gravatar attilamolnar2012-09-301-1/+4
| | | | | | std::string::c_str() when the object is temporary See 83c7cc45daf6fb1f8c36f15297a4657e45a34e88
* m_spanningtree: Resolve issue #250Gravatar ChrisTX2012-08-101-2/+2
|
* m_spanningtree Return when ecountering an invalid command coming from a ↵Gravatar attilamolnar2012-07-011-1/+3
| | | | remote server
* m_spanningtree Burst to a new server before introducing it to the rest of ↵Gravatar attilamolnar2012-06-121-3/+10
| | | | | | the network Fixes issue #103 reported by @nenolod
* Replace copyright headers with headers granting specific authors copyrightGravatar Robby-2012-04-191-8/+19
|
* Fix typo.Gravatar Robin Burchell2012-04-181-1/+1
|
* Match the logging in the rest of this module.Gravatar Robin Burchell2012-04-181-3/+3
|
* Be more helpful when processing commands from a linked server.Gravatar Robin Burchell2012-04-181-5/+18
| | | | | When diagnosing errors with s2s traffic, it costs us next to nothing to try a little harder to generate useful errors so errors are immediately apparent.
* Correct source of initial BURST line from servers sending it without one ↵Gravatar Daniel De Graaf2010-05-081-1/+1
| | | | (like denora)
* Don't use an empty direction when receiving a sourceless server commandGravatar Daniel De Graaf2010-04-291-6/+2
|
* Add RAWIO log level which is more verbose than DEBUGGravatar danieldg2010-03-191-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12646 e03df62e-2008-0410-955e-edbf42e46eb7
* What, I have to make this compile now?Gravatar danieldg2010-03-021-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12581 e03df62e-2008-0410-955e-edbf42e46eb7
* Log invalid S2S commands a bit betterGravatar danieldg2010-03-021-0/+5
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12579 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix snomask sending having the final-parameter colon stripped (noticed in ↵Gravatar danieldg2010-02-281-1/+2
| | | | | | globops in bug #951) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12573 e03df62e-2008-0410-955e-edbf42e46eb7
* Clean up treesocket naming confusion by adding a link block reference during ↵Gravatar danieldg2010-02-131-48/+14
| | | | | | negotiation git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12452 e03df62e-2008-0410-955e-edbf42e46eb7
* More cleanup of quit serversGravatar danieldg2010-02-071-11/+5
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12394 e03df62e-2008-0410-955e-edbf42e46eb7
* Add DYING link state, push error messages on link, and only limit recvq on ↵Gravatar danieldg2010-02-041-0/+2
| | | | | | unauthenticated servers git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12370 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove overrides for ADMIN, STATS, TIMEGravatar danieldg2010-01-191-13/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12302 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix MOTD and RULES to work remotely (remove the old hacks for MOTD)Gravatar danieldg2010-01-191-4/+0
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12301 e03df62e-2008-0410-955e-edbf42e46eb7
* Move lots of spanningtree items to commandsGravatar danieldg2010-01-181-37/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12296 e03df62e-2008-0410-955e-edbf42e46eb7
* ...because every now and again, i have to do a massive commit.Gravatar brain2010-01-111-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12248 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove special-case handling of SVSNICK, SVSJOIN, SVSPART; enables ↵Gravatar danieldg2010-01-021-12/+0
| | | | | | intelligent routing git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12238 e03df62e-2008-0410-955e-edbf42e46eb7
* Clean up duplicated link snomask messages on errorsGravatar danieldg2009-11-031-6/+3
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11999 e03df62e-2008-0410-955e-edbf42e46eb7
* Move MODENOTICE command to a command moduleGravatar danieldg2009-11-031-9/+0
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11991 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix incorrect netburst detectionGravatar danieldg2009-10-241-2/+3
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11972 e03df62e-2008-0410-955e-edbf42e46eb7
* Make User::uuid and User::server constGravatar danieldg2009-10-231-6/+4
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11962 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix recursive SENDSNO bounceGravatar danieldg2009-10-231-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11958 e03df62e-2008-0410-955e-edbf42e46eb7
* some WriteGlobalSno changesGravatar danieldg2009-10-211-12/+13
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11939 e03df62e-2008-0410-955e-edbf42e46eb7
* Move autoconnect next-server to TreeSocket::cull, and drop autoconnect ↵Gravatar danieldg2009-10-091-1/+5
| | | | | | reference once a connection is complete git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11811 e03df62e-2008-0410-955e-edbf42e46eb7
* Update Event and Request APIsGravatar danieldg2009-10-081-4/+0
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11808 e03df62e-2008-0410-955e-edbf42e46eb7
* Merge remote/local MODULES outputGravatar danieldg2009-10-011-4/+0
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11793 e03df62e-2008-0410-955e-edbf42e46eb7
* Add ROUTE_TYPE_MESSAGE and use for PRIVMSG/NOTICE routingGravatar danieldg2009-10-011-399/+335
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11791 e03df62e-2008-0410-955e-edbf42e46eb7
* Allow multiple autoconnects in a single <autoconnect> tag, fix infinite failoverGravatar danieldg2009-09-301-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11786 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove InspIRCd* parameters and fieldsGravatar danieldg2009-09-261-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11763 e03df62e-2008-0410-955e-edbf42e46eb7
* Create StreamSocket for IO hooking implementationGravatar danieldg2009-09-211-16/+16
| | | | | | | | | | | | | | Fixes the SSL SendQ bug Removes duplicate code between User and BufferedSocket Simplify SSL module API Simplify EventHandler API (Readable/Writeable moved to SE) Add hook for culled objects to invoke callbacks prior to destructor Replace SocketCull with GlobalCull now that sockets can close themselves Shorten common case of user read/parse/write path: User::Write is now zero-copy up to syscall/SSL invocation User::Read has only two copy/scan passes from read() to ProcessCommand git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11752 e03df62e-2008-0410-955e-edbf42e46eb7
* Add <autoconnect> blocks [jackmcbarn]Gravatar danieldg2009-09-171-3/+1
| | | | | | Replaces <link:failover> and <link:autoconnect> git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11741 e03df62e-2008-0410-955e-edbf42e46eb7
* Change cmd_*.so to use the Module object APIGravatar danieldg2009-09-031-2/+0
| | | | | | | | | | | | | | Create Module* objects for each command, and load them like modules. This unifies the external API for modules. Library directory is now deprecated: all modules are located in a single module directory. Header files for each command are no longer needed; remove. This also fixes two potential segfaults in m_spanningtree. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11668 e03df62e-2008-0410-955e-edbf42e46eb7
* Add away timestamp to the AWAY message sent server-serverGravatar danieldg2009-09-021-0/+4
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11664 e03df62e-2008-0410-955e-edbf42e46eb7
* Add SAVE s2s protocol commandGravatar danieldg2009-09-021-0/+4
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11660 e03df62e-2008-0410-955e-edbf42e46eb7
* Add s2s backward compatability for protocol changesGravatar danieldg2009-09-021-8/+0
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11656 e03df62e-2008-0410-955e-edbf42e46eb7
* Add OnChangeIdent and FIDENT supportGravatar danieldg2009-09-021-0/+4
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11652 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove useless vector copyGravatar danieldg2009-09-021-6/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11608 e03df62e-2008-0410-955e-edbf42e46eb7