LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

[PATCH 2/2 inlining] Using LVS as a way to provide load-balanced interne

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: [PATCH 2/2 inlining] Using LVS as a way to provide load-balanced internet
From: Ludo Stellingwerff <ludo@xxxxxxxxxxxxx>
Date: Fri, 29 Jul 2005 14:27:33 +0200
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

- --- ipvsadm-1.24/ipvsadm.c    2004-01-10 10:39:03.000000000 +0100
+++ new/ipvsadm.c    2005-07-29 13:18:51.557446421 +0200
@@ -374,6 +374,7 @@
         {"masquerading", 'm', POPT_ARG_NONE, NULL, 'm'},
         {"ipip", 'i', POPT_ARG_NONE, NULL, 'i'},
         {"gatewaying", 'g', POPT_ARG_NONE, NULL, 'g'},
+        {"reinject", 'j', POPT_ARG_NONE, NULL, 'j'},
         {"weight", 'w', POPT_ARG_STRING, &optarg, 'w'},
         {"u-threshold", 'x', POPT_ARG_STRING, &optarg, 'x'},
         {"l-threshold", 'y', POPT_ARG_STRING, &optarg, 'y'},
@@ -524,6 +525,10 @@
             set_option(options, OPT_FORWARD);
             ce->dest.conn_flags = IP_VS_CONN_F_DROUTE;
             break;
+        case 'j':
+            set_option(options, OPT_FORWARD);
+            ce->dest.conn_flags = IP_VS_CONN_F_NROUTE;
+            break;
         case 'm':
             set_option(options, OPT_FORWARD);
             ce->dest.conn_flags = IP_VS_CONN_F_MASQ;
@@ -664,6 +669,7 @@
         {"netmask", 1, 0, 'M'},
         {"ipip", 0, 0, 'i'},
         {"gatewaying", 0, 0, 'g'},
+        {"reinject", 0, 0, 'j'},
         {"weight", 1, 0, 'w'},
         {"u-threshold", 1, 0, 'x'},
         {"l-threshold", 1, 0, 'y'},
@@ -836,6 +842,10 @@
             set_option(options, OPT_FORWARD);
             ce->dest.conn_flags = IP_VS_CONN_F_DROUTE;
             break;
+        case 'j':
+            set_option(options, OPT_FORWARD);
+            ce->dest.conn_flags = IP_VS_CONN_F_NROUTE;
+            break;
         case 'm':
             set_option(options, OPT_FORWARD);
             ce->dest.conn_flags = IP_VS_CONN_F_MASQ;
@@ -1313,6 +1323,7 @@
         "  --netmask      -M netmask           persistent granularity
mask\n"
         "  --real-server  -r server-address    server-address is host
(and port)\n"
         "  --gatewaying   -g                   gatewaying (direct
routing) (default)\n"
+        "  --reinject     -j                   Reinject packet into
normal routing flow (EXPERIMENTAL)\n"
         "  --ipip         -i                   ipip encapsulation
(tunneling)\n"
         "  --masquerading -m                   masquerading (NAT)\n"
         "  --weight       -w weight            capacity of real server\n"
@@ -1518,6 +1529,9 @@
     case IP_VS_CONN_F_DROUTE:
         fwd = "Route";
         break;
+    case IP_VS_CONN_F_NROUTE:
+        fwd = "Reinject";
+        break;
     }
     return fwd;
 }
@@ -1534,6 +1548,8 @@
     case IP_VS_CONN_F_LOCALNODE:
     case IP_VS_CONN_F_DROUTE:
         swt = "-g"; break;
+    case IP_VS_CONN_F_NROUTE:
+        swt = "-j"; break;
     }
     return swt;
 }

- --
Ludo Stellingwerff

V&S B.V. The Netherlands
ProTactive firewall solution.
Tel: +31 172 416116
Fax: +31 172 416124

site: www.protactive.nl
demo: http://www.protactive.nl:81/netview.html
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFC6iC0OF3sCpZ+AJgRAgQvAJoCYGzYbt80SssEc6gRTnnM970icACeNxM7
RB0dSudyUf/UvgZJvb9PUKw=
=uuDg
-----END PGP SIGNATURE-----


<Prev in Thread] Current Thread [Next in Thread>
  • [PATCH 2/2 inlining] Using LVS as a way to provide load-balanced internet, Ludo Stellingwerff <=