diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-08-06 19:51:15 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-08-06 19:51:15 +0000 |
commit | cf8a24cd6baf4f8b101fc1d1edf6c0046d2b9b09 (patch) | |
tree | b942edbd40920d3f1087fd59286c4d7bde24957e /src | |
parent | 3437ae8288a20bda7d593107cc47efacac82dd61 (diff) |
Comments
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4747 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r-- | src/socket.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/socket.cpp b/src/socket.cpp index c3f0a8d7a..0ad39701f 100644 --- a/src/socket.cpp +++ b/src/socket.cpp @@ -28,7 +28,11 @@ extern InspIRCd* ServerInstance; extern ServerConfig* Config; extern time_t TIME; -/* Used when comparing CIDR masks for the modulus bits left over */ +/* Used when comparing CIDR masks for the modulus bits left over. + * A lot of ircd's seem to do this: + * ((-1) << (8 - (mask % 8))) + * But imho, it sucks in comparison to a nice neat lookup table. + */ const char inverted_bits[8] = { 0x00, /* 00000000 - 0 bits - never actually used */ 0x80, /* 10000000 - 1 bits */ 0xC0, /* 11000000 - 2 bits */ |