Re: about TURN MAGIC-COOKIE

Kenneth Ho <[email protected]> Mon, 29 Nov 2004 13:58:59 -0800
Newsgroups gmane.ietf.midcom
Message-ID <[email protected]>
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.
>
>
>
> _______________________________________________
> midcom mailing list
> [email protected]
> https://www1.ietf.org/mailman/listinfo/midcom
>
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.