Age | Commit message (Collapse) | Author |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
down limiter)
|
|
|
|
|
|
resulting value is vlan | (parent_vlan << 16)
|
|
|
|
|
|
|
|
(prevents route cleaning by interface renaming)
|
|
|
|
|
|
|
|
|
|
|
|
tx_bytes and rx_bytes are only used in the ->stop_time branch, so
let's compute them here rather than at the top of the function.
Also, let's replace '4294967296llu' by 'UINT32_MAX + 1', to make it
clear that a gigaword equals 2^32 bytes and is used to keep track of
how many times the 32 bits tx and rx counters have overflowed.
Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
|
|
Use snprintf() to ensure fill_env() isn't going to overflow 'mem'.
Environment variables are either completely set or not defined at all
(but are never truncated).
For the ipv6 and ipv6_dp cases, the environment variable is now fully
generated with a single format string for simplicity.
Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
|
|
There are three different triton contexts that use l2tp_ctx_switch() as
their ->before_switch callback (main UDP server, L2TP control and L2TP
data).
In UDP server and L2TP control contexts, l2tp_ctx_switch() is called
with 'arg' == NULL. Only L2TP data contexts pass an ap_session pointer.
So we have to check 'arg' before setting 'net' or accel-ppp would
segfaults.
Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
|
|
|
|
|
|
|
|
Signed-off-by: François Cachereul <f.cachereul@alphalink.fr>
|
|
This reverts commit 07ca3acb40df7668cfd0c6abbdcefc21d944d993.
Signed-off-by: François Cachereul <f.cachereul@alphalink.fr>
|
|
|
|
Do not know how this could work. It make more sense to move an interface
from its original namespace not from its destination.
Signed-off-by: François Cachereul <f.cachereul@alphalink.fr>
|
|
This is done using radius attribute NAS-Port-Id. The new format of this attribute is NAS-Port-Id=[ns/][name].
Namespaces must be created malually by "ip netns add ..." command
|
|
* general rewrite and improve ipoe/vlan_mon drivers
* ipoe: generate EUI-64 interface identifier for ipv6 addresses
* ipoe: log warning if interface was not started by vlan_mon notification
* ipoe: introduced option "start=auto"
* ipoe: translate UP session to dhcp session when dhcp request received (for shared=0 interfaces)
* ipoe: implemented starting UP session by arp request
* ipoe: log interface renaming
* pppoe: add interface name to log messages
* pppoe: implemented vlan_mon support
* pppd_compat: change mode of radattr files to 0644
* pppd_compat: check for script existance before fork
* radius: implemented handling of Framed-Route attribute
* radius: do not send NAS-Port and NAS-Port-Id if they are undefined
* radius: add Delegated-IPv6-Prefix to accounting packets
* radius: update Session-Timeout by CoA
* shaper: implemented internal class id map
* ppp: introduced unit-preallocate option
* ipv6: remove ipv6 address and routes on session termination
* vlan_mon: introduced autoclean module parameter
* iprange: implement config reload
* make termination caused by SIGTERM soft
* remove pid file on exit
* for single-session=deny make early check for duplicate username (before calling radius)
* fixed broken "noauth" mode
|
|
accel-dp will be continued in separated branch
|
|
later use
Bacause interface may not still exists in authentication phase
|
|
|
|
|
|
|
|
If set to 1 then allocate unit (interface) before authorization, so Nas-Port and Nas-Port-Id would be defined in Access-Request phase
|
|
|
|
|
|
|
|
|
|
The 'installed' bit of the allocated ipv6db_addr_t structure needs to
be initialised. This is because ap_session_ifdown() reads this bit to
know if the address or route needs to be removed from the kernel.
The 'installed' bit is set by ap_session_accounting_started() and the
ND and DHCPV6 protocol handlers, but disconnection could happen before
these steps.
Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
|
|
This files aren't used (and aren't even compiled) anymore.
Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
|
|
include/ppp_auth.h used to be a symlink to ppp/ppp_auth.h, until it was
made a copy by ebbd6f580322 ("fix typo (successed -> succeeded)").
Therefore, changes to ppp/ppp_auth.h aren't visible to files including
ppp_auth.h anymore. These files have already diverged (just a
whitespace fix for now), so let's restore the original symlink before
more changes occur.
Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
|
|
|
|
Hello,
small patch to avoid gcc -Wformat warnings on Debian x32 where time_t
is "long long" (64-bit signed, to be 2038 safe), not "unsigned long"
(32-bit unsigned) corresponding to "%lu" format strings.
Regards,
Marek
|
|
|
|
The kernel flag used for setting PFC is SC_COMP_PROT (SC_COMP_AC is for
Address-and-Control-Field-Compression).
Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
|