renamed STROKE_DOWNSRCIP to STROKE_DOWN_SRCIP
authorAndreas Steffen <andreas.steffen@strongswan.org>
Tue, 1 Jul 2008 13:47:26 +0000 (13:47 -0000)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Tue, 1 Jul 2008 13:47:26 +0000 (13:47 -0000)
src/stroke/stroke.c
src/stroke/stroke_keywords.h
src/stroke/stroke_keywords.txt

index 01537b3..4381d27 100644 (file)
@@ -368,10 +368,10 @@ int main(int argc, char *argv[])
                        }
                        res = terminate_connection(argv[2]);
                        break;
-               case STROKE_DOWNSRCIP:
+               case STROKE_DOWN_SRCIP:
                        if (argc < 3)
                        {
-                               exit_usage("\"down-srcip\" needs start and end address");
+                               exit_usage("\"down-srcip\" needs start and optional end address");
                        }
                        res = terminate_connection_srcip(argv[2], argc > 3 ? argv[3] : NULL);
                        break;
index b998631..db74621 100644 (file)
@@ -26,7 +26,7 @@ typedef enum {
        STROKE_UNROUTE,
        STROKE_UP,
        STROKE_DOWN,
-       STROKE_DOWNSRCIP,
+       STROKE_DOWN_SRCIP,
        STROKE_LOGLEVEL,
        STROKE_STATUS,
        STROKE_STATUSALL,
index dfe03fb..096a5f9 100644 (file)
@@ -33,7 +33,7 @@ route,           STROKE_ROUTE
 unroute,         STROKE_UNROUTE
 up,              STROKE_UP
 down,            STROKE_DOWN
-down-srcip,      STROKE_DOWNSRCIP
+down-srcip,      STROKE_DOWN_SRCIP
 loglevel,        STROKE_LOGLEVEL
 status,          STROKE_STATUS
 statusall,       STROKE_STATUSALL