1 (edited by Friendly Tee 2013-06-09 20:37:02)

Topic: Logs are full of "connection less packet too small"

Hey,
I was kicked out of my server and all players that where online at this point, were also disconnected.

I'm getting connection less packet too small, 4 and this Error appears like 100 times per second, so what doe sit mean ? O.o

mod is ddrace

2 (edited by Broski 2013-06-09 21:25:57)

Re: Logs are full of "connection less packet too small"

I think I was in that server. There were 8 people, ,right?

Broski/Surya/sün

3

Re: Logs are full of "connection less packet too small"

that's simple somebody sends you many modified packets, which are too small, as i remember smaler than 6.

it's more or less a bug in ddrace, you can also run a bufferoverflow or crash the server due to the, i guess, missing packet filter

#yemDX is a known troll

4 (edited by Friendly Tee 2013-06-09 23:27:12)

Re: Logs are full of "connection less packet too small"

So, if I edit this Segment (network.cpp, line 186):

        if(Size < 6)
        {
            dbg_msg("", "connection less packet too small, %d", Size);
            return -1;
        }
to:
        if(Size < 6)
        {
            return -1;
        }

Does this change anything ?
It's possible for the server to handle more lower size packets , or did i just deleted the notification ?


Edit: Is it possible to ban/log the ip ?

5 (edited by Neox 2013-06-10 00:41:42)

Re: Logs are full of "connection less packet too small"

So, if I edit this Segment (network.cpp, line 186):

        if(Size < 6)
        {
            dbg_msg("", "connection less packet too small, %d", Size);
            return -1;
        }
to:
        if(Size < 6)
        {
            return -1;
        }

This will just change that you won't see messages in the console (absolutely useless, keep it, it's better.)

Is it possible to ban/log the ip ?

Add this line in your autoexec.cfg

exec bans.cfg

Create a new cfg file called bans which is in the same directory as your autoexec.cfg, get the IP of that person, and add this line in bans.cfg

ban x -1

x which is the IP of that person.

If he has a dynamic IP, you must fix the bug, range ban is buggy (it banned wrong ips in my server)

while(!Success())
    TryAgain();
Try until you succeed.

6

Re: Logs are full of "connection less packet too small"

Neox76 wrote:

This will just change that you won't see messages in the console (absolutely useless, keep it, it's better.)

Console output is exactly what is causing lags in this case. Removing the dbg_msg is all what you need, these packets wont bother you anymore. No need to ban any ips.

Neox76 wrote:

If he has a dynamic IP, you must fix the bug, range ban is buggy (it banned wrong ips in my server)

range_ban was buggy for a while, but it should be fixed in 0.6.2 . If not, you should report a bug instead of suggesting workarounds.

7

Re: Logs are full of "connection less packet too small"

eeeee wrote:

Console output is exactly what is causing lags in this case. Removing the dbg_msg is all what you need, these packets wont bother you anymore.

Didn't knew this yikes It just prints a message, I don't see any reason of why it should cause lags.

eeeee wrote:

range_ban was buggy for a while, but it should be fixed in 0.6.2 . If not, you should report a bug instead of suggesting workarounds.

I'll look at 0.6.2's sources then. Thank you.

while(!Success())
    TryAgain();
Try until you succeed.

8

Re: Logs are full of "connection less packet too small"

Neox76 wrote:

Didn't knew this yikes It just prints a message, I don't see any reason of why it should cause lags.

Because computer Input/Outputs are incredibly slow compared to all the other operations.

Not Luck, Just Magic.

9

Re: Logs are full of "connection less packet too small"

Thx guys, helped me A LOT. smile