All occurrences of 255 should be doubled when sent, to differentiate them from IAC. Hence, any incoming IAC IAC should be interpreted as a 255.
Thus, if you were receiving a NAWS subnegotiation which reported a width and height of 255, 256, then you would receive:
IAC SB NAWS 0 255 255 1 0 IAC SE
Note the double-255.
|