25 #ifdef CONF_MAX_REGISTRATIONS
26 #define MAX_REGISTRATIONS CONF_MAX_REGISTRATIONS
28 #define MAX_REGISTRATIONS 5
31 LIST(registration_list);
41 reg_list = registration_list;
43 LOG(LOGD_DTN, LOG_AGENT, LOGL_INF,
"Registration init ok");
51 node_id = dtn_node_id;
54 LOG(LOGD_DTN, LOG_AGENT, LOGL_DBG,
"Registering app_id %lu on node_id %lu", app_id, node_id);
57 if (n->node_id == node_id && n->app_id == app_id){
73 n->status = APP_ACTIVE;
74 n->application_process = application_process;
86 node_id = dtn_node_id;
90 if(n->node_id == node_id && n->app_id == app_id) {
91 return n->application_process;
103 node_id = dtn_node_id;
107 if(n->node_id == node_id && n->app_id == app_id) {
118 node_id = dtn_node_id;
122 if(n->node_id == node_id && n->app_id == app_id) {
123 n->status = APP_ACTIVE;
140 node_id = dtn_node_id;
144 if(n->node_id == node_id && n->app_id == app_id) {
145 n->status = APP_PASSIVE;
162 node_id = dtn_node_id;
166 if(n->node_id == node_id && n->app_id == app_id) {
179 if( n->application_process == application_process ) {
192 node_id = dtn_node_id;
196 if(n->node_id == node_id && n->app_id == app_id) {