diff --git a/src/IPStackSimulator.cc b/src/IPStackSimulator.cc index d2291649..462700a1 100644 --- a/src/IPStackSimulator.cc +++ b/src/IPStackSimulator.cc @@ -513,7 +513,7 @@ void IPStackSimulator::on_client_tcp_frame( if (option_size != 4) { 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; case 3: // Window scale (ignored) if (option_size != 3) {