From 8a141c58be94925d4f4ff785f3d5f9624e2a347c Mon Sep 17 00:00:00 2001 From: Martin Michelsen Date: Tue, 15 Mar 2022 22:43:31 -0700 Subject: [PATCH] use new StringReader interface --- src/IPStackSimulator.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {