Wireshark-dev: Re: [Wireshark-dev] Compile broken on 64-bit Linux -- packet-dtls.c
From: Guy Harris <[email protected]>
Date: Mon, 16 Apr 2007 15:52:27 -0700
On Apr 16, 2007, at 3:16 PM, Mike Duigou wrote:

packet-dtls.c: In function 'dissect_dtls':
packet-dtls.c:433: warning: cast to pointer from integer of different size
That call happens to do something that's probably safe on platforms  
where
	1) "int" has no more bits than a pointer

and

	2) converting from int to pointer doesn't mangle the bits

which is true of all the platforms we currently support.

However, it's still a good idea to fix it. There is no code in Wireshark that actually *uses* the DTLS tap, so we could just get rid of the tap. It seems a bit odd that the data passed to the tap is the proto_dtls value - that doesn't seem like very interesting information to pass to a tap, as it doesn't change from call to call.