* @brief Encodes the reserved byte in the message router response * * @param message_router_response Router Response message to be processed * @param outgoing_message The outgoing message object * * @return New size of the message buffer */
| 488 | * @return New size of the message buffer |
| 489 | */ |
| 490 | int EncodeReservedFieldOfLengthByte( |
| 491 | const CipMessageRouterResponse *const message_router_response, |
| 492 | ENIPMessage *const outgoing_message) { |
| 493 | outgoing_message->used_message_length += AddSintToMessage( |
| 494 | message_router_response->reserved, |
| 495 | &outgoing_message->current_message_position); |
| 496 | return outgoing_message->used_message_length; |
| 497 | } |
| 498 | |
| 499 | /** |
| 500 | * @brief Encodes the general status of a Router Response |
no test coverage detected