summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2023-07-17ipoe: Add kernel 6.3 compatibilityDmitriy Eshenko
2023-07-01Merge pull request #95 from DmitriyEshenko/show-sessions-imprDmitriy Eshenko
CLI: PPPoE: Add possibility to display inbound interface and service-…
2023-06-30Merge pull request #91 from louis-6wind/fix-link-selection-mem-violationDmitriy Eshenko
ipoe: fix memory access violation with unset link-selection
2023-06-29CLI: PPPoE: Add possibility to display inbound interface and service-name in ↵Dmitriy Eshenko
show sessions command
2023-06-29Merge pull request #85 from louis-6wind/fix-non-vlan-crashDmitriy Eshenko
libnetlink: fix a crash with a non vlan interface
2023-06-29CLI: PPPoE: Use global net variable to prevent SEGFAULTDmitriy Eshenko
When accel-ppp has no connected clients, CLI interface add command it try to use net == NULL and crush code.
2023-06-27ipoe: fix memory access violation with unset link-selectionLouis Scalbert
Link-selection pointer is not set to NULL when link-selection IPOE option is not set. It results in a memory access violation in dhcpv4_packet_insert_opt82() Set link-selection pointer to NULL if unset to fix the issue. Fixes: 61e31c591e ("ipoe: add dhcp link selection sub-option") Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
2023-06-26libnetlink: fix a crash with a non vlan interfacePhilippe Guibert
Fix a segmentation fault when starting when accel-ppp is configured with an non vlan interface. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com> Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
2023-06-09Merge pull request #83 from louis-6wind/add-link-selectionDmitriy Eshenko
Add support of Link Selection DHCP sub-option RFC3527
2023-06-09Update cpack.cmakeDmitriy Eshenko
Use real version instad of "gitgitgit"
2023-06-09Fix compile failure with cmake failing on forks, fixes issue #80Denys Fedoryshchenko
We set fake variables so recipe doesn't fail. It is a bit of hack for such situation, but makes development easier. Signed-off-by: Denys Fedoryshchenko <denys.f@collabora.com>
2023-06-05man: add information about link-selectionPhilippe Guibert
Add information about link-selection ipoe option in accel-ppp.conf man. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com> Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
2023-06-05man: add information about agent-remote-idPhilippe Guibert
DHCP "agent remote id" sub-option 2 of option 82 can already be configured with [ipoe] / "agent-remote-id". However, it is not documented. Add information about agent-remote-id in accel-ppp.conf man. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com> Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
2023-06-05ipoe: add dhcp link selection sub-optionPhilippe Guibert
Add the support of DHCP option 82 "Agent Information" sub-option 5 "link selection". The IPv4 value can be specified in the [ipoe] "link-selection" configuration option. Link: https://www.rfc-editor.org/rfc/rfc3527.html Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com> Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
2023-05-05sstp: fix gcc9/clang address-of-packed-member warningVladislav Grishenko
Patially fixes 6e5f9980a8a71015a228279e07970621d23c7b35, there's no really requirement for packed internal sockaddr_t struct. Also, constantify several struct pointer arguments as well.
2023-05-05sstp: revert 6e5f9980a8a71015a228279e07970621d23c7b35Vladislav Grishenko
There's no alignment reason for making temporary vars on stack assuming unaligned block copy.
2023-05-05sstp: fix termios structure initializationVladislav Grishenko
Fixes ad94c19554d7c6bb18ab2e251e4ee403ee0b7732, tios is sill left partially initialized with sane values. Also, log get/set attr errors with error level as well since it raises pty allocation error and connection drop therefore.
2023-04-04Merge pull request #78 from svlobanov/tests5Dmitriy Eshenko
ci: remove Ubuntu 18.04 from CI pipelines, fix python issue for Debian12
2023-04-01ci: fix python packages installation on debian12Sergey V. Lobanov
Signed-off-by: Sergey V. Lobanov <sergey@lobanov.in>
2023-04-01ci: remove support for Ubuntu 18.04 as EOLSergey V. Lobanov
Ubuntu 18.04 is EOL so CI support is not necessary anymore Signed-off-by: Sergey V. Lobanov <sergey@lobanov.in>
2023-01-27radius: implemented accounting delay option (acct-delay-start)Dmitry Kozlov
2023-01-24ipoe,vlan_mon: add support for kernels 6.1+Dmitriy Eshenko
Co-authored-by: Martin Zaharinov <micron@bngsoft.net>
2022-11-29Merge pull request #65 from neelchauhan/epel9Dmitriy Eshenko
Add support for building RPMs on RHEL 9 clones
2022-11-16CLI: Fix counters output typeDmitriy Eshenko
2022-11-15SNMP: Fix previous migration to 64 bit countersDmitriy Eshenko
2022-11-01Merge pull request #66 from boomer41/feature/additions-2022-11-01xebd
Use 64-bit interface statistics and some more env parameters for pppd-compat
2022-11-01Merge pull request #64 from volodymyrhuti/masterEshenko Dmitriy
T72: Fix compilations warnings for unaligned variable access
2022-11-01Remove uninitialized argument from openpty()Stephan Brunner
As per the docs: The openpty() function finds an available pseudoterminal and returns file descriptors for the master and slave in amaster and aslave. [...] If termp is not NULL, the terminal parameters of the slave will be set to the values in termp. [...] So openpty() would set the pty parameters to something undefined. This undefinedness will be fixed by the later tcsetattr() call. As a result, we don't need that parameter in the first place. Additionally, fixes a -Wmaybe-uninitialized warning.
2022-11-01Remove unused variable.Stephan Brunner
2022-11-01Add PACKETS_SENT and PACKETS_RCVD to the pppd-compat environment.Stephan Brunner
2022-11-01Use 64-bit interface statistics rather than doing custom 32-bit overflow ↵Stephan Brunner
handling. When a link has a relatively high throughput, the 32-bit packet and byte counters could overflow multiple times between accounting runs. To accommodate this limitation, directly use 64-bit interface statistics. This also gets rid of the internal giga-word counters.
2022-10-28Add support for building RPMs on RHEL 9 clonesNeel Chauhan
This includes CentOS Stream, AlmaLinux, and RockyLinux.
2022-10-26Merge pull request #51 from cygnusb/dhcp_notify_end_optionEshenko Dmitriy
Add missing dhcp end option on dhcp notify packet
2022-10-22T72: Fix compilations warnings for unaligned variable accessVolodymyr Huti
- IPoE/DHCP4: Specify minimal suitable alignment explicitly. We need to guarantee 2 byte alignment for the `hdr` pointer in `ip_csum(uint16_t *buf)` calculation - PPPOE: Suppress false-positive warning for `sockaddr_pppox`. Similiar issue: https://github.com/kernelslacker/trinity/pull/40 - Introduce tmp variables to avoid alignment issues for SSTP/DHCPv6 For additional details: https://phabricator.accel-ppp.org/T72 Signed-off-by: Volodymyr Huti <v.huti@vyos.io>
2022-10-11Merge pull request #62 from DmitriyEshenko/liblua_depsxebd
Add liblua dependency for DEB packages
2022-10-11Add liblua dependency for DEB packagesDmitriy Eshenko
2022-09-12Merge pull request #61 from svlobanov/tests2xebd
add tests and ci workflow for running tests
2022-09-12Merge pull request #60 from svlobanov/ci2xebd
ci: add build jobs (Github CI)
2022-09-06tests ci: add testing in Qemu (Ubuntu 18.04, 20.04, 22.04, Debian 10,11,12)Sergey V. Lobanov
2022-09-04add tests and ci workflow for running testsSergey V. Lobanov
This commit adds tests (using python3 pytest framework): 1. Test basic accel-cmd commands (show version, show stat, etc) 2. Test ipoe shared session up (dhcpv4) without radius 3. Test pppoe discovery (without PADO delay) 4. Test pppoe discovery (without PADO delay) 5. Test pppoe session up (ipv4) without radius 6. Test vlan creation using vlan-mon (pppoe) These tests require external utils. Please read tests/README.md how to setup environment, how to run the tests and how to generate coverage report Also, run-tests.yml contains step-by-step instruction how to run the tests Signed-off-by: Sergey V. Lobanov <sergey@lobanov.in>
2022-09-01ci: add build jobs (Github CI)Sergey V. Lobanov
Added build on: 1. Ubuntu 20.04, 22.04 (github runners) 2. Ubuntu 18.04, 20.04, 22.04 (in official containers from dockerhub) 3. Debian 10, 11, 12 (in official containers from dockerub) Build jobs do: 1. Build (cmake, make) 2. Packaging (cpack) 3. Install 4. Run 5. Check using 'show stat' command 6. Upload built .deb package as artifact Signed-off-by: Sergey V. Lobanov <sergey@lobanov.in>
2022-09-01build: add deb packaging support for Ubuntu 22.04 and Debian 12Sergey V. Lobanov
Signed-off-by: Sergey V. Lobanov <sergey@lobanov.in>
2022-08-30Merge pull request #58 from svlobanov/accel-cmd-macosxebd
accel-cmd: add macos compatibility
2022-08-23accel-cmd: add macos compatibilitySergey V. Lobanov
MacOS socket does not support SOCK_CLOEXEC. This patch uses fcntl with FD_CLOEXEC instead of using SOCK_CLOEXEC in socket() call Signed-off-by: Sergey V. Lobanov <sergey@lobanov.in>
2022-08-04Merge pull request #56 from DmitriyEshenko/T69Eshenko Dmitriy
sstp: T69: Add timer befor context wakeup to preevent segfault
2022-08-04sstp: T69: Add timer befor context wakeup to preevent segfaultDmitriy Eshenko
2022-07-27Merge pull request #54 from telirebarry/fix-ipv6-netnsxebd
Fix ipv6 inside netns
2022-07-05ipv6_dhcp:change log message with appropriate file nameTelire Barry
This commit proposes to modify the log message in dhcpv6.c to include the correct file name. It avoids confusion when reading the logs
2022-06-23Merge pull request #48 from DmitriyEshenko/master-08042022xebd
T60: Implement configurable session-timeout param for all connection …
2022-06-22ipv6_dhcp: fix create ipv6 socket inside netnsTelire Barry
This fix allow to create the socket inside the netns for ipv6-dhcp module.