| 378 | } |
| 379 | |
| 380 | void HandleReceivedListInterfacesCommand( |
| 381 | const EncapsulationData *const receive_data, |
| 382 | ENIPMessage *const outgoing_message) { |
| 383 | |
| 384 | /* Encapsulation header */ |
| 385 | const size_t kListInterfacesCommandSpecificDataLength = sizeof(CipUint) |
| 386 | + sizeof( |
| 387 | g_interface_information); |
| 388 | GenerateEncapsulationHeader(receive_data, |
| 389 | kListInterfacesCommandSpecificDataLength, |
| 390 | 0, /* Session handle will be ignored */ |
| 391 | kEncapsulationProtocolSuccess, |
| 392 | outgoing_message); |
| 393 | /* Command specific data */ |
| 394 | outgoing_message->used_message_length += AddIntToMessage(0x0000, |
| 395 | &outgoing_message->current_message_position); /* Reply 0 for no information being returned */ |
| 396 | } |
| 397 | |
| 398 | void HandleReceivedListIdentityCommandTcp( |
| 399 | const EncapsulationData *const receive_data, |