v->hooking=(HookingFilter *)hook_f;
static int configure_filter(struct v_objects *v, char *list){        char *l, *token;	char *routing;	        PacketProcessor *p, *hook_f;	char *p_settings;	int p_id;	dictionary *conf=v->v_config;	        Filter *f=new Filter();        /* violating the original string is not nice, so copy */        if(!(l=strdup(list))) {		return 1;        }	/*	 sampler->concentrator hook         the HookingFilter calls the function sampler_hook_entry() from concentrator	 */	routing=iniparser_getvalue(conf, "main", "packets");        /* the concentrator should get all packet traffic */	if(strcasecmp(routing, "all") == 0) {		msg(MSG_DEBUG, "Filter: adding HookingFilter sampler->concentrator as first PP");		hook_f=new HookingFilter(sampler_hook_entry);		f->addProcessor(hook_f);	}        /*         loop over all processors specified in list         look up setting for this processor         make new packetprocessor via make_filter_processor()         add to main filter         */        while((token=strsep(&l, ","))) {                /* lookup setting for this particular filter in config */		if(!(p_settings=iniparser_getvalue(conf, CONF_SEC, token))) {			msg(MSG_ERROR, "Filter: ignoring processor %s - has no config", token);			continue;		}		                /* make new sub-filter object */                if(!(p=make_filter_processor(token, p_settings))) {                        msg(MSG_ERROR, "Filter: ignoring processor %s(%s) - make_filter_process() error", token, p_settings);                        continue;                }				/* and add to filtering process */                msg(MSG_INFO, "Filter: adding processor %s<%s> to main filter", token, p_settings);               	f->addProcessor(p);	}	/* the concentrator should get filtered traffic */	if(strcasecmp(routing, "filtered") == 0) {		msg(MSG_DEBUG, "Filter: adding HookingFilter sampler->concentrator as last PP");		hook_f=new HookingFilter(sampler_hook_entry);		f->addProcessor(hook_f);	}	v->filter=f;        v->hooking=(HookingFilter *)hook_f;        free(l);        return 0;}