]> git.ozlabs.org Git - ppp.git/commitdiff
sync constant and attributes names with
authorAlexandr D. Kanevskiy <kad@blackcatlinux.com>
Tue, 16 Jul 2002 13:11:43 +0000 (13:11 +0000)
committerAlexandr D. Kanevskiy <kad@blackcatlinux.com>
Tue, 16 Jul 2002 13:11:43 +0000 (13:11 +0000)
andrew pavlov <and@kremenchug.net>

pppd/auth.c
pppd/plugins/radius/radiusclient/etc/dictionary
pppd/pppd.h

index 1e2602bf7d5702b784868ab1093a7a4b794f9e15..469b0f857411fc2c62ead751e8aed6522ebcdbe7 100644 (file)
@@ -32,7 +32,7 @@
  * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  */
 
-#define RCSID  "$Id: auth.c,v 1.79 2002/07/15 11:04:18 kad Exp $"
+#define RCSID  "$Id: auth.c,v 1.80 2002/07/16 13:11:43 kad Exp $"
 
 #include <stdio.h>
 #include <stddef.h>
@@ -893,8 +893,8 @@ check_maxoctets(arg)
        case PPP_OCTETS_DIRECTION_OUT:
            used = link_stats.bytes_out;
            break;
-       case PPP_OCTETS_DIRECTION_MAX:
-       case PPP_OCTETS_DIRECTION_MAX2:
+       case PPP_OCTETS_DIRECTION_MAXOVERAL:
+       case PPP_OCTETS_DIRECTION_MAXSESSION:
            used = (link_stats.bytes_in > link_stats.bytes_out) ? link_stats.bytes_in : link_stats.bytes_out;
            break;
        default:
index 0778aa90e0ef6e2a37e1c0c2a21f0e92e3ad682b..8f6263c6cd96ecd8547479e64bc26091e48da19b 100644 (file)
@@ -242,6 +242,7 @@ VALUE               Add-Port-To-IP-Address  Yes                     1
 VALUE          Octets-Direction        Sum                     0
 VALUE          Octets-Direction        Input                   1
 VALUE          Octets-Direction        Output                  2
-VALUE          Octets-Direction        Maximum                 3
+VALUE          Octets-Direction        MaxOveral               3
+VALUE          Octets-Direction        MaxSession              4
 
 INCLUDE /etc/radiusclient/dictionary.microsoft
index 2d1cd17c5124e275d7378d3f5b23b5160d1c8299..e2cc42808ef3c045c894dcd6b1e0bbc023ed22f6 100644 (file)
@@ -16,7 +16,7 @@
  * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
  * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  *
- * $Id: pppd.h,v 1.70 2002/07/15 11:04:18 kad Exp $
+ * $Id: pppd.h,v 1.71 2002/07/16 13:11:43 kad Exp $
  */
 
 /*
@@ -295,12 +295,12 @@ extern int       maxoctets_dir;      /* Direction :
                                      2 - out
                                      3 - max(in,out) */
 extern int       maxoctets_timeout;  /* Timeout for check of octets limit */
-#define PPP_OCTETS_DIRECTION_SUM       0
-#define PPP_OCTETS_DIRECTION_IN        1
-#define PPP_OCTETS_DIRECTION_OUT       2
-#define PPP_OCTETS_DIRECTION_MAX       3
+#define PPP_OCTETS_DIRECTION_SUM        0
+#define PPP_OCTETS_DIRECTION_IN         1
+#define PPP_OCTETS_DIRECTION_OUT        2
+#define PPP_OCTETS_DIRECTION_MAXOVERAL  3
 /* same as previos, but little different on RADIUS side */
-#define PPP_OCTETS_DIRECTION_MAX2      4       
+#define PPP_OCTETS_DIRECTION_MAXSESSION 4      
 #endif
 
 #ifdef PPP_FILTER