Commit fffe402b authored by Yann Garcia's avatar Yann Garcia
Browse files

Bug fixed in offline ip layer

parent 5bb43193
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -47,7 +47,7 @@ void ip_offline_layer::receive_data(OCTETSTRING& p_data, params& p_params) {

  // Version
  uint8_t v = static_cast<const uint8_t>(*p_data);
  OCTETSTRING version = int2oct(1, v >> 4);
  OCTETSTRING version = int2oct((v >> 4) & 0x0f, 1);
  loggers::get_instance().log_msg("ip_offline_layer::receive_data: verion: ", version);
  // Length in bytes
  uint8_t length = (v & 0x0f) * 4;