36 uint8_t redundance_bundle_list_pointer;
47 LOG(LOGD_DTN, LOG_AGENT, LOGL_DBG,
"REDUNDANCE: Checking bundle %lu for redundancy", bundle_number);
50 if( redundance_bundle_active[i] == 0 ) {
54 if( redundance_bundle_list[i] == bundle_number) {
55 LOG(LOGD_DTN, LOG_AGENT, LOGL_DBG,
"REDUNDANCE: bundle %lu is redundant", bundle_number);
70 redundance_bundle_list[redundance_bundle_list_pointer] =
bundle_number;
71 redundance_bundle_active[redundance_bundle_list_pointer] = 1;
72 redundance_bundle_list_pointer = (redundance_bundle_list_pointer + 1) %
REDUNDANCE_MAX;
82 LOG(LOGD_DTN, LOG_AGENT, LOGL_DBG,
"REDUNDANCE: starting");
85 memset(redundance_bundle_list, 0,
sizeof(uint32_t) *
REDUNDANCE_MAX);
86 memset(redundance_bundle_active, 0, REDUNDANCE_MAX);
89 redundance_bundle_list_pointer = 0;