aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/ppp
Commit message (Collapse)AuthorAgeFilesLines
* ppp: Document the fact that ppp_nat is enabled by defaultAllan Jude2020-07-111-1/+10
| | | | | | | | | | | | | | No functional change. PR: 243062 Submitted by: Evilham <contact@evilham.com> (original version) MFC after: 2 weeks Sponsored by: Klara Inc. Event: July 2020 Bugathon Differential Revision: https://reviews.freebsd.org/D25623 Notes: svn path=/head/; revision=363105
* Remove all the RELEASE_CRUNCH defines, they are useless.Warner Losh2019-12-161-8/+0
| | | | | | | | RELEASE_CRUNCH has been broken for a very long time. Remove the last remants from the tree. Notes: svn path=/head/; revision=355821
* Retire the -DRELEASE_CRUNCH define.Warner Losh2019-07-123-13/+2
| | | | | | | | | | | | The RELEASE_CRUNCH ifdefs save about 100 bytes of text space. The complexity is not worth it as they eliminate error messages. Left the RELEASE_CRUNCH ifdef to eliminate a lot of stuff in place. That saves an interesting amount of space and change some behaviors, so absent a more detailed analysis, maintain the status quo. Notes: svn path=/head/; revision=349938
* Make ppp(8) buildable.Jung-uk Kim2018-09-191-5/+5
| | | | Notes: svn path=/projects/openssl111/; revision=338786
* Add u3g ppp.conf entry. It provides some starting point to makingEdward Tomasz Napierala2018-09-111-0/+7
| | | | | | | | | | | | use of u3g(4) dongles, and in many cases can work out of the box. Reviewed by: hselasky Approved by: re (gjb) MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D16974 Notes: svn path=/head/; revision=338590
* Add the possibility to mark packets urgent based on their length.Nick Hibma2018-08-175-4/+38
| | | | | | | | | | | This allows preferring small (e.g. ACK) packets, in upload heavy environments. It was already possible to mark packets urgent based on destination port. This option piggy backs on that feature. Notes: svn path=/head/; revision=337961
* ppp(8): fix code producing debugging logsEugene Grosbein2018-02-106-17/+21
| | | | | | | | | | | | | Fix several cases when long buffer is copied to shorter one using snprintf that results in contents truncation and clobbering unsaved errno value and creation of misleading logs. PR: 218517 Approved by: avg (mentor) MFC after: 1 month Notes: svn path=/head/; revision=329105
* SPDX: mostly fixes to previous changes.Pedro F. Giffuni2017-12-131-1/+1
| | | | | | | | Introduce the recently approved BSD-1-Clause and replace 0BSD which never did fit well our use cases. Notes: svn path=/head/; revision=326823
* SPDX: Fix some cases wrongly attributed to MIT.Pedro F. Giffuni2017-11-301-1/+1
| | | | | | | | In the cases of BSD-style license variants without clauses, use 0BSD for the time being in lack of a better description. Notes: svn path=/head/; revision=326398
* various: general adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-27116-1/+233
| | | | | | | | | | | | | | | | | Mainly focus on files that use BSD 2-Clause license, however the tool I was using misidentified many licenses so this was mostly a manual - error prone - task. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. No functional change intended. Notes: svn path=/head/; revision=326276
* General further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-202-1/+5
| | | | | | | | | | | | | | | | | Mainly focus on files that use BSD 3-Clause license. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Special thanks to Wind River for providing access to "The Duke of Highlander" tool: an older (2014) run over FreeBSD tree was useful as a starting point. Notes: svn path=/head/; revision=326025
* DIRDEPS_BUILD: Update dependencies.Bryan Drewery2017-10-311-1/+0
| | | | | | | Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=325188
* ppp(8): style(9) fix after r325157Eugene Grosbein2017-10-301-4/+2
| | | | | | | Approved by: mav (mentor) Notes: svn path=/head/; revision=325158
* Fix ppp(8) to add RTF_HOST flag to created host route.Eugene Grosbein2017-10-301-0/+4
| | | | | | | | | Reported by: Mike Tancsa <mike@sentex.net> Approved by: avg (mentor) MFC After: 1 week Notes: svn path=/head/; revision=325157
* Update several more URLsEitan Adler2017-10-291-2/+2
| | | | | | | | - Primarily http -> https - Primarily FreeBSD project URLs Notes: svn path=/head/; revision=325096
* ppp(8): Fix various bugs in NOPAM section of auth_CheckPasswdConrad Meyer2017-10-021-4/+10
| | | | | | | | | | | | | | | | * pw is not initialized before use * success is returned if crypt(3) errors These bugs were introduced in r231994, which attempted to adopt DragonflyBSD f4a9869feb646aafe72de6e5d61051a023a02676. The original author of the Dragonfly change also noticed these mistakes and filed the PR. PR: 222620 Submitted by: Lubos Boucek <bouceklubos AT gmail.com> Obtained from: DragonflyBSD f4a9869feb646aafe72de6e5d61051a023a02676 Notes: svn path=/head/; revision=324225
* Before returning because of an memory allocation error, free the memoryStephen J. Kiernan2017-06-061-0/+1
| | | | | | | | | | | | | | | already allocated to buf. Found using clang's static analyzer - scan-build Submitted by: Thomas Rix <trix@juniper.net> Reviewed by: stevek Approved by: sjg (mentor) MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D9852 Notes: svn path=/head/; revision=319638
* Remove the NATM framework including the en(4), fatm(4), hatm(4), andBrooks Davis2017-04-244-289/+0
| | | | | | | | | | | | | | | | | | | | | | | | patm(4) devices. Maintaining an address family and framework has real costs when we make infrastructure improvements. In the case of NATM we support no devices manufactured in the last 20 years and some will not even work in modern motherboards (some newer devices that patm(4) could be updated to support apparently exist, but we do not currently have support). With this change, support remains for some netgraph modules that don't require NATM support code. It is unclear if all these should remain, though ng_atmllc certainly stands alone. Note well: FreeBSD 11 supports NATM and will continue to do so until at least September 30, 2021. Improvements to the code in FreeBSD 11 are certainly welcome. Reviewed by: philip Approved by: harti Notes: svn path=/head/; revision=317383
* ftp.microsoft.com is dead and the document was not archived, point to the fullSevan Janiyan2017-03-251-4/+4
| | | | | | | | | | | | | protocol spec document instead. Fix spelling mistake flagged by igor. Rephrase bad sentence flagged by igor. Approved by: bcr (mentor) MFC after: 5 days Differential Revision: https://reviews.freebsd.org/D10111 Notes: svn path=/head/; revision=315964
* Fix build of ppp when WITHOUT_PAM is setBaptiste Daroussin2016-07-041-0/+1
| | | | | | | | | | PR: 210658 Reported by: madpilot Tested by: madpilot Approved by: re@ (kib) Notes: svn path=/head/; revision=302337
* Revert r301137 and r301163, and implement a correct fixGlen Barber2016-06-012-0/+40
| | | | | | | | | | | | | for the CONFS issue with dma.conf and ppp.conf. Thank you very much to Bryan Drewery for looking into the problem and providing this fix. Pointyhat: gjb Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=301166
* Revert r289096:Glen Barber2016-06-012-40/+0
| | | | | | | | | | | | | | | | Files listed in 'CONFS' are not properly included in new installations (missing from base.txz), for reasons I still do not fully understand. This reverts the change excluding /etc/ppp/ppp.conf from a new installation. /etc/dma/dma.conf is also affected, but requires a different solution, still being investigated. Reported by: Ben Woods Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=301137
* Don't walk off the end of the array when proto isn't explicitlyDon Lewis2016-05-161-7/+7
| | | | | | | | | | | listed above. Instead update the catch-all "Others" bucket. Reported by: Coverity CID: 1007571, 1007572 MFC after: 1 week Notes: svn path=/head/; revision=299991
* Cleanup unnecessary semicolons from utilities we all love.Pedro F. Giffuni2016-04-151-1/+1
| | | | Notes: svn path=/head/; revision=298089
* Use NULL instead of 0 for pointers.Marcelo Araujo2016-04-152-2/+2
| | | | | | | | | | | getenv(3) returns NULL if the variable name is not in the current environment. getservent(3) returns NULL on EOF or error MFC after: 4 weeks Notes: svn path=/head/; revision=298032
* Fix a ton of speelling errorsEitan Adler2015-10-212-3/+3
| | | | | | | | | | arc lint is helpful Reviewed By: allanjude, wblock, #manpages, chris@bsdjunk.com Differential Revision: https://reviews.freebsd.org/D3337 Notes: svn path=/head/; revision=289677
* Use existing CONFDIR instead of adding a new CONFIGDIRBaptiste Daroussin2015-10-111-1/+1
| | | | | | | Reported by: jbeich Notes: svn path=/head/; revision=289148
* Install bsd.confs.mkBaptiste Daroussin2015-10-101-1/+1
| | | | | | | Rename ETCDIR into CONFIGDIR to avoid conflicts with the ports tree Notes: svn path=/head/; revision=289114
* Move ppp.conf into the ppp sourcesBaptiste Daroussin2015-10-092-0/+40
| | | | Notes: svn path=/head/; revision=289096
* Add META_MODE support.Simon J. Gerraty2015-06-131-0/+27
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp Notes: svn path=/head/; revision=284345
| * dirdeps.mk now sets DEP_RELDIRSimon J. Gerraty2015-06-081-2/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=284172
| * Merge sync of headSimon J. Gerraty2015-05-278-24/+17
| |\ | |/ |/| | | Notes: svn path=/projects/bmake/; revision=283595
| * Merge from head@274682Simon J. Gerraty2014-11-191-2/+2
| |\ | | | | | | | | | Notes: svn path=/projects/bmake/; revision=274683
| * \ Merge head from 7/28Simon J. Gerraty2014-08-192-5/+4
| |\ \ | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=270164
| * | | Updated dependenciesSimon J. Gerraty2014-05-161-0/+1
| | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=266219
| * | | Merge from headSimon J. Gerraty2014-05-081-1/+1
| |\ \ \ | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=265720
| * \ \ \ Merge headSimon J. Gerraty2014-04-284-31/+8
| |\ \ \ \ | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=265044
| * \ \ \ \ Merge from headSimon J. Gerraty2013-09-055-45/+17
| |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=255263
| * | | | | | Updated dependenciesSimon J. Gerraty2013-03-111-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=248169
| * | | | | | Updated dependenciesSimon J. Gerraty2013-02-161-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=246868
| * | | | | | Sync with HEAD.David E. O'Brien2013-02-084-15/+14
| |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=246555
| * \ \ \ \ \ \ Sync from headSimon J. Gerraty2012-11-043-43/+24
| |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=242545
| * | | | | | | | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.Marcel Moolenaar2012-08-221-0/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net> Notes: svn path=/projects/bmake/; revision=239572
* | | | | | | | | Stop including if_var.h from userland.Gleb Smirnoff2015-04-061-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sponsored by: Nginx, Inc. Notes: svn path=/head/; revision=281143
* | | | | | | | | Conditionalize building radius support into libpam, ppp, etc viaEnji Cooper2015-02-041-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | MK_RADIUS_SUPPORT MFC after: 1 week Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=278182
* | | | | | | | | Fix multiple instances of the following clang 3.6.0 warning in ppp:Dimitry Andric2015-01-285-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | usr.sbin/ppp/command.c:2054:74: error: address of array 'arg->bundle->radius.cfg.file' will always evaluate to 'true' [-Werror,-Wpointer-bool-conversion] if (arg->bundle->radius.alive.interval && !arg->bundle->radius.cfg.file) { ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ In all cases, the file field of struct radius is a char array, but the intent was to check whether the string is empty, so add an indirection to achieve that. Use a similar approach for the sockname field of struct server. Notes: svn path=/head/; revision=277857
* | | | | | | | | Convert usr.sbin to LIBADDBaptiste Daroussin2014-11-251-12/+6
| |_|_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reduce overlinking Notes: svn path=/head/; revision=275054
* | | | | | | | Change file permissions for some setuid executables so they are "o+r".Neel Natu2014-08-211-2/+2
| |_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The executable itself doesn't contain any privileged information. An example of where this is useful is when makefs(8) is creating an image that includes /sbin/shutdown. This can now be done without root privileges. Reviewed by: delphij Discussed with: delphij, des CR: https://reviews.freebsd.org/D662 Notes: svn path=/head/; revision=270289
* | | | | | | use .Mt to mark up email addresses consistently (part2)Baptiste Daroussin2014-06-201-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PR: 191174 Submitted by: Franco Fichtner <franco@lastsummer.de> Notes: svn path=/head/; revision=267668
* | | | | | | When building picobsd, define WITHOUT_OPENSSL and WITHOUT_KERBEROS andWarner Losh2014-06-061-2/+1
| |_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | remove the now-redundant checks for RELEASE_CRUNCH. This originally was defined for building smaller sysinstall images, but was later also used by picobsd builds for a similar purpose. Now that we've moved away from sysinstall, picobsd is the only remaining consumer of this interface. Adding these two options reduces the RELEASE_CRUNCH special cases in the tree by half. Notes: svn path=/head/; revision=267147