MCPcopy Create free account
hub / github.com/cppla/ServerStatus / NetComp

Function NetComp

server/src/netban.h:6–9  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4#include <system.h>
5
6inline int NetComp(const NETADDR *pAddr1, const NETADDR *pAddr2)
7{
8 return mem_comp(pAddr1, pAddr2, pAddr1->type==NETTYPE_IPV4 ? 8 : 20);
9}
10
11class CNetRange
12{

Callers 3

IsValidMethod · 0.85
NetMatchMethod · 0.85
FindMethod · 0.85

Calls 1

mem_compFunction · 0.85

Tested by

no test coverage detected