X-Git-Url: http://git.jankratochvil.net/?a=blobdiff_plain;f=src%2Fnetwork.c;h=aaa0f47a1e8931135b060c7fc9c61cafac23c55a;hb=675e86b3896b2cc3e570233230e016a12752e87b;hp=e39dfc18a538264362f06179ec8f4160261d5219;hpb=9db9cd4e4cbd1f5b28e86cf38c2101b25acc95ef;p=udpgate.git diff --git a/src/network.c b/src/network.c index e39dfc1..aaa0f47 100644 --- a/src/network.c +++ b/src/network.c @@ -474,8 +474,8 @@ size_t packet_length; probe_unique=g_random_int(); probe_hash=g_hash_table_new( - g_int_hash, /* hash_func */ - g_int_equal); /* key_equal_func */ + g_direct_hash, /* hash_func */ + g_direct_equal); /* key_equal_func */ g_hash_table_insert(probe_hash,GUINT_TO_POINTER(PACKET_ELEM_TYPE_CLIENT_PORT) ,GUINT_TO_POINTER(port_local)); g_hash_table_insert(probe_hash,GUINT_TO_POINTER(PACKET_ELEM_TYPE_DATA_GUINT32),GUINT_TO_POINTER(probe_unique)); packet=packet_assembly(&packet_length,probe_hash);