- Timestamp:
- 07/26/10 13:56:35 (13 years ago)
- Location:
- trunk
- Files:
-
- 33 added
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/fields_mgmt.c
r28 r120 35 35 FieldPtr tmp = pf; 36 36 for (; tmp; tmp=tmp->next) { 37 fprintf(file, " (%hu,%hu)", tmp->fieldType, tmp->fieldLength);37 fprintf(file, "%hu;%hu ", tmp->fieldType, tmp->fieldLength); 38 38 } 39 39 fprintf(file,"\n"); -
trunk/src/renetcol.c
r114 r120 735 735 break; 736 736 } 737 if (loopNb > 1 000 ){737 if (loopNb > 140000 ){ 738 738 /* FIXME perhaps call this function via the compilation options */ 739 739 writeAllTplFlSet(); … … 942 942 syslog (LOG_ERR, "error during %s opening", "/tmp/TemplateDef.txt"); 943 943 } 944 fprintf(TPLFILE,"\n*********************************************\n* All template definitions: (field, size) : *\n*********************************************\n");945 944 for (; tmp; tmp=tmp->next) { 946 fprintf(TPLFILE,"----------------------\nrouter %lu.%lu.%lu.%lu : \n----------------------\n",947 (tmp->IpAddress>>24),948 (tmp->IpAddress<<8>>24),949 (tmp->IpAddress<<16>>24),950 (tmp->IpAddress<<24>>24));951 945 tmpFS = tmp->tplList; 952 946 for (; tmpFS; tmpFS=tmpFS->next) { 953 fprintf(TPLFILE,"TId %hu (sourceId: %lu):\n", 947 fprintf(TPLFILE,"%lu.%lu.%lu.%lu TId %hu %lu ", 948 (tmp->IpAddress>>24), 949 (tmp->IpAddress<<8>>24), 950 (tmp->IpAddress<<16>>24), 951 (tmp->IpAddress<<24>>24), 954 952 tmpFS->templateFlowSetId, 955 953 tmpFS->sourceId); … … 959 957 if ((tmpOP = tmp->tplOptList) != NULL){ 960 958 for (; tmpOP; tmpOP=tmpOP->next) { 961 fprintf(TPLFILE,"OpTId %hu (sourceId: %lu) last %d brackets are Scope >\n lg: %hu, opScopeLg: %hu, opLg: %hu\n", 959 fprintf(TPLFILE,"%lu.%lu.%lu.%lu OpTId %hu %lu %d %hu %hu %hu ", 960 (tmp->IpAddress>>24), 961 (tmp->IpAddress<<8>>24), 962 (tmp->IpAddress<<16>>24), 963 (tmp->IpAddress<<24>>24), 962 964 tmpOP->templateOptionId, 963 965 tmpOP->sourceId, 964 tmpOP->optionScopeLg/4, 966 tmpOP->optionScopeLg/4, /* last x brackets are scope */ 965 967 tmpOP->length, 966 968 tmpOP->optionScopeLg, … … 969 971 fprintf(TPLFILE,"\n"); 970 972 } 971 fprintf(TPLFILE,"\n");973 /* fprintf(TPLFILE,"\n");*/ 972 974 } 973 975 }