* @brief Encodes the reply service code for the requested service * * @param message_router_response The router response message data structure to be processed * @param outgoing_message The outgoing message object * * @return The new size of the message buffer */
| 471 | * @return The new size of the message buffer |
| 472 | */ |
| 473 | int EncodeReplyService( |
| 474 | const CipMessageRouterResponse *const message_router_response, |
| 475 | ENIPMessage *const outgoing_message) { |
| 476 | outgoing_message->used_message_length += AddSintToMessage( |
| 477 | message_router_response->reply_service, |
| 478 | &outgoing_message->current_message_position); |
| 479 | return outgoing_message->used_message_length; |
| 480 | } |
| 481 | |
| 482 | /** |
| 483 | * @brief Encodes the reserved byte in the message router response |
no test coverage detected