* @brief Encodes a sequence number into the message * * @param common_packet_format_data_item * @param outgoing_message The outgoing message object * * @return The new size of the message buffer * */
| 453 | * |
| 454 | */ |
| 455 | int EncodeSequenceNumber( |
| 456 | const CipCommonPacketFormatData *const common_packet_format_data_item, |
| 457 | ENIPMessage *const outgoing_message) { |
| 458 | outgoing_message->used_message_length += AddIntToMessage( |
| 459 | (EipUint16) common_packet_format_data_item->address_item.data |
| 460 | .sequence_number, |
| 461 | &outgoing_message->current_message_position); |
| 462 | return outgoing_message->used_message_length; |
| 463 | } |
| 464 | |
| 465 | /** |
| 466 | * @brief Encodes the reply service code for the requested service |
no test coverage detected