Changeset 42 for tags

Show
Ignore:
Timestamp:
08/29/07 11:53:07 (15 years ago)
Author:
andreu
Message:

ticket #17 on trac and some comments modifications

Location:
tags/REL-0.0.11beta/trunk
Files:
8 modified

Legend:

Unmodified
Added
Removed
  • tags/REL-0.0.11beta/trunk/conf/rules.txt

    r20 r42  
    1414 
    1515N test_MPLS 
    16 O socket <your IP address> <port> 
     16O socket 10.0.0.1 1111 
    1717C 46 = 5 
    1818 
  • tags/REL-0.0.11beta/trunk/configure.in

    r41 r42  
    88AM_CONFIG_HEADER(config.h) 
    99AM_INIT_AUTOMAKE 
    10 CFLAGS="-I/usr/local/include -g -ansi -Wno-long-long -Wall -D _SVID_SOURCE -DSIGSETJMP_IS_BROKEN -D _XOPEN_SOURCE -pedantic -pg" 
     10CFLAGS="-I/usr/local/include -g -ansi -Wno-long-long -Wall -D _SVID_SOURCE -DSIGSETJMP_IS_BROKEN -D _XOPEN_SOURCE -pedantic" 
    1111 
    1212CFLAGS_OPTIMIZE="-O2" 
  • tags/REL-0.0.11beta/trunk/src/dataFlowSet.c

    r37 r42  
    791791         * In a first time (until release 0.0.7, the information was sent via 
    792792         * the process renetcolSender with an IPC message queue. But, the perf 
    793          * of IPC Msg was very bad with a system compilation by default. 
    794          * So now, we send information directly from here. 
     793         * of IPC Msg was very bad with a default system compilation. 
     794         * So, now, we send information directly from here. 
    795795         */ 
    796796        tmpRuleList = myPtrs->rulesListPtr; 
  • tags/REL-0.0.11beta/trunk/src/mysql_mgmt.c

    r2 r42  
    22 * File: mysql_mgmt.c 
    33 *  
    4  * Authors: ANDREU François-Xavier  
     4 * Authors: ANDREU Francois-Xavier  
    55 * 
    66 * Copyright (C) 2005 GIP RENATER  
  • tags/REL-0.0.11beta/trunk/src/mysql_mgmt.h

    r2 r42  
    22 * File: mysql_mgmt.h 
    33 *  
    4  * Authors: ANDREU François-Xavier  
     4 * Authors: ANDREU Francois-Xavier  
    55 * 
    66 * Copyright (C) 2005 GIP RENATER  
  • tags/REL-0.0.11beta/trunk/src/renetcolDB.c

    r23 r42  
    22 * File: renetcolDB.c 
    33 *  
    4  * Authors: ANDREU François-Xavier  
     4 * Authors: ANDREU Francois-Xavier  
    55 * 
    66 * Copyright (C) 2007 GIP RENATER  
  • tags/REL-0.0.11beta/trunk/src/renetcolDB.h

    r23 r42  
    22 * File: renetcolDB.h 
    33 *  
    4  * Authors: ANDREU François-Xavier  
     4 * Authors: ANDREU Francois-Xavier  
    55 * 
    66 * Copyright (C) 2007 GIP RENATER  
  • tags/REL-0.0.11beta/trunk/src/renetcolSender.c

    r35 r42  
    7070    if (length < 0){ 
    7171      syslog(LOG_ERR, " read : %s", strerror(errno)); 
     72      close(sock); 
    7273      return 1; 
    7374    } 
     
    7980      if (!(ruleFile = fopen(rulesFileName, "r"))) { 
    8081        syslog (LOG_ERR, "error during %s opening\n", rulesFileName); 
     82        close(sock); 
    8183        exit(1); 
    8284      } else { 
     
    9496              } 
    9597            } else { 
     98              close(sock); 
    9699              return 1; 
    97100            } 
     
    106109        if (!(tmpFile = fopen(FILE_TEMPO, "w"))) { 
    107110          syslog (LOG_ERR, "error during %s opening", FILE_TEMPO); 
     111          close(sock); 
    108112          return 1; 
    109113        } else { 
     
    114118          if (remove(rulesFileName)!=0){ 
    115119            syslog(LOG_ERR, "rules.txt remove pb: %s", strerror(errno)); 
     120            close(sock); 
    116121            return 1; 
    117122          } 
    118123          if (rename(FILE_TEMPO, rulesFileName)!=0){ 
    119124            syslog(LOG_ERR, "rename file pb: %s", strerror(errno)); 
     125            close(sock); 
    120126            return 1; 
    121127          } 
     
    130136                 value) == 0) { 
    131137        syslog (LOG_ERR, "error in recept rule: %s", buffer); 
     138        close(sock); 
    132139        return 1; 
    133140      } 
    134141      if (!(ruleFile = fopen(rulesFileName, "a"))) { 
    135142        syslog (LOG_ERR, "error during %s opening", rulesFileName); 
     143        close(sock); 
    136144        return 1; 
    137145      } else { 
     
    217225    if (getnameinfo((struct sockaddr *) &clientAddress, 
    218226                    clientAddressLen, host, sizeof host, 
    219                     NULL, (size_t) 0, 0) == 0) { 
     227                    NULL, (size_t) 0, NI_NUMERICHOST) == 0) { 
    220228      syslog(LOG_INFO,  
    221229             "New connection from %s", host);