]> git.pld-linux.org Git - packages/iptables.git/commitdiff
- updated for 1.4.3
authorzbyniu <zbyniu@pld-linux.org>
Thu, 26 Mar 2009 13:18:19 +0000 (13:18 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    iptables-layer7.patch -> 1.4

iptables-layer7.patch

index 8929f1db4aed684ca9830d24d77b5afd3fe614e9..f3b2efdae3cb5a30390f8fdc9322e67ec8f0aa16 100644 (file)
@@ -102,12 +102,12 @@ diff -Nurp iptables-1.3.8/extensions/libipt_layer7.c iptables-1.3.8-layer7/exten
 +                      /* sanity check.  First non-comment non-blank 
 +                      line must be the same as the file name. */
 +                      if(strcmp(line, protoname))
-+                              exit_error(OTHER_PROBLEM, 
++                              xtables_error(OTHER_PROBLEM, 
 +                                      "Protocol name (%s) doesn't match file name (%s).  Bailing out\n",
 +                                      line, filename);
 +
 +                      if(strlen(line) >= MAX_PROTOCOL_LEN)
-+                               exit_error(PARAMETER_PROBLEM, 
++                               xtables_error(PARAMETER_PROBLEM, 
 +                                      "Protocol name in %s too long!", filename);
 +                      strncpy(info->protocol, line, MAX_PROTOCOL_LEN);
 +
@@ -116,18 +116,18 @@ diff -Nurp iptables-1.3.8/extensions/libipt_layer7.c iptables-1.3.8-layer7/exten
 +              else if(datatype == pattern)
 +              {
 +                      if(strlen(line) >= MAX_PATTERN_LEN)
-+                               exit_error(PARAMETER_PROBLEM, "Pattern in %s too long!", filename);
++                               xtables_error(PARAMETER_PROBLEM, "Pattern in %s too long!", filename);
 +                      strncpy(info->pattern, line, MAX_PATTERN_LEN);
 +                      
 +                      datatype = done;                        
 +                      break;
 +              }
 +              else
-+                      exit_error(OTHER_PROBLEM, "Internal error");
++                      xtables_error(OTHER_PROBLEM, "Internal error");
 +      }
 +
 +      if(datatype != done)
-+              exit_error(OTHER_PROBLEM, "Failed to get all needed data from %s", filename);
++              xtables_error(OTHER_PROBLEM, "Failed to get all needed data from %s", filename);
 +
 +      if(line) free(line);
 +      fclose(f);
@@ -152,7 +152,7 @@ diff -Nurp iptables-1.3.8/extensions/libipt_layer7.c iptables-1.3.8-layer7/exten
 +                case 'A' ... 'F':
 +                        return c - 'A' + 10;
 +                default:
-+                        exit_error(OTHER_PROBLEM, "hex2dec: bad value!\n");
++                        xtables_error(OTHER_PROBLEM, "hex2dec: bad value!\n");
 +                        return 0;
 +        }
 +}
@@ -229,7 +229,7 @@ diff -Nurp iptables-1.3.8/extensions/libipt_layer7.c iptables-1.3.8-layer7/exten
 +      if (n < 0)
 +      {
 +            perror("scandir");
-+          exit_error(OTHER_PROBLEM, "Couldn't open %s\n", dirname);
++          xtables_error(OTHER_PROBLEM, "Couldn't open %s\n", dirname);
 +      }
 +        else 
 +      {
@@ -292,7 +292,7 @@ diff -Nurp iptables-1.3.8/extensions/libipt_layer7.c iptables-1.3.8-layer7/exten
 +
 +              if(c > MAX_FN_LEN)
 +              {
-+                      exit_error(OTHER_PROBLEM, 
++                      xtables_error(OTHER_PROBLEM, 
 +                              "Filename beginning with %s is too long!\n", filename);
 +              }
 +
@@ -310,7 +310,7 @@ diff -Nurp iptables-1.3.8/extensions/libipt_layer7.c iptables-1.3.8-layer7/exten
 +      }
 +
 +      if(!done)
-+              exit_error(OTHER_PROBLEM, 
++              xtables_error(OTHER_PROBLEM, 
 +                      "Couldn't find a pattern definition file for %s.\n", s);
 +
 +      /* process \xHH escapes and tolower everything. (our regex lib has no
@@ -328,7 +328,7 @@ diff -Nurp iptables-1.3.8/extensions/libipt_layer7.c iptables-1.3.8-layer7/exten
 +
 +      switch (c) {
 +      case '1':
-+              check_inverse(optarg, &invert, &optind, 0);
++              xtables_check_inverse(optarg, &invert, &optind, 0);
 +              parse_layer7_protocol(argv[optind-1], layer7info);
 +              if (invert)
 +                      layer7info->invert = 1;
@@ -337,10 +337,10 @@ diff -Nurp iptables-1.3.8/extensions/libipt_layer7.c iptables-1.3.8-layer7/exten
 +
 +      case '2':
 +              /* not going to use this, but maybe we need to strip a ! anyway (?) */
-+              check_inverse(optarg, &invert, &optind, 0);
++              xtables_check_inverse(optarg, &invert, &optind, 0);
 +
 +              if(strlen(argv[optind-1]) >= MAX_FN_LEN)
-+                      exit_error(PARAMETER_PROBLEM, "directory name too long\n");
++                      xtables_error(PARAMETER_PROBLEM, "directory name too long\n");
 +
 +              strncpy(l7dir, argv[optind-1], MAX_FN_LEN);
 +
@@ -358,7 +358,7 @@ diff -Nurp iptables-1.3.8/extensions/libipt_layer7.c iptables-1.3.8-layer7/exten
 +static void final_check(unsigned int flags)
 +{
 +      if (!flags)
-+              exit_error(PARAMETER_PROBLEM,
++              xtables_error(PARAMETER_PROBLEM,
 +                         "LAYER7 match: You must specify `--l7proto'");
 +}
 +
This page took 0.100541 seconds and 4 git commands to generate.