summaryrefslogtreecommitdiff
path: root/external/bsd/ppp
AgeCommit message (Collapse)Author
2023-06-03bsd.own.mk: rename GCC_NO_* to CC_WNO_*lukem
Rename compiler-warning-disable variables from GCC_NO_warning to CC_WNO_warning where warning is the full warning name as used by the compiler. GCC_NO_IMPLICIT_FALLTHRU is CC_WNO_IMPLICIT_FALLTHROUGH Using the convention CC_compilerflag, where compilerflag is based on the full compiler flag name.
2021-01-11Make this compile without -DINET6 (Kurt Schreiner)christos
2021-01-09remove morechristos
2021-01-09remove useless fileschristos
2021-01-09merge conflictschristos
2021-01-09What's new in ppp-2.4.9.christos
************************ * Support for new EAP (Extensible Authentication Protocol) methods: - Support for EAP-TLS, from Jan Just Keijser and others - Support for EAP-MSCHAPv2, from Eivind Næss, Thomas Omerzu, Tijs Van Buggenhout and others * New pppd options: - chap-timeout - chapms-strip-domain - replacedefaultroute - noreplacedefaultroute - ipv6cp-accept-remote - lcp-echo-adaptive - ip-up-script - ip-down-script - ca - capath - cert - key - crl-dir - crl - max-tls-version - need-peer-eap * Fixes for CVE-2020-8597 and CVE-2015-3310. * libpcap is now required when compiling on Linux (previously, if libpcap was not present, pppd would be compiled without packet filtering support). * The rp-pppoe plugin has been renamed to pppoe, to distinguish it from the upstream rp-pppoe code. Its options have changed names, but the old names are kept as aliases. * The configure script now supports cross-compilation. * Many bug fixes and cleanups. What was new in ppp-2.4.8. ************************** * New pppd options have been added: - ifname, to set the name for the PPP interface device - defaultroute-metric, to set the metric for the default route - defaultroute6, to add an IPv6 default route (with nodefaultroute6 to prevent adding an IPv6 default route) - up_sdnotify, to have pppd notify systemd when the link is up. * The rp-pppoe plugin has new options: - host-uniq, to set the Host-Uniq value to send - pppoe-padi-timeout, to set the timeout for discovery packets - pppoe-padi-attempts, to set the number of discovery attempts. * Added the CLASS attribute in radius packets. * Sundry bug fixes. * Fixed warnings and issues found by static analysis. * Added Submitting-patches.md. What was new in ppp-2.4.7. ************************** * Fixed a potential security issue in parsing option files (CVE-2014-3158). * There is a new "stop-bits" option, which takes an argument of 1 or 2, indicating the number of stop bits to use for async serial ports. * Various bug fixes. What was new in ppp-2.4.6. ************************** * Man page updates. * Several bug fixes. * Options files can now set and unset environment variables for scripts. * The timeout for chat scripts can now be taken from an environment variable. * There is a new option, master_detach, which allows pppd to detach from the controlling terminal when it is the multilink bundle master but its own link has terminated, even if the nodetach option has been given.
2020-09-06use struct zero initialiser and avoid calling memset() on a pointermrg
of the wrong size.
2020-08-20mmap MAP_FAILED audit.riastradh
2020-02-12pppd: Fix bounds check in EAP codechristos
Given that we have just checked vallen < len, it can never be the case that vallen >= len + sizeof(rhostname). This fixes the check so we actually avoid overflowing the rhostname array. Reported-by: Ilja Van Sprundel <ivansprundel@ioactive.com> Signed-off-by: Paul Mackerras <paulus@ozlabs.org> From: https://github.com/paulusmack/ppp/commit/8d7970b8f3db727fe798b65f3377fe6787575426
2019-10-13introduce some common variables for use in GCC warning disables:mrg
GCC_NO_FORMAT_TRUNCATION -Wno-format-truncation (GCC 7/8) GCC_NO_STRINGOP_TRUNCATION -Wno-stringop-truncation (GCC 8) GCC_NO_STRINGOP_OVERFLOW -Wno-stringop-overflow (GCC 8) GCC_NO_CAST_FUNCTION_TYPE -Wno-cast-function-type (GCC 8) use these to turn off warnings for most GCC-8 complaints. many of these are false positives, most of the real bugs are already commited, or are yet to come. we plan to introduce versions of (some?) of these that use the "-Wno-error=" form, which still displays the warnings but does not make it an error, and all of the above will be re-considered as either being "fix me" (warning still displayed) or "warning is wrong."
2019-10-04msg:mrg
avoid passing the same pointer in multiple arguments for restrict marked arguments: - sigaction() wants separate in/out - use memmove() not memcpy() for overlapping regions (this may fix a real bug in nvi -- but it seems unlikely) - select() wants separate read/write/except - sigprocmask() wants separate set/oset
2019-02-01compare pointers with NULL not '\0'.mrg
2018-07-08New arp code needs RTF_LLDATA for DELETE to work!christos
XXX: pullup-8
2017-01-12need stddef.h for offsetofchristos
2016-08-06Instead of listing cloners, try to create one so that the module autoloads.christos
2014-12-20MKINET6=no build fixesprlw1
http://mail-index.netbsd.org/tech-net/2014/12/13/msg004898.html
2014-10-25fix rcsids.christos
2014-10-25merge conflictschristos
2014-10-25* Fixed a potential security issue in parsing option files (CVE-2014-3158).christos
* There is a new "stop-bits" option, which takes an argument of 1 or 2, indicating the number of stop bits to use for async serial ports. * Various bug fixes.
2014-10-25import new pppd:christos
* Fixed a potential security issue in parsing option files (CVE-2014-3158). * There is a new "stop-bits" option, which takes an argument of 1 or 2, indicating the number of stop bits to use for async serial ports. * Various bug fixes.
2013-12-07CID 1006982: Fix memory leakchristos
2013-12-04CID 271284: Missing error check on openchristos
2013-11-28Merge local changes, add build glue.christos
2013-11-28Import ppp-2.4.5 from git://ozlabs.org/~paulus/ppp.gitchristos