]> git.ipfire.org Git - network.git/commitdiff
routing: Fix check for Point-to-Point devices.
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 5 Jun 2012 20:52:10 +0000 (20:52 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 5 Jun 2012 20:52:10 +0000 (20:52 +0000)
However, what we wanted to check here is a ptp device
instead of ppp devices.

functions.routing

index 7fca8ba908bbd38723f1f6922e78070997945d80..fec1a5141ea41e288a4430f1a43ee267869b72fb 100644 (file)
@@ -52,9 +52,9 @@ function routing_default_update() {
 
                                assert device_exists ${zone}
 
-                               # If we have got a PPP device, we will directly send all
+                               # If we have got a Point-to-Point device, we will directly send all
                                # packets into the pipe.
-                               if device_is_ppp ${zone}; then
+                               if device_is_ptp ${zone}; then
                                        routes="${routes} dev ${zone}"
 
                                # On other devices, we will use the gateway if we got one.