Fix va_end() missing calls

A few va_start() calls aren't followed by their corresponding va_end().
This patch adds the missing va_end() calls.

Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
cli, tcp: Fix non-NULL terminated string reception

NULL terminate commands received in cln_read(). This ensures that the
processing loop can safely call strchr(), or any other string handling
functions.

Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
l2tp: Fix allocation checking when adding octets AVP

l2tp_packet_add_octets() performs a malloc on the "octets" field of the
L2TP attribute, but checks the "string" field for allocation failure.
Though these fields should be equivalent in this case, the "octets"
field should be logically checked instead of "string".

Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
Pass proper pointer to rad_packet_find_attr
Do not segfault on RADIUS failures during interim
Proper logging of LCP Magic-Numbers
Revert "Pass proper pointer to rad_packet_find_attr"

This reverts commit d16b78813da8b69aafd13ca5086850a5d27a871e.
cmake: use CMAKE_FIND_ROOT_PATH and LIB_SUFFIX
Fix boolean options parsing in configuration file

Explicitely interpret zero values when parsing boolean options. This
allows to unset boolean parameters such as "verbose" when reloading
the configuration.

Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
Merge branch '1.7' of ssh://accel-ppp.git.sourceforge.net/gitroot/accel-ppp/accel-ppp into 1.7
fix typo LIB_SIFFIX -> LIB_SUFFIX
update debian contrib
New client for the cli module (tcp)

accel-cmd is a small program that reads commands from its command
line or standard input and sends them to accel-ppp (using the
tcp interface of the cli module). It displays accel-ppp's result
on standard output.
accel-cmd automatically appends the "exit" command to its command
list, so that accel-pppd will disconnect after sending its replies.

By default accel-cmd connects to localhost:2001.

Examples:
  Send the "show sessions" command to accel-ppp and display the result:
  $ accel-cmd show sessions

  Execute commands from file "cmds" and display the results to stdout:
  $ accel-cmd < cmds

  Same as above, but use a different host and timeout after 1.5 seconds
  of inactivity:
  $ accel-cmd --timeout 1500ms --host accelppp.example.com < cmds

Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
Add manpage for accel-cmd

Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
Integrate accel-cmd with accel-ppp's build process

Create a CMakeLists.txt file for accel-cmd so that it gets
compiled and installed like accel-pppd.

Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
build: Set ACCEL_PPP_VERSION in top level cmake file

Move definition of ACCEL_PPP_VERSION from /accel-pppd/CMakeLists.txt
to /CMakeLists.txt so that it gets visible by any cmake file.

Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>