| 733 | } |
| 734 | |
| 735 | EipStatus HandleReceivedInvalidCommand( |
| 736 | const EncapsulationData *const receive_data, |
| 737 | ENIPMessage *const outgoing_message) { |
| 738 | |
| 739 | /* Encapsulation header */ |
| 740 | GenerateEncapsulationHeader(receive_data, |
| 741 | 0, |
| 742 | receive_data->session_handle, |
| 743 | kEncapsulationProtocolInvalidCommand, |
| 744 | outgoing_message); |
| 745 | return outgoing_message->used_message_length; |
| 746 | |
| 747 | } |
| 748 | |
| 749 | /** @brief search for available sessions an return index. |
| 750 | * @return return index of free session in anRegisteredSessions. |
no test coverage detected