summaryrefslogtreecommitdiff
path: root/src/modules/m_ident.cpp
AgeCommit message (Collapse)Author
2006-08-04Change to using userrec::ip as a sockaddr to store port, ip and address ↵brain
family, rather than userrec::ip4 and userrec::port. This allows us to handle remote ipv6 users on an ipv4 server, and vice versa. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4694 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-01The IPV6 stuff compiles now, with compile-correct ipv6 code. I dont know if ↵brain
this works yet. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4611 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-01Move to entirely using insp_sockaddr and insp_inaddr for socket stuff, first ↵brain
step on the road to ipv6 support git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4609 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-10More fixesbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4281 e03df62e-2008-0410-955e-edbf42e46eb7
2006-06-07Fix for segfault if a user quits before their ident is complete, due to ↵brain
session limit reached Do this by checking their pointer in the fd_ref_table against the pointer we got when we started the lookup, so we can know if its been invalidated or not (just in case the OnClose occurs before we NULL the user) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3992 e03df62e-2008-0410-955e-edbf42e46eb7
2006-05-02Forwardport (yes those do happen).brain
Because of a re-arrangement in the way sockets work, there is a chance a socket can still be in existence after the user its connected to (in the case of ident) is no longer valid. Neatly NULL the value so we can avoid goofing around in bad data. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3925 e03df62e-2008-0410-955e-edbf42e46eb7
2006-04-24delete operator tracking in debug mode (using a macro -- live with it.)brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3904 e03df62e-2008-0410-955e-edbf42e46eb7
2006-04-18Fix for crashes in m_ident (should work)brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3883 e03df62e-2008-0410-955e-edbf42e46eb7
2006-04-06Holy christ that was a LOT OF SPACES. TABS, USE THEM, LOVE THEM, APPRECIATE ↵w00t
THEM - we now have no stupid spaces. This was mostly a mass find/replace, so some indentation may be stuffed. Minor issue, though. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3838 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-11And morebrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3657 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-09Strlen bashing.brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3600 e03df62e-2008-0410-955e-edbf42e46eb7
2006-02-03Why are we using the users hostname to connect back to port 113? we can use ↵brain
ip here, and save ourselves a lookup git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3043 e03df62e-2008-0410-955e-edbf42e46eb7
2006-02-02When socket fails to construct, we now check the GetState() of the socket ↵brain
object to detect this condition. If we dont, we can end up leaking fd's and RAM on failure. We dont use exceptions here as these operations can occur very often. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3021 e03df62e-2008-0410-955e-edbf42e46eb7
2006-02-02More nonblocking dns stuffsbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3020 e03df62e-2008-0410-955e-edbf42e46eb7
2006-01-27Added OnCleanupbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2942 e03df62e-2008-0410-955e-edbf42e46eb7
2006-01-26Removed unneccessary strlcpybrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2927 e03df62e-2008-0410-955e-edbf42e46eb7
2006-01-26Damn string exceptionsbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2925 e03df62e-2008-0410-955e-edbf42e46eb7
2006-01-26Grrbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2924 e03df62e-2008-0410-955e-edbf42e46eb7
2006-01-26Removal of a comment - DRASTICALLY IMPORTANT, THIS COMMENT CAN CAUSE A MAJOR ↵brain
SYSTEM CRASH! ;) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2923 e03df62e-2008-0410-955e-edbf42e46eb7
2006-01-26Removed a load of unneeded includes (poll.h etc)brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2922 e03df62e-2008-0410-955e-edbf42e46eb7
2006-01-26Moved these into initialization-listbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2921 e03df62e-2008-0410-955e-edbf42e46eb7
2006-01-26Incorrect initialization orderbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2920 e03df62e-2008-0410-955e-edbf42e46eb7
2006-01-26Default ident timeout to 1 sec if not defined (a bit low, but better than 0!)brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2918 e03df62e-2008-0410-955e-edbf42e46eb7
2006-01-26Updated m_ident to use inspsocket, should be more reliable - *NEEDS TESTING*brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2917 e03df62e-2008-0410-955e-edbf42e46eb7
2006-01-15Updated copyrights in headers etc using perl inplace editbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2795 e03df62e-2008-0410-955e-edbf42e46eb7
2005-12-26And morebrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2660 e03df62e-2008-0410-955e-edbf42e46eb7
2005-12-07Changed behaviour of module API to pass Server* to the constructor, rather ↵brain
than have to create one (makes more sense) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2252 e03df62e-2008-0410-955e-edbf42e46eb7
2005-11-30Added a parameter to OnRehash for the rehash parameterbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2058 e03df62e-2008-0410-955e-edbf42e46eb7
2005-05-30Started on -Wall - safe compilebrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1570 e03df62e-2008-0410-955e-edbf42e46eb7
2005-05-15Changed to use __single_client_alloc, faster on most systems in a single threadbrain
Specified namespace std in *all* files git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1404 e03df62e-2008-0410-955e-edbf42e46eb7
2005-05-11Added basic sendq stuff - WARNING, there is no configuration yet, this CVS ↵brain
allows sendq's to grow INFINITELY git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1361 e03df62e-2008-0410-955e-edbf42e46eb7
2005-04-20Removed some unceccessary debug outputbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1135 e03df62e-2008-0410-955e-edbf42e46eb7
2005-04-20Added OnUserDisconnect method to modules.* to fix fd leak in m_ident.cppbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1134 e03df62e-2008-0410-955e-edbf42e46eb7
2005-04-19Fixed fd leaksbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1133 e03df62e-2008-0410-955e-edbf42e46eb7
2005-04-14More nice comments (this module is kind of a flagship for a few new method ↵brain
calls) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1093 e03df62e-2008-0410-955e-edbf42e46eb7
2005-04-14Changed the state engine states to nice constantsbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1092 e03df62e-2008-0410-955e-edbf42e46eb7
2005-04-14More careful checks for control characters and linefeeds in the ident ↵brain
(because having them in there really does stuff things up) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1091 e03df62e-2008-0410-955e-edbf42e46eb7
2005-04-14Added commentsbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1090 e03df62e-2008-0410-955e-edbf42e46eb7
2005-04-14Lots of bugfixes, added timeouts, completely nonblocking!brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1089 e03df62e-2008-0410-955e-edbf42e46eb7
2005-04-14Added m_ident skeletonbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1087 e03df62e-2008-0410-955e-edbf42e46eb7