net/stun.lua
changeset 12373 f2ae9c6d1d9f
parent 12372 d82c8efc6dd5
child 12374 9889b1815d31
equal deleted inserted replaced
12372:d82c8efc6dd5 12373:f2ae9c6d1d9f
    84 	["password-algorithms"] = 0x8002;
    84 	["password-algorithms"] = 0x8002;
    85 	["alternate-domains"] = 0x8003;
    85 	["alternate-domains"] = 0x8003;
    86 
    86 
    87 	-- TURN
    87 	-- TURN
    88 	["requested-transport"] = 0x0019;
    88 	["requested-transport"] = 0x0019;
       
    89 	["xor-peer-address"] = 0x0012;
       
    90 	["data"] = 0x0013;
       
    91 	["xor-relayed-address"] = 0x0016;
    89 };
    92 };
    90 local attribute_lookup = lookup_table(attributes);
    93 local attribute_lookup = lookup_table(attributes);
    91 
    94 
    92 function packet_methods:serialize_header(length)
    95 function packet_methods:serialize_header(length)
    93 	assert(#self.transaction_id == 12, "invalid transaction id length");
    96 	assert(#self.transaction_id == 12, "invalid transaction id length");