use new StringReader interface
This commit is contained in:
@@ -513,7 +513,7 @@ void IPStackSimulator::on_client_tcp_frame(
|
|||||||
if (option_size != 4) {
|
if (option_size != 4) {
|
||||||
throw runtime_error("incorrect size for TCP max frame size option");
|
throw runtime_error("incorrect size for TCP max frame size option");
|
||||||
}
|
}
|
||||||
max_frame_size = options_r.get_u16r();
|
max_frame_size = options_r.get_u16b();
|
||||||
break;
|
break;
|
||||||
case 3: // Window scale (ignored)
|
case 3: // Window scale (ignored)
|
||||||
if (option_size != 3) {
|
if (option_size != 3) {
|
||||||
|
|||||||
Reference in New Issue
Block a user