亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

關(guān)于STUN協(xié)議中屬性的一點問題
大家講道理
大家講道理 2016-11-11 14:31:22
0
1
1582

STUN屬性都滿足TLV編碼,其中0x0001代表MappedAddress屬性,這個屬性用來存儲ip地址,同時為了區(qū)分地址的類型,后兩位用0x01代表IPV4,0x02代表IPV6。但是0x0002代表ResponseAddress屬性,這不就沖突了嗎?MappedAddress屬性怎么存儲ipv6的地址?

//       0                   1                   2                   3
//       0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
//      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
//      |0 0 0 0 0 0 0 0|    Family     |           Port                |
//      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
//      |                                                               |
//      |                 Address (32 bits or 128 bits)                 |
//      |                                                               |
//      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+


大家講道理
大家講道理

光陰似箭催人老,日月如移越少年。

reply all(1)
代言

This attribute is used only by servers for achieving backwards compatibility with RFC 3489 [RFC3489] clients.服務(wù)端收到就解釋為ipv6地址,客戶端收到就解釋為ResponseAddress

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template