summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2026-03-01Merge pull request #301 from nuclearcat/bugfix-radius-stopDenys Fedoryshchenko
radius: fix stop accounting timeout flow and request cleanup
2026-02-28radius: fix stop accounting timeout flow and request cleanupDenys Fedoryshchenko
When sending accounting STOP requests, the timer callback was incorrectly set to the START timeout handler. This caused stop retries to follow the wrong termination path. Also clear rpd->acct_req before freeing on stop timeout/shutdown failures to avoid leaving a stale pointer. This bug is very nasty, revealed during stress tests, leading to memory corruption and other bad stuff when there is noticeable loss of radius "Stop" packets. Signed-off-by: Denys Fedoryshchenko <denys.f@collabora.com>
2026-02-23Merge pull request #300 from marekm72/marekm72-patch-1-printf-hDenys Fedoryshchenko
Simplify Alpine Linux / musl libc port
2026-02-22Replace linux/if.h with net/if.h includemarekm72
2026-02-22Replace linux/if.h with net/if.h in ipoe.hmarekm72
2026-02-22Update header includes in ipoe.cmarekm72
Replaced Linux-specific headers with their net counterparts.
2026-02-22Refactor ARP header includes in arp.cmarekm72
Replaced conditional inclusion of if_arp.h and if_packet.h with direct includes.
2026-02-22Refactor session free function pointer in l2tp.cmarekm72
2026-02-22Clean up CMakeLists.txt by removing unused checksmarekm72
Removed checks for __free_fn_t and good ifarp in CMakeLists.txt.
2026-02-22Remove printf.h check from CMakeLists.txtmarekm72
Removed check for printf.h and related definitions.
2026-02-22Remove unused printf.h includemarekm72
Removed conditional inclusion of printf.h.
2026-02-19Merge pull request #295 from nuclearcat/contribDenys Fedoryshchenko
policy/docs: Add contributing guidelines
2026-02-19Merge pull request #299 from nuclearcat/fix-use-after-freeDenys Fedoryshchenko
radius: Fix use after free and more
2026-02-18radius: Fix use after free and moreDenys Fedoryshchenko
Situation is a bit complex. Even one problem we fix easily, such as saving server as variable, rad_req_free might free server in theory, and s will be invalid. This is a bit of rewrite, but proper fix. Fixes problem in 2 functions. Signed-off-by: Denys Fedoryshchenko <denys.f@collabora.com>
2026-02-13policy/docs: Add contributing guidelinesDenys Fedoryshchenko
Signed-off-by: Denys Fedoryshchenko <denys.f@collabora.com>
2026-02-06radius: Invalid integer and date parsingDenys Fedoryshchenko
Actually 3 fixes in same place: INTEGER: size mismatch now breaks instead of falling through - a malformed INTEGER attribute is rejected rather than silently parsed with a wrong size INTEGER/DATE split: each case has its own break, no more fallthrough DATE: strictly requires len == 4 (per RFC 2865), warns and skips otherwise instead of silently accepting 1 or 2-byte dates Signed-off-by: Denys Fedoryshchenko <denys.f@collabora.com>
2026-02-06radius: Fix to same type of allocator and deallocatorDenys Fedoryshchenko
Signed-off-by: Denys Fedoryshchenko <denys.f@collabora.com>
2026-02-06radius: Fix invalid check after mempool allocationDenys Fedoryshchenko
This check left old, relevant to mmap, migrate to proper check. Signed-off-by: Denys Fedoryshchenko <denys.f@collabora.com>
2026-02-06radius: MS-CHAP2-Success unchecked memcpy(40 bytes)Denys Fedoryshchenko
Also fix small typo. Signed-off-by: Denys Fedoryshchenko <denys.f@collabora.com>
2026-02-06radius: Vendor attribute parsing over-readsDenys Fedoryshchenko
When parsing vendor-specific attributes (type 26), the code reads internal structure without checking that the attribute data is long enough. Signed-off-by: Denys Fedoryshchenko <denys.f@collabora.com>
2026-02-06Merge pull request #292 from nuclearcat/minor-fixesDenys Fedoryshchenko
Minor fixes
2026-02-06cli: clear show sessions cell buffer to avoid stale outputDenys Fedoryshchenko
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-06ppp: Defend from possible ppp init failureDenys Fedoryshchenko
ppp init might fail due malloc failure, missing or invalid runtime state, failure to setup resources (sockers, timers, handler registration), etc. This is quite unlikely now, but some floating(hard to catch) bugs says better to be safe than sorry. Signed-off-by: Denys Fedoryshchenko <denys.f@collabora.com>
2026-02-06fix(ppp): Uninitialized struct fieldsDenys Fedoryshchenko
Initialized the ifreq in destablish_ppp to avoid the uninitialized-struct warning before use. Signed-off-by: Denys Fedoryshchenko <denys.f@collabora.com>
2026-02-06ppp: classic TOCTOU, as uc_size not guarded by mutexDenys Fedoryshchenko
It was a micro-optimization to skip taking the mutex when uc_size was 0. But because uc_size isnt atomic and wasnt read under the lock, it created a TOCTOU window. Signed-off-by: Denys Fedoryshchenko <denys.f@collabora.com>
2026-02-06ppp: guard LCP logging field readsDenys Fedoryshchenko
Signed-off-by: Denys Fedoryshchenko <denys.f@collabora.com>
2026-02-02Merge pull request #294 from AndriiFullroot/VyOS_REBASE_StagesDenys Fedoryshchenko
netlink: Added VRF support
2026-01-30netlink: Added VRF supportAndrii Melnychenko
Added VRF support to the iproute routines. Updated iproute* calls in the ipoe, radius, and dhcpv6 code. Signed-off-by: Andrii Melnychenko <a.melnychenko@vyos.io>
2026-01-29Merge pull request #288 from nuclearcat/fix-framed-routeDenys Fedoryshchenko
Various Framed‑Route improvements
2026-01-28Merge pull request #293 from nuclearcat/fix-printingDenys Fedoryshchenko
cli: clear show sessions cell buffer to avoid stale output
2026-01-28cli: clear show sessions cell buffer to avoid stale outputDenys Fedoryshchenko
2026-01-27Update accel-pppd/radius/radius.cDenys Fedoryshchenko
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-01-27Update accel-pppd/radius/radius.cDenys Fedoryshchenko
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-01-25Merge pull request #289 from nuclearcat/release-1.141.14.0Denys Fedoryshchenko
release: 1.14.0
2026-01-24release: 1.14.0Denys Fedoryshchenko
Signed-off-by: Denys Fedoryshchenko <denys.f@collabora.com>
2026-01-24radius: Add optional validation of Framed-RouteDenys Fedoryshchenko
Signed-off-by: Denys Fedoryshchenko <denys.f@collabora.com>
2026-01-24radius: Fix buggy Framed-Route parsingDenys Fedoryshchenko
Signed-off-by: Denys Fedoryshchenko <denys.f@collabora.com>
2026-01-24Merge pull request #287 from nuclearcat/remove-nagging-daeDenys Fedoryshchenko
dae-allowed: Remove nagging about making option mandatory
2026-01-24dae-allowed: Remove nagging about making option mandatoryDenys Fedoryshchenko
Signed-off-by: Denys Fedoryshchenko <denys.f@collabora.com>
2026-01-05Merge pull request #285 from nuclearcat/add-coa-securityDenys Fedoryshchenko
radius: Implement DM/CoA security hardening by restricting source ips
2025-12-23radius: Implement DM/CoA security hardening by restricting source ip addressesDenys Fedoryshchenko
Signed-off-by: Denys Fedoryshchenko <denys.f@collabora.com>
2025-12-15Merge pull request #281 from nuclearcat/fix-acct-cachingDenys Fedoryshchenko
fix(radius): refresh session stats in req_set_stat
2025-12-15fix(radius): refresh session stats in req_set_statDenys Fedoryshchenko
Signed-off-by: Denys Fedoryshchenko <denys.f@collabora.com>
2025-12-13Merge pull request #277 from nuclearcat/minor-rfc2516-complianceDenys Fedoryshchenko
pppoe: Fix RFC2516 non-compilance in PADI tags parsing
2025-12-13Merge pull request #279 from nuclearcat/fix-acctDenys Fedoryshchenko
acct: Fix losing some data on interface down due wrong sequence
2025-12-13fix(accounting): preserve last counters on disconnectDmitriy Eshenko
Ensure accounting values include the most recent traffic sample when a session disconnects, preventing the final interval from being dropped and avoiding under-reported totals in usage/billing. Big thanks Dmitriy Eshenko for patch and testing Author: Dmitriy Eshenko <dmitriy.eshenko@accel-ppp.org> Signed-off-by: Denys Fedoryshchenko <denys.f@collabora.com>
2025-12-12Merge pull request #275 from nuclearcat/backport-nr-pr-17Denys Fedoryshchenko
Backporting PR#17 from accel-ppp-ng
2025-12-11Merge pull request #274 from nuclearcat/add-docsDenys Fedoryshchenko
docs: Add Radius documentation for ipoe and pppoe
2025-12-11Merge pull request #276 from nuclearcat/fix-cmake-min2Denys Fedoryshchenko
cmake: Bump up minimum version to supress Alpine Linux compile warnings
2025-12-11docs: Add Radius documentation for ipoe and pppoeDenys Fedoryshchenko
Signed-off-by: Denys Fedoryshchenko <denys.f@collabora.com>