Commit Graph

41 Commits

Author SHA1 Message Date
ru
1f12ffeb1d Expand contractions. 2005-02-13 23:45:54 +00:00
ru
263bd944be Sync program's usage() with manpage's SYNOPSIS. 2005-02-09 20:36:12 +00:00
ru
16a1b958bd Let bsd.prog.mk set SRCS and MAN to their default values. 2005-01-28 16:08:11 +00:00
ru
a39443efdf Sort sections. 2005-01-18 09:29:40 +00:00
harti
e62a6014bb Replace all uses of the old netgraph constants NG_*LEN by the new
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.
2003-11-15 15:26:35 +00:00
charnier
bb97d03ce3 The .Nm utility 2002-07-06 19:19:48 +00:00
brian
d28af03524 Understand the new NGM_PPPOE_SESSIONID message and set SESSIONID
in the environment to it's value.

Approved by:	archie (after a very cursory glance)
2002-05-14 12:33:40 +00:00
des
c91c856b3e Usage style sweep: spell "usage" with a small 'u'.
Also change one case of blatant __progname abuse (several more remain)
This commit does not touch anything in src/{contrib,crypto,gnu}/.
2002-04-22 13:44:47 +00:00
brian
64153c1e49 Handle NGM_PPPOE_ACNAME messages.
Submitted by:	Andre Albsmeier <andre@albsmeier.net>
Approved by:	julian
2002-02-20 15:52:20 +00:00
imp
7bcb9b759d o __P removal
o use Ansi-style function definitions
2002-02-17 19:09:20 +00:00
kris
eb02f726dd Lock down with WFORMAT?=1, with overrides in the subdirectories which
are not yet warning-clean.  Tested on i386 and alpha.
2002-02-04 02:33:51 +00:00
kris
1069d34d24 Prototype a function as __printflike() to avoid a FORMAT_AUDIT warning.
MFC after:	1 week
2002-02-04 01:34:52 +00:00
ru
8539e61175 mdoc(7) police: minor spelling, markup and style fixes. 2001-11-22 16:08:45 +00:00
brian
edbf121743 Don't leave dodgy looking spaces in HISMACADDR 2001-11-22 04:38:02 +00:00
brian
9e0adbb2c9 Mention that HISMACADDR is set in the environment of child processes 2001-11-22 01:49:41 +00:00
brian
3d19e0574b Set HISMACADDR in the environment before envoking ppp.
MFC after:	1 week
2001-11-21 03:29:43 +00:00
brian
c8d6bd8612 Put a parenthesis in the right place (DUH!).
This fixes the apparent immediate client timeout problem.
2001-08-25 23:41:37 +00:00
brian
ed40288eab Understand that a return value of 0 from NgRecvMsg() means that the
socket was closed.

This prevents erroneous ``Unexpected netgraph version'' from turning
up in the log.
2001-08-24 14:52:38 +00:00
ru
09d142dfd5 mdoc(7) police:
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.
2001-08-07 15:48:51 +00:00
brian
fcbfae1f9c Don't use SA_RESETHAND here. We gain nothing.
Suggested by: bde
2001-07-31 15:29:50 +00:00
brian
f5a6c1898b Add a -l flag used to specify a label when no -p flag is given.
Start new sentences on new lines in pppoed.8.

MFC after: 1 week
2001-07-31 11:45:53 +00:00
brian
6531445dc6 Use sigaction() without SA_RESTART rather than signal() so that we
don't block in NgRecvData() after receiving a signal.

MFC after: 1 week
2001-07-31 09:53:20 +00:00
dd
c49a4e6620 Remove whitespace at EOL. 2001-07-15 07:53:42 +00:00
brian
0b86571b25 Remove an extraneous space 2001-07-11 23:02:07 +00:00
ru
4bbf421d15 mdoc(7) police: removed HISTORY info from the .Os call. 2001-07-10 10:49:54 +00:00
dd
978810079e mdoc(7) police: remove extraneous .Pp before and/or after .Sh. 2001-07-09 09:54:33 +00:00
brian
34ad3e29c4 Fix the type of the NULL arg to execl()
Idea from: Theo de Raadt <deraadt@openbsd.org>
2001-07-09 09:24:06 +00:00
ru
366c1d8585 mdoc(7) police: sort xrefs. 2001-07-04 13:30:53 +00:00
sobomax
96f3035fa9 Correct cross-references:
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
2001-06-05 12:40:03 +00:00
ru
1ef340bf02 - Backout botched attempt to intoduce MANSECT feature.
- MAN[1-9] -> MAN.
2001-03-26 14:22:12 +00:00
ru
0b5a623dc6 Set the default manual section for libexec/ to 8. 2001-03-20 18:10:13 +00:00
ru
372556ed3b Prepare for mdoc(7)NG. 2000-12-20 13:26:01 +00:00
julian
741a0eab80 Add support for advertising the service we support if the
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.
2000-12-13 00:27:33 +00:00
brian
bedaeea250 Drop out of our main loop due to a signal rather than handling things in the
signal handler.
Fix a spelling error.

Subtley pointed out by: bde

Make some stuff static
2000-12-04 22:13:30 +00:00
ru
d13355bd1f mdoc(7) police: use the new features of the Nm macro. 2000-11-20 14:42:24 +00:00
kris
30a6b2cb25 Format string paranoia 2000-11-19 13:30:36 +00:00
brian
9db1810977 Go back to populating data_len in struct ngpppoe_init_data. 2000-11-16 23:15:42 +00:00
brian
54fe531ed1 Use the new-style ngpppoe_init_data structure.
Approved by: archie
2000-10-31 02:46:12 +00:00
brian
fd85eced64 o Load netgraph.ko, ng_ether.ko and ng_pppoe.ko as required (I'm sure this
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.
2000-10-03 20:41:00 +00:00
brian
5c589c8862 Add a ``-P pidfile'' option 1999-11-23 00:21:20 +00:00
brian
a31981f1e9 pppoed(8) - a server to accept PPPoE connections 1999-11-21 23:39:14 +00:00