void startCollector(uint16_t port) { if (!ipfixSender) { fatal("Exporter not started"); return; } if (!rules) { fatal("Aggregator not started"); return; } if (ipfixReceiver) { fatal("Collector already started"); return; }
int startCollector(IpfixReceiver *ipfixReceiver, uint16_t port) {
void startCollector(uint16_t port) {	if (!ipfixSender) {		fatal("Exporter not started");		return;		}	if (!rules) {		fatal("Aggregator not started");		return;		}	if (ipfixReceiver) {		fatal("Collector already started");		return;		}	debug("initializing collector");	initializeRcvIpfix();				debug("starting collector");	ipfixReceiver = rcvIpfixUdpIpv4(port);	setDataRecordCallback(ipfixReceiver, processDataRecord);	setDataDataRecordCallback(ipfixReceiver, processDataDataRecord);	startRcvIpfix(ipfixReceiver);	}