ulogd - polling handler - code clarification

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I was going through the ulogd_inpflow_NFCT.c : polling_handler code. I
need few clarifications.
If someone can answer for that, that will be great.


 725         case NFCT_T_UPDATE:
 726                 id = hashtable_hash(cpi->ct_active, ct);
 727                 ts = (struct ct_timestamp *)
 728                         hashtable_find(cpi->ct_active, ct, id);
 729                 if (ts)
 730                         nfct_copy(ts->ct, ct, NFCT_CP_META);
 731                 else {
 732                         ts = calloc(sizeof(struct ct_timestamp), 1);
 733                         if (ts == NULL)
 734                                 return NFCT_CB_CONTINUE;
 735
 736                         ts->ct = ct;
 737                         gettimeofday(&ts->time[START], NULL);
 738
 739                         ret = hashtable_add(cpi->ct_active,
&ts->hashnode, id);
 740                         if (ret < 0) {
 741                                 free(ts);
 742                                 return NFCT_CB_CONTINUE;
 743                         }
 744                         return NFCT_CB_STOLEN; // Here, why not
NFCT_CB_CONTINUE is used?
 745                 }
 746                 break;

Here in Line no 744, why NFCT_CB_STOLEN is used instead of
NFCT_CB_CONTINUE ? I am not able to understand the reason.


Thanks & Regards,
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux