* @brief Encodes the general status of a 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 */
| 505 | * @return New size of the message buffer |
| 506 | */ |
| 507 | int EncodeGeneralStatus( |
| 508 | const CipMessageRouterResponse *const message_router_response, |
| 509 | ENIPMessage *const outgoing_message) { |
| 510 | outgoing_message->used_message_length += AddSintToMessage( |
| 511 | message_router_response->general_status, |
| 512 | &outgoing_message->current_message_position); |
| 513 | return outgoing_message->used_message_length; |
| 514 | } |
| 515 | |
| 516 | /** |
| 517 | * @brief Encodes the length of the extended status data part |
no test coverage detected