Re: about TURN MAGIC-COOKIE

"Toshihiro Sonoda" <[email protected]> Tue, 30 Nov 2004 17:12:14 +0900
Newsgroups gmane.ietf.midcom
Message-ID <01c401c4d6b4$4d460bb0$e101a8c0@FM307599003>
> Toshihiro Sonoda wrote:
> 
>> Why can a server disambiguate a TURN Request from a data packet by
>> looking for the MAGIC-COOKIE attribute, as described in Section 7.2.3.
>>
>> Can it guarantee that UDP packets of non-TURN Packets doesn't have
>> same value as MAGIC-COOKIE.
>>
>>
> My take is a TURN client library would need to inspect every packet
> before sending them to a TURN server.
> If a packet happens to have something resembling a magic-cookie, the
> library would have to wrap it in a SEND request.

If a packet from client to turn server happens to have something resembling a 
magic-cookie, then the packet would have to be wrapped using SEND request.
I understand that.

but, if a packet form turn server to client happens to have something resembling a
magic-cookie, then should turn server wrap the packet using any turn-request or 
response?