Lines Matching defs:helper
24 #include "helper.h"
148 cur->helper->priv_data_len);
189 struct ctd_helper_instance *cur, *helper = NULL;
195 /* retrieve helper private data. */
199 calloc(1, cur->helper->priv_data_len);
205 cur->helper->priv_data_len);
208 *verdict = cur->helper->cb(pktb, protoff, myct, ctinfo);
209 helper = cur;
213 return helper;
226 struct ctd_helper_instance *helper;
286 /* Misconfiguration: if no helper found, accept the packet. */
287 helper = helper_run(pktb, protoff, myct, ctinfo, queue_num, &verdict);
288 if (!helper)
291 if (pkt_verdict_issue(helper, myct, queue_num, id, verdict, pktb) < 0)
345 dlog(LOG_ERR, "cannot allocate object for helper");
349 nfct_helper_attr_set(t, NFCTH_ATTR_NAME, cur->helper->name);
356 dlog(LOG_NOTICE, "configuring helper `%s' with queuenum=%d and "
357 "queuelen=%d", cur->helper->name, cur->queue_num,
363 if (!cur->helper->policy[j].name[0])
368 dlog(LOG_ERR, "cannot allocate object for helper");
373 cur->helper->policy[j].name);
375 cur->helper->policy[j].expect_timeout);
377 cur->helper->policy[j].expect_max);
380 cur->helper->policy[j].name,
381 cur->helper->policy[j].expect_timeout,
382 cur->helper->policy[j].expect_max);
388 dlog(LOG_ERR, "you have to define one policy for helper");
413 cur->helper->name, strerror(errno));
453 /* Now, we are ready to configure nfqueue attached to this helper. */
457 dlog(LOG_NOTICE, "helper `%s' configured successfully",
458 cur->helper->name);