NET_CompareAdr: bad address type
Hi everyone. I'm using the latest e+ mode 2.2b.
The problem appears when map changes from "with bots" to "without bots". I see numerous messages
"NET_CompareAdr: bad address type" in quake console for about half a minute, than server continues to work correctly. I look through this forum and nothing found, that helps.
Can anyone explain what goes wrong and how to fix it?
Thank you. Andrei. BLR.
this is not my words and im not sure but
i just reviewed the source code the buttom descriptions can help to you
The more I read on this error I am thinking that it is because there is a misconfiguration of the network or something along that line. The Function "NET_CompareAdr" is comparing the Challenges from clients to the net Ip of the server. If you have the server misconfigured so its trying to do a Loopback you might get this error. When the server starts, read the console (or turn on logging to get a txt version) and look for the server IP, net port, etc and make sure its what you think it should be.
=================== NET_CompareBaseAdrMask Compare without port, and up to the bit number given in netmask. =================== */ bool NET_CompareBaseAdrMask(netadr_t a, netadr_t b, int netmask) { byte cmpmask, *addra, *addrb; int curbyte; if (a.type != b.type) return false; if (a.type == NA_LOOPBACK) return true; if(a.type == NA_IP) { addra = (byte *) &a.ip; addrb = (byte *) &b.ip; if(netmask < 0 || netmask > 32) netmask = 32; } else if(a.type == NA_IP6) { addra = (byte *) &a.ip6; addrb = (byte *) &b.ip6; if(netmask < 0 || netmask > 128) netmask = 128; } else { Com_Printf ("NET_CompareBaseAdr: bad address type\n"); return false; }
Thank you. But where should I look for this source code?
I found that the function in sv_clients.c
should be
I don't have experience in changing Quake3 source code, so may be anyone can tell me, where to find this info, or how to do it?
Thank you