[bwm-tools-devel] COMMIT - r16 - in trunk: . bwmd
Brought to you by:
nkukard
From: SVN C. <sv...@li...> - 2005-01-01 07:40:45
|
Author: nkukard Date: 2005-01-01 08:56:51 +0200 (Sat, 01 Jan 2005) New Revision: 16 Modified: trunk/TODO trunk/bwmd/report.c Log: * After speaking to Giang Hu <fre...@gm...> I've updated the TODO list to reflect our discussions * Committed patch from Giang Hu <fre...@gm...> which fixes typo in bwmd/report.c * Made bwmd/report.c more verbose with its error messages Modified: trunk/TODO =================================================================== --- trunk/TODO 2005-01-01 06:54:26 UTC (rev 15) +++ trunk/TODO 2005-01-01 06:56:51 UTC (rev 16) @@ -12,3 +12,10 @@ netlink syn, not async * Add maxRate graphing to graph.c * Add shared mem resizing to stats.c +* Add menu to bwm_monitor to which IP it wants to connect to, authentication aswell and default + to localhost +* bwm_firewall to generate automatic MARK values for flows +* fix parseDateTime, this is the messiest function! +* fix findFlowByName & findGroupByName, these 2 functions are similar and i'm sure can be merged +* have the location of iptables-restore automatically discovered using ./configure, with override options +* make bwm_firewall able to reload the firewall into kernel using iptables-restore Modified: trunk/bwmd/report.c =================================================================== --- trunk/bwmd/report.c 2005-01-01 06:54:26 UTC (rev 15) +++ trunk/bwmd/report.c 2005-01-01 06:56:51 UTC (rev 16) @@ -66,7 +66,7 @@ opRes = read(fd,&fileHeader,sizeof(struct aLogFileHeader_t)); if (opRes != sizeof(struct aLogFileHeader_t)) { - fprintf(stderr,"Error reading header: %s\n",strerror(errno)); + fprintf(stderr,"Error reading header from \"%s\": %s\n",filename,strerror(errno)); err = 1; } // If no errors seek... @@ -76,7 +76,7 @@ opRes = lseek(fd,0,SEEK_END); if (opRes < 0) { - fprintf(stderr,"Error seeking end %s\n",strerror(errno)); + fprintf(stderr,"Error seeking end of file \"%s\": %s\n",filename,strerror(errno)); err = 1; } } @@ -87,7 +87,7 @@ opRes = write(fd,&reportData->entry,sizeof(struct aLogFileEntry_t)); if (opRes != sizeof(struct aLogFileEntry_t)) { - fprintf(stderr,"Error writing record: %s\n",strerror(errno)); + fprintf(stderr,"Error writing record to file \"%s\": %s\n",filename,strerror(errno)); err = 1; } else @@ -107,7 +107,7 @@ opRes = lseek(fd,0,SEEK_SET); if (opRes < 0) { - fprintf(stderr,"Error seeking end %s\n",strerror(errno)); + fprintf(stderr,"Error seeking beginning of file \"%s\": %s\n",filename,strerror(errno)); err = 1; } } @@ -118,14 +118,14 @@ opRes = write(fd,&fileHeader,sizeof(struct aLogFileHeader_t)); if (opRes != sizeof(struct aLogFileHeader_t)) { - fprintf(stderr,"Error writing header: %s\n",strerror(errno)); + fprintf(stderr,"Error writing header to file \"%s\": %s\n",filename,strerror(errno)); err = 1; } } close(fd); } else - fprintf(stderr,"Stat error: %s\n",strerror(errno)); + fprintf(stderr,"Stat error on \"%s\": %s\n",filename,strerror(errno)); } else { @@ -148,7 +148,7 @@ opRes = write(fd,&fileHeader,sizeof(struct aLogFileHeader_t)); if (opRes != sizeof(struct aLogFileHeader_t)) { - fprintf(stderr,"Error writing header: %s\n",strerror(errno)); + fprintf(stderr,"Error writing header to \"%s\": %s\n",filename,strerror(errno)); err = 1; } // If no errors write more... @@ -157,17 +157,17 @@ opRes = write(fd,&reportData->entry,sizeof(struct aLogFileEntry_t)); if (opRes != sizeof(struct aLogFileEntry_t)) { - fprintf(stderr,"Error writing record: %s\n",strerror(errno)); + fprintf(stderr,"Error writing record to \"%s\": %s\n",filename,strerror(errno)); err = 1; } } close(fd); } else - fprintf(stderr,"Stat error: %s\n",strerror(errno)); + fprintf(stderr,"Stat error on \"%s\": %s\n",filename,strerror(errno)); } else - fprintf(stderr,"Open failed: %s\n",strerror(errno)); + fprintf(stderr,"Failed to open file \"%s\": %s\n",filename,strerror(errno)); } return(NULL); |