summaryrefslogtreecommitdiff
path: root/accel-pppd/shaper
diff options
context:
space:
mode:
authorGuillaume Nault <g.nault@alphalink.fr>2013-02-08 14:27:11 +0100
committerKozlov Dmitry <xeb@mail.ru>2013-02-12 00:05:19 +0400
commit5f78642b1899c43249f3eec34bc4b60aa1b64afd (patch)
tree404c976cb5b2576873c1f366f7a5dcdbb348466d /accel-pppd/shaper
parentcce2110e7ac9343372a65d82ec0791130a7580bf (diff)
downloadaccel-ppp-5f78642b1899c43249f3eec34bc4b60aa1b64afd.tar.gz
accel-ppp-5f78642b1899c43249f3eec34bc4b60aa1b64afd.zip
cli: Pass complete command line to regexp handlers
Split regexp and simple command handling from the generic command processing function and handle regexp commands before simple ones. This avoids splitting the original command line before processing regexp command handlers, so that these handlers get the full command line instead of only the first word. The regexp command handlers are now only called when the command matches the regexp (regexp handlers were called unconditionaly before this patch). The rest of the processing properties should remain unchanged. Command processing summary: -If the command starts with the "help" keyword, then all help commands are called, starting with regexp help commands. -Otherwise, regexp command handlers whose regexp matches the command line are called. Then, simple command handlers whose header matches the command line are called. Any command handler that returns a value different from CLI_CMD_OK stops the process, thus preventing the following handlers from being called. Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
Diffstat (limited to 'accel-pppd/shaper')
0 files changed, 0 insertions, 0 deletions