Revision b0be061a

View differences:

ml/util/udpSocket.c
271 271
			}
272 272
			/* check if the error originated from an icmp message  */
273 273
			if (errptr->ee_origin == SO_EE_ORIGIN_ICMP){
274
				char sender_addr_str[INET_ADDRSTRLEN];
274 275
				if(verbose == 1)
275 276
					debug("icmp error message received\n");
276 277

  
277 278
				int type = errptr->ee_type;
278 279
				int code = errptr->ee_code;
279 280
				icmp = 1;
280
				warn("icmp error message is type: %d code %d\n",
281
				inet_ntop(AF_INET, &(sender_addr.sin_addr.s_addr), sender_addr_str, INET_ADDRSTRLEN);
282
				warn("icmp error message from %s:%d is type: %d code %d\n",
283
					sender_addr_str,ntohs(sender_addr.sin_port),
281 284
					errptr->ee_type,errptr->ee_code);
282 285

  
283 286
				/* raise the pmtu callback when an pmtu error occurred
......
381 384
		};
382 385
		// end
383 386
		handleSocketError(udpSocket,2,buffer,recvSize,udpdst,icmpcb_value,ttl);
387

  
384 388
	} else {
385 389
		/* debug code  */
386 390
		if(verbose == 1)

Also available in: Unified diff