]> git.ipfire.org Git - network.git/commitdiff
pppoe-server: Add more information to status output.
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 24 Jun 2012 12:31:29 +0000 (12:31 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 24 Jun 2012 12:31:29 +0000 (12:31 +0000)
hooks/zones/bridge.configs/pppoe-server

index a3727f0f3b61011233be46420be3b6961ab9a990..b6ba0ea64a7f8aa151791b723a04219c3ae5f75d 100755 (executable)
@@ -109,5 +109,17 @@ function _status() {
        fi
        cli_statusline 3 "PPPoE server" "${status}"
 
+       local gateway=$(ipv4_get_network ${SUBNET})
+       cli_print_fmt1 3 "Gateway" "${gateway}"
+
+       local start_address=$(ipv4_encode ${gateway})
+       start_address=$(( ${start_address} + 1 ))
+       start_address=$(ipv4_decode ${start_address})
+       local end_address=$(ipv4_get_broadcast ${SUBNET})
+
+       cli_print_fmt1 3 "Client range" \
+               "${start_address}-${end_address}"
+       cli_space
+
        exit ${EXIT_OK}
 }