Revision d1dfc9ed

View differences:

ml/ml.c
2257 2257

  
2258 2258
	if (sock1->internal_addr.udpaddr.sin_addr.s_addr !=
2259 2259
	    sock2->internal_addr.udpaddr.sin_addr.s_addr)
2260
			return 1;
2260
			return memcmp(&sock1->internal_addr.udpaddr.sin_addr.s_addr, &sock2->internal_addr.udpaddr.sin_addr.s_addr, sizeof(sock1->internal_addr.udpaddr.sin_addr.s_addr));
2261 2261

  
2262 2262
	if (sock1->internal_addr.udpaddr.sin_port !=
2263 2263
		 sock2->internal_addr.udpaddr.sin_port)
2264
			return 1;
2264
			return memcmp(&sock1->internal_addr.udpaddr.sin_port, &sock2->internal_addr.udpaddr.sin_port, sizeof(sock1->internal_addr.udpaddr.sin_port));
2265 2265

  
2266 2266
	/*
2267 2267
	* compare external addr
2268 2268
	*/
2269 2269
	if (sock1->external_addr.udpaddr.sin_addr.s_addr !=
2270 2270
	    sock2->external_addr.udpaddr.sin_addr.s_addr)
2271
			return 1;
2271
			return memcmp(&sock1->external_addr.udpaddr.sin_addr.s_addr, &sock2->external_addr.udpaddr.sin_addr.s_addr, sizeof(sock1->external_addr.udpaddr.sin_addr.s_addr));
2272 2272

  
2273 2273
	if (sock1->external_addr.udpaddr.sin_port !=
2274 2274
		 sock2->external_addr.udpaddr.sin_port)
2275
			return 1;
2275
			return memcmp(&sock1->external_addr.udpaddr.sin_port, &sock2->external_addr.udpaddr.sin_port, sizeof(sock1->external_addr.udpaddr.sin_port));
2276 2276

  
2277 2277
	return 0;
2278 2278
}

Also available in: Unified diff