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

Function AddNullAddressItem

source/src/cip/cipconnectionmanager.c:845–854  ·  view source on GitHub ↗

* @brief Adds a Null Address Item to the common data packet format data * @param common_data_packet_format_data The CPF data packet where the Null Address Item shall be added */

Source from the content-addressed store, hash-verified

843 * @param common_data_packet_format_data The CPF data packet where the Null Address Item shall be added
844 */
845void AddNullAddressItem(
846 CipCommonPacketFormatData *common_data_packet_format_data) {
847 /* Precondition: Null Address Item only valid in unconnected messages */
848 assert(
849 common_data_packet_format_data->data_item.type_id
850 == kCipItemIdUnconnectedDataItem);
851
852 common_data_packet_format_data->address_item.type_id = kCipItemIdNullAddress;
853 common_data_packet_format_data->address_item.length = 0;
854}
855
856/* INT8 assembleFWDCloseResponse(UINT16 pa_ConnectionSerialNr, UINT16 pa_OriginatorVendorID, UINT32 pa_OriginatorSerialNr, S_CIP_MR_Request *pa_MRRequest, S_CIP_MR_Response *pa_MRResponse, S_CIP_CPF_Data *pa_CPF_data, INT8 pa_status, INT8 *pa_msg)
857 * create FWDClose response dependent on status.

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected