ippool: impelented persistance
radius: implemented default-realm option
Merge branch '1.7' of ssh://git.code.sf.net/p/accel-ppp/code into 1.7
ippool: add cli command to remove persist entries
ppp: handle LCP DiscardReq
connlimit: Fix size of memcpy() for MAC address

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>
Merge branch '1.7' of ssh://git.code.sf.net/p/accel-ppp/code into 1.7
mempool: set/check magic only if MEMDEBUG defined
auth_chap: fixed incorrect check for received buffer size
triton: Fix race upon termination

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>
radius: don't assign address if Framed-IP-Address=255.255.255.254
triton: do not call context close if it is marked as need free (f.e. context already called triton_context_unregister)
shaper: fixed possible race during changing time range
Revert "shaper: fixed possible race during changing time range"

This reverts commit 2829895b32d1b5b8c46027dfb4238f22305d695c.
shaper: fixed possible race during changing time range
snmp: properly terminate snmp thread
radius: skip vendor specific attributes when searching session for DM/CoA

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>
radius: properly handle send failures

Signed-off-by: Dmitry Kozlov <xeb@mail.ru>
shaper: fixed invalid reference counting (caused unexpected removal of 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>
shaper: check for range overlaps before adjusting range times

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>