Age | Commit message (Collapse) | Author |
|
|
|
|
|
|
|
|
|
Check if there is space in previous chunk and append log data there.
This reduces memory usage and message fragmentation
|
|
* fixed various bugs
* introduced accel-cmd program
* ippool: impelented persistance
* radius: implemented default-realm option
* radius: proper handling of Framed-IP-Address=255.255.255.254
* shaper: time range and other fixes
* shaper: implemented mtu option
* net-snmp: fixed run out of FD_SETSIZE
|
|
Use unshare(CLONE_FILES) to create a local file descriptors namespace
for the SNMP thread. This is similar to what was done in bf5340
'net-snmp: run snmp in "special" thread', but without calling clone()
directly. So the net-snmp plugin keeps running in a regular pthread.
Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
|
|
This reverts commit f2774e5a02d29de71eb64a64565b23090b6f6c5e.
snmp_thread() needs to be run as regular thread to allow Valgrind
analysis. Using a different namespace for file desciptors will be
done later on using unshare().
Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
|
|
NET-SNMP is built on top of stale file descriptor multiplexing mechanism (select)
which prevents to use descriptors with number >= 1024.
Due to accel-ppp uses a lots of descriptors NET-SNMP easy overflows this limit and fails
and even may crash whole accel-ppp process.
This patch runs snmp in special thread which does not share file descritor table
with main process, so it can use less descriptors and live in __FD_SETSIZE limit.
Signed-off-by: Dmitry Kozlov <xeb@mail.ru>
|
|
Signed-off-by: Dmitry Kozlov <xeb@mail.ru>
Conflicts:
accel-pppd/libnetlink/ipset.c
accel-pppd/libnetlink/iputils.c
|
|
Avoid parsing inconsistent PPPoE tags when handling PADR.
Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
|
|
warning if they're running already
Signed-off-by: Vladislav Grishenko <themiron@mail.ru>
|
|
Signed-off-by: Dmitry Kozlov <xeb@mail.ru>
|
|
|
|
Close netlink socket in remove_limiter function.
Signed-off-by: Kozlov Dmitry <xeb@mail.ru>
|
|
Signed-off-by: Kozlov Dmitry <xeb@mail.ru>
|
|
Fixes detection of range everlaps (time range end time is equal to start time of other range),
which prevents starting range end timer.
Signed-off-by: Dmitry Kozlov <xeb@mail.ru>
|
|
internal structure)
shaper: do not start time range end timer if end time is equal to start time of other range
Signed-off-by: Dmitry Kozlov <xeb@mail.ru>
|
|
Signed-off-by: Dmitry Kozlov <xeb@mail.ru>
|
|
This fixes invalid assosiation vendor specific Cisco-AVPair to Username attribute which both have same id
and prevents to find sessions in some circumstances.
Signed-off-by: Dmitry Kozlov <xeb@mail.ru>
|
|
|
|
|
|
This reverts commit 2829895b32d1b5b8c46027dfb4238f22305d695c.
|
|
|
|
already called triton_context_unregister)
|
|
|
|
The triton_terminate() function works by setting the need_close flag
of each triton context, then queues this context for execution by a
triton thread if not already running. But if the context is already
being run by a triton thread, it may not notice that its need_close
flag has been updated (this flag is only checked at the beginning
of ctx_thread()). So if no other event wakes up that context (i.e.
if ctx_thread() isn't run again), it will never terminate.
This patch moves the need_close flag check at the end of ctx_thread()
so that a triton context can take the need_close flag into account
event if it's updated while running.
The context spinlock is also used to protect the need_close flag as
it is concurrently updated by triton_terminate().
Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
|
|
|
|
|
|
|
|
The 'hw' parameter of cl_key_from_mac() is actually a pointer, so
'key.hw' must be used instead to compute the size of the MAC address.
Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
|
|
|
|
|
|
|
|
|
|
|
|
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>
|
|
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>
|
|
Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
|
|
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>
|
|
|
|
|
|
ssh://accel-ppp.git.sourceforge.net/gitroot/accel-ppp/accel-ppp into 1.7
|
|
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>
|
|
|
|
This reverts commit d16b78813da8b69aafd13ca5086850a5d27a871e.
|
|
|
|
|
|
|
|
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>
|