MCPcopy Create free account
hub / github.com/EIPStackGroup/OpENer / HandleReceivedListInterfacesCommand

Function HandleReceivedListInterfacesCommand

source/src/enet_encap/encap.c:380–396  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

378}
379
380void 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
398void HandleReceivedListIdentityCommandTcp(
399 const EncapsulationData *const receive_data,

Callers 3

TESTFunction · 0.85

Calls 2

AddIntToMessageFunction · 0.85

Tested by 1

TESTFunction · 0.68