DPRINTF (" ipfix_init_sendbuffer  sizeof(struct iovec*): %i\n",  sizeof(struct iovec*)); DPRINTF (" ipfix_init_sendbuffer  sizeof(struct iovec): %i\n",  sizeof(struct iovec) );
static int ipfix_init_sendbuffer(ipfix_sendbuffer **sendbuf, int maxelements){	// mallocate memory for the sendbuffer	*sendbuf = (ipfix_sendbuffer *)malloc(sizeof(ipfix_sendbuffer));	// mallocate memory for the entries:	(**sendbuf).entries = (struct iovec *)malloc(maxelements * sizeof(struct iovec));	/* Bugfix: entries is an array of (struct iovec), not (struct iovec*), */	/* so we reserved the wrong amount of memory to it. Mea Culpa, JanP */	/*	(**sendbuf).entries = malloc(maxelements * sizeof(struct iovec*)); */	DPRINTF (" ipfix_init_sendbuffer  sizeof(struct iovec*): %i\n",  sizeof(struct iovec*));	DPRINTF (" ipfix_init_sendbuffer  sizeof(struct iovec): %i\n",  sizeof(struct iovec) );	(**sendbuf).current = HEADER_USED_IOVEC_COUNT; // leave the 0th field blank for the header	(**sendbuf).length = maxelements;	(**sendbuf).commited = HEADER_USED_IOVEC_COUNT;	// allocate memory for the header itself	(**sendbuf).header_store = (char *)malloc(IPFIX_HEADER_LENGTH) ;	(**sendbuf).commited_data_length = 0;	// initialize an ipfix_set_manager	ipfix_init_set_manager( (&(**sendbuf).set_manager), IPFIX_MAX_SET_HEADER_LENGTH);	return 0;}