]> rtime.felk.cvut.cz Git - frescor/fna.git/blobdiff - src_frescan/frescan_data.c
added the SRC param for the fragmentation layer and a INSTALL file
[frescor/fna.git] / src_frescan / frescan_data.c
index cc063d21f14663cc5025a5032196c204d2d0596f..d0e0e0d49001effc2176e2563014ccea9a2e880e 100644 (file)
@@ -38,6 +38,7 @@ int frescan_data_init(int fd, frescan_init_params_t *params)
 {
         frescan_ss_t id;
         frescan_prio_t prio;
+        frescan_node_t src;
 
         the_networks[params->net].fd = fd;
         the_networks[params->net].local_node = params->node;
@@ -47,11 +48,15 @@ int frescan_data_init(int fd, frescan_init_params_t *params)
         FRESCAN_CREATE_LOCK(&the_networks[params->net].lock);
 
         for(id=0; id<FRESCAN_MX_IDS; id++) {
-                the_networks[params->net].id_queues[id] = NULL;
+                for(src=0; src<FRESCAN_MX_NODES; src++) {
+                        the_networks[params->net].id_queues[src][id] = NULL;
+                }
         }
 
         for(prio=0; prio<FRESCAN_MX_PRIOS; prio++) {
-                the_networks[params->net].id_fp_queues[prio] = NULL;
+                for(src=0; src<FRESCAN_MX_NODES; src++) {
+                        the_networks[params->net].id_fp_queues[src][prio] = NULL;
+                }
         }
 
         return 0;