summaryrefslogtreecommitdiffstats
path: root/libexec/pppoed
Commit message (Collapse)AuthorAgeFilesLines
* In libexec/pppoed/pppoed.c, use the correct printf length modifier for adim2011-12-161-2/+2
| | | | | | size_t. MFC after: 1 week
* Make WARNS=6 the default for libexec/.ed2010-01-021-0/+1
| | | | | | | | | | | | | | | Just like bin/ and sbin/, I think setting WARNS to the highest value possible will make it more attractive for people to fix warnings. - The WARNS variable is set in the Makefile in the directory of the application itself, making it more likely that it will be removed out of curiosity to see what happens. - New applications will most likely build with WARNS=6 out of the box, because the author would more likely fix the warnings during development than lower WARNS. Unfortunately almost all apps in libexec require a lowered value of WARNS.
* Significantly reduce the memory leak as noted in BUGS section forscf2007-07-041-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | setenv(3) by tracking the size of the memory allocated instead of using strlen() on the current value. Convert all calls to POSIX from historic BSD API: - unsetenv returns an int. - putenv takes a char * instead of const char *. - putenv no longer makes a copy of the input string. - errno is set appropriately for POSIX. Exceptions involve bad environ variable and internal initialization code. These both set errno to EFAULT. Several patches to base utilities to handle the POSIX changes from Andrey Chernov's previous commit. A few I re-wrote to use setenv() instead of putenv(). New regression module for tools/regression/environ to test these functions. It also can be used to test the performance. Bump __FreeBSD_version to 700050 due to API change. PR: kern/99826 Approved by: wes Approved by: re (kensmith)
* Back out all POSIXified *env() changes.ache2007-05-011-4/+4
| | | | | | | | | Not because I admit they are technically wrong and not because of bug reports (I receive nothing). But because I surprisingly meets so strong opposition and resistance so lost any desire to continue that. Anyone who interested in POSIX can dig out what changes and how through cvs diffs.
* Prepare for upcoming POSIXed putenv() rewrite:ache2007-04-301-4/+4
| | | | don't allow putenv() arg be on the stack, replace putenv() with setenv()
* Expand contractions.ru2005-02-131-1/+1
|
* Sync program's usage() with manpage's SYNOPSIS.ru2005-02-091-1/+1
|
* Let bsd.prog.mk set SRCS and MAN to their default values.ru2005-01-281-1/+0
|
* Sort sections.ru2005-01-181-7/+7
|
* Replace all uses of the old netgraph constants NG_*LEN by the newharti2003-11-151-1/+1
| | | | | | constants NG_*SIZ that include the trailing NUL byte. This change is mostly mechanical except for the replacement of a couple of snprintf() and sprintf() calls with strlcpy.
* The .Nm utilitycharnier2002-07-061-2/+4
|
* Understand the new NGM_PPPOE_SESSIONID message and set SESSIONIDbrian2002-05-141-2/+9
| | | | | | in the environment to it's value. Approved by: archie (after a very cursory glance)
* Usage style sweep: spell "usage" with a small 'u'.des2002-04-221-1/+1
| | | | | Also change one case of blatant __progname abuse (several more remain) This commit does not touch anything in src/{contrib,crypto,gnu}/.
* Handle NGM_PPPOE_ACNAME messages.brian2002-02-202-3/+11
| | | | | Submitted by: Andre Albsmeier <andre@albsmeier.net> Approved by: julian
* o __P removalimp2002-02-171-1/+1
| | | | o use Ansi-style function definitions
* Lock down with WFORMAT?=1, with overrides in the subdirectories whichkris2002-02-041-0/+2
| | | | are not yet warning-clean. Tested on i386 and alpha.
* Prototype a function as __printflike() to avoid a FORMAT_AUDIT warning.kris2002-02-041-0/+2
| | | | MFC after: 1 week
* mdoc(7) police: minor spelling, markup and style fixes.ru2001-11-221-18/+21
|
* Don't leave dodgy looking spaces in HISMACADDRbrian2001-11-221-3/+3
|
* Mention that HISMACADDR is set in the environment of child processesbrian2001-11-221-0/+5
|
* Set HISMACADDR in the environment before envoking ppp.brian2001-11-211-5/+17
| | | | MFC after: 1 week
* Put a parenthesis in the right place (DUH!).brian2001-08-251-1/+1
| | | | This fixes the apparent immediate client timeout problem.
* Understand that a return value of 0 from NgRecvMsg() means that thebrian2001-08-241-2/+8
| | | | | | | socket was closed. This prevents erroneous ``Unexpected netgraph version'' from turning up in the log.
* mdoc(7) police:ru2001-08-071-3/+5
| | | | | | | Avoid using parenthesis enclosure macros (.Pq and .Po/.Pc) with plain text. Not only this slows down the mdoc(7) processing significantly, but it also has an undesired (in this case) effect of disabling hyphenation within the entire enclosed block.
* Don't use SA_RESETHAND here. We gain nothing.brian2001-07-311-1/+1
| | | | Suggested by: bde
* Add a -l flag used to specify a label when no -p flag is given.brian2001-07-312-27/+54
| | | | | | Start new sentences on new lines in pppoed.8. MFC after: 1 week
* Use sigaction() without SA_RESTART rather than signal() so that webrian2001-07-311-5/+9
| | | | | | don't block in NgRecvData() after receiving a signal. MFC after: 1 week
* Remove whitespace at EOL.dd2001-07-151-2/+2
|
* Remove an extraneous spacebrian2001-07-111-1/+1
|
* mdoc(7) police: removed HISTORY info from the .Os call.ru2001-07-101-1/+1
|
* mdoc(7) police: remove extraneous .Pp before and/or after .Sh.dd2001-07-091-1/+0
|
* Fix the type of the NULL arg to execl()brian2001-07-091-1/+1
| | | | Idea from: Theo de Raadt <deraadt@openbsd.org>
* mdoc(7) police: sort xrefs.ru2001-07-041-1/+1
|
* Correct cross-references:sobomax2001-06-051-5/+5
| | | | | | | | | | | | ng_bpf.8 --> ng_bpf.4 ng_ether.8 --> ng_ether.4 ng_iface.8 --> ng_iface.4 ng_pppoe.8 --> ng_pppoe.4 ng_socket.8 --> ng_socket.4 ng_tty.8 --> ng_tty.4 ng_{type}.4 --> /dev/null MFC after: 1 week
* - Backout botched attempt to intoduce MANSECT feature.ru2001-03-261-0/+1
| | | | - MAN[1-9] -> MAN.
* Set the default manual section for libexec/ to 8.ru2001-03-201-1/+0
|
* Prepare for mdoc(7)NG.ru2000-12-201-3/+3
|
* Add support for advertising the service we support if thejulian2000-12-131-2/+19
| | | | | | PADI packet contains a NULL service. This is apparently the desired behaviour in this case, though we only allow advertising one service. You could run multiple pppoeds to advertise multiple services.
* Drop out of our main loop due to a signal rather than handling things in thebrian2000-12-041-24/+28
| | | | | | | | | signal handler. Fix a spelling error. Subtley pointed out by: bde Make some stuff static
* mdoc(7) police: use the new features of the Nm macro.ru2000-11-201-1/+1
|
* Format string paranoiakris2000-11-191-1/+1
|
* Go back to populating data_len in struct ngpppoe_init_data.brian2000-11-161-2/+4
|
* Use the new-style ngpppoe_init_data structure.brian2000-10-311-4/+2
| | | | Approved by: archie
* o Load netgraph.ko, ng_ether.ko and ng_pppoe.ko as required (I'm sure thisbrian2000-10-032-13/+66
| | | | | | | | used not to be necessary). o Allow ``-n ngdebug'' to specify something to pass to NgSetDebug() and redirect NgSetDebug() output to syslog(8) in daemon() mode. o Xref ng_ether(8) and NgSetDebug(4). o Correct the type of the response passed to NgRecvData.
* Add a ``-P pidfile'' optionbrian1999-11-232-3/+37
|
* pppoed(8) - a server to accept PPPoE connectionsbrian1999-11-213-0/+735
OpenPOWER on IntegriCloud