void addPacketProcessor(IpfixUdpIpv4Receiver* ipfixUdpIpv4Receiver, PacketProcessor* packetProcessor) { int n = ++ipfixUdpIpv4Receiver->processorCount; ipfixUdpIpv4Receiver->packetProcessor = (PacketProcessor*)realloc(ipfixUdpIpv4Receiver->packetProcessor, n * sizeof(PacketProcessor)); memcpy(&ipfixUdpIpv4Receiver->packetProcessor[n-1], packetProcessor, sizeof(PacketProcessor)); }
void addPacketProcessor(IpfixCollector* ipfixCollector, PacketProcessor* packetProcessor) { int n = ++ipfixCollector->processorCount; ipfixCollector->packetProcessor = (PacketProcessor*)realloc(ipfixCollector->packetProcessor, n*sizeof(PacketProcessor)); memcpy(&ipfixCollector->packetProcessor[n-1], packetProcessor, sizeof(PacketProcessor));  if (ipfixCollector->receiver_type != UNKNOWN) { ipfixCollector->receiver_functions.setPacketProcessor(ipfixCollector->receiver, ipfixCollector->packetProcessor, ipfixCollector->processorCount); }  }
void addPacketProcessor(IpfixUdpIpv4Receiver* ipfixUdpIpv4Receiver, PacketProcessor* packetProcessor) {	 int n = ++ipfixUdpIpv4Receiver->processorCount;	 ipfixUdpIpv4Receiver->packetProcessor = (PacketProcessor*)realloc(ipfixUdpIpv4Receiver->packetProcessor,									   n * sizeof(PacketProcessor));	 memcpy(&ipfixUdpIpv4Receiver->packetProcessor[n-1], packetProcessor, sizeof(PacketProcessor));         }