Commit Graph

143 Commits

Author SHA1 Message Date
wiz ff81956eb8 New sentence, new line. 2003-06-27 19:09:02 +00:00
wiz d43e332f1e setup -> set up. 2003-05-14 12:11:03 +00:00
martin 6d77f1d081 Add some error handling for an ioctl - the old code could loop tightly if
the peer closed a socket unexpectedly.
This addresses one of the issues Frank Kardel patched (differently) in
PR kern/21448, after clarification from Frank via private mail.
2003-05-13 07:07:37 +00:00
martin 59b588f4a2 The FIONREAD ioctl() expects an int parameter.
Noticed by Frank Kardel in PR 21448.
2003-05-08 08:35:40 +00:00
martin a9c8af8af0 Passing the address of a timeval.tv_sec to localtime() is wrong on ports
where time_t != long.
From Frank Kardel in PR 21448.
2003-05-08 08:32:39 +00:00
wiz 38ae31a7c0 Fix device names, from Sergey Svishchev in PR 21485. 2003-05-07 08:01:08 +00:00
thorpej b393c94e79 Shuffle a bit to allow some compilers to optimize symbol references
more effectively.

From Ian Lance Taylor.
2003-05-02 04:29:03 +00:00
wiz 1b8a3850d5 A-Law -> A-law. 2003-04-16 12:53:08 +00:00
martin 03b03281c7 Fix buffer overrun noticed by Markus Dolze on the freebsd-isdn mailing
list.
2003-04-06 21:07:09 +00:00
wiz 68caa698b2 Respect the law: Use A-law and mu-law as spellings as far as easily possible.
Inspired by Igor Sobrado in PR 19680.
2003-04-06 18:20:07 +00:00
wiz 990562bfef .Nm does not need a dummy argument ("") before punctuation or
for correct formatting of the SYNOPSIS any longer.
2003-02-25 10:34:36 +00:00
wiz b517ab4402 .Nm still needs "". 2003-02-23 23:40:47 +00:00
wiz 45ad5c9584 successful with only one l. 2003-01-06 12:46:05 +00:00
thorpej 0f8f1290fe Avoid conflict with reserved identifier "log". 2002-12-06 15:00:14 +00:00
mycroft f90ffa1f0c select() -> poll() 2002-09-20 15:23:06 +00:00
mycroft bead6c7cd4 Use STDIN_FILENO/STDOUT_FILENO as appropriate. 2002-09-20 15:23:05 +00:00
mycroft 1ae4d43ce6 select() -> poll() 2002-09-20 15:15:49 +00:00
pooka 87a8e425d5 make usrdevicenames match reality better
from Ilpo Ruotsalainen
2002-09-13 14:29:15 +00:00
wiz fbbf252d3c g711conv has been obsoleted in March (use pkgsrc/audio/sox).
Remove reference to it from SEE ALSO.
2002-07-29 01:08:29 +00:00
wiz bdd6e709c2 i4btel -> isdntel. 2002-07-29 01:05:37 +00:00
wiz 1e24ad3422 Update some man page references (i4b -> isdn rename). 2002-07-29 01:05:21 +00:00
wiz 3e4ae32f21 Uppercase ISDN and some unrelated fixes to words ispell didn't like. 2002-07-29 00:54:44 +00:00
wiz 9e20e355d7 Fix Xref from i4bipr to irip. 2002-06-13 09:15:39 +00:00
lukem 06de426449 SIMPLEQ rototill:
- implement SIMPLEQ_REMOVE(head, elm, type, field).  whilst it's O(n),
  this mirrors the functionality of SLIST_REMOVE() (the other
  singly-linked list type) and FreeBSD's STAILQ_REMOVE()
- remove the unnecessary elm arg from SIMPLEQ_REMOVE_HEAD().
  this mirrors the functionality of SLIST_REMOVE_HEAD() (the other
  singly-linked list type) and FreeBSD's STAILQ_REMOVE_HEAD()
- remove notes about SIMPLEQ not supporting arbitrary element removal
- use SIMPLEQ_FOREACH() instead of home-grown for loops
- use SIMPLEQ_EMPTY() appropriately
- use SIMPLEQ_*() instead of accessing sqh_first,sqh_last,sqe_next directly
- reorder manual page; be consistent about how the types are listed
- other minor cleanups
2002-06-01 23:50:52 +00:00
drochner a6d922db91 pass correct usedevicename to telephony record/answer scripts 2002-04-17 15:27:15 +00:00
drochner 1b7bad835c fix the check for invalid usrdevicename 2002-04-17 15:26:13 +00:00
drochner e4a8393a6b initialize a global pointer before re-reading the config file,
otherwise we'd take free()d memory as configuration data
2002-04-16 17:07:58 +00:00
martin 573dfcd430 Fix copyright notice, sprinkle some $NetBSD$. 2002-04-14 11:41:42 +00:00
wiz b9337deef4 ispell, and grammar fixes. 2002-04-11 12:34:31 +00:00
martin 81bc5473a1 Fix a stupid bug when setting authentication for multiple PPP interfaces.
Add some magic to UP/DOWN interface using ISDN on startup/exit and a
configuration entry (autoupdown=yes/no) to prevent this.
2002-04-10 23:35:07 +00:00
martin 1ec36d3e93 Allow configuration entries that don't hardcode a specific BRI.
Fixes PR 15919 by Matthias Scheler.
2002-04-05 15:26:59 +00:00
martin ac4b5b6e98 Initialize the D-channel protocol for cards attaching new.
If the kernel passes number type/plan for incoming calls, log the type
(e.g. "national" or "international").
2002-03-30 07:12:41 +00:00
martin ae7fd2a68d Make isdnd deal with attaching/detaching controllers and non-continous
BRI identifiers. Remove arbitrary, hardcoded limits.
2002-03-27 13:46:34 +00:00
martin 6a2e4de618 Don't use hardcoded card type/driver type constants - those have been
removed.
2002-03-24 20:37:45 +00:00
skrll da540a7bd6 Fix typo that caused my ISDN setup to fail. Basically, the connection was
being dropped immediately as the ppp-send-auth setting in isdn.rc was
ignored.
2002-03-20 11:39:49 +00:00
martin e8921b2f97 Fix typo in the local sockets permission mask.
Noted by Matthias Drochner.
2002-03-18 22:49:57 +00:00
martin 3c37541fd6 Remove hardcoded driver identifiers.
Query the kernel for supported application drivers instead.
2002-03-17 20:57:24 +00:00
martin ccb433029a Adapt to call-ID based accounting messages. 2002-03-17 11:09:16 +00:00
martin 093f5dbc55 Rename ISDN devices, per discussion on tech-kern. The network devices
become ippp (ISDN ppp) and irip (ISDN raw IP). The character device now
are called: /dev/isdn (isdnd <-> kernel communication), /dev/isdnctl (dialing
and other control), /dev/isdntrc* (tracing), /dev/isdnbchan* (raw B channel
access, i.e. for user land PPP) and /dev/isdntel* (telephone devices, i.e.
for answering machines).
2002-03-16 17:03:28 +00:00
martti c28dc34f7b Removed g711conv 2002-03-06 08:06:40 +00:00
martin c212a52a1e This tool is ~never used in reality.
There are far better alternatives in pkgsrc, for example audio/sox.
2002-03-05 22:36:58 +00:00
wiz 10d6eb080d Drop duplicate .Pp. 2002-03-05 15:09:26 +00:00
ross 2a76afae02 Generate <>& symbolically. I'm avoiding .../dist/... directories for now. 2002-02-08 01:36:18 +00:00
ross 8bd7cb6a69 Edit -mdoc usage.
* There is no -indent option to .Bd or .Bl, although you would
  never know that from its frequent use in this tree. There is a
  "-offset indent" combination that makes sense, and you can certainly
  say "-width indent".

* Also, you can't markup the -width option argument, tho you CAN
  use a callable macro. So "-width Ar filename" doesn't make sense,
  but either "-width Ar" or "-width filename" does, as might something
  like "-width xxfilename" for a little extra space.

* There are a lot of needlessly complex hanging tag macros in man4 used
  to create simple item lists. Those should be simplified one of these
  days before someone copies and edits yet another man4 page.
2002-02-07 03:15:06 +00:00
drochner b62fa6e610 remove unwanted shadowing of variables 2002-02-04 16:48:44 +00:00
drochner 34d5e5eed3 .OBJDIR fix for "test" target 2002-02-04 16:44:06 +00:00
martin 977cd3d18e Fix leftover from ioctl generalization, causing crashes by checking
the first character of a NULL pointer to detect zero length strings.

Do not set PPP authentication multiple times while parsing the config
file, just do it once later.
2002-01-26 19:31:20 +00:00
wiz 6e1dd286e7 Drop unhelpful BUGS section and a trailing empty line. 2002-01-19 03:19:42 +00:00
wiz 5a14269d52 Sort sections. 2002-01-19 03:19:21 +00:00
wiz f931748857 Drop unhelpful BUGS section. 2002-01-19 03:18:52 +00:00
wiz ecff1ade60 Drop some unnecessary empty lines, improve markup in some places. 2002-01-19 03:18:35 +00:00
wiz b86bccf480 Drop some unnecessary empty lines. 2002-01-19 03:17:42 +00:00
wiz ea5e7da234 Drop a trailing empty line. 2002-01-19 03:17:08 +00:00
wiz 45c833365a Drop some unnecessary .Pp and an unnecessary section, and replace an empty
line with .Pp.
2002-01-19 03:16:41 +00:00
wiz 9afed566e5 Sort sections. 2002-01-19 03:15:44 +00:00
martin 4ec800ca5a Adapt to new if_sppp.h ioctls.
Remove limits on names and password length.
2002-01-04 12:24:33 +00:00
thorpej 82f66ec4a0 Add -I${.CUDRIR} to CPPFLAGS. 2001-12-31 19:41:37 +00:00
martin b7af7aeccd Move /usr/sbin/pppoectl to /sbin/pppoectl, so we can call it from
ifconfig.pppoe* files.

Rename the source directory and files to match the primary purpose
of this utility - probably noone is using this for ISDN now anymore,
as isdnd has simpler ways to acomplish the same.
2001-12-10 17:22:09 +00:00
wiz b4371d47f5 Replace some misuses of "then" with "than". 2001-12-04 17:56:30 +00:00
perry fcd452088f Remove a spurious slash and clean up formatting. 2001-11-19 04:11:18 +00:00
tv f526c532b2 "YFLAGS=-d" causes inconsistent parallelism behavior. Instead, use the
NetBSD standard YHEADER and #include "rc_parse.h".
2001-10-19 22:57:53 +00:00
wiz 456dff6cb8 Spell 'occurred' with two 'r's. 2001-09-16 16:34:23 +00:00
wiz c1434a021e Don't mention /usr/local/lib/isdn, since it's not used (anymore?). 2001-09-03 01:22:54 +00:00
wiz c03a48d64f withough -> without 2001-06-13 10:45:57 +00:00
wiz bca0e833cf Uppercase .Dt argument. 2001-06-05 11:38:42 +00:00
martin a1ff386294 Add an example for PPPoE configuration. 2001-04-29 11:41:02 +00:00
wiz b0cdcfe61b Add RCS Id, formatting improvements, and typo fixes. 2001-04-29 10:46:02 +00:00
martin d53224619c Use this to configure pppoe interfaces as well.
This feed more oil to itojun's suggestion to move some of this into
ifconfig and deal more generically with others.
2001-04-29 10:30:41 +00:00
martin 361a81bda9 Don't duplicate essential #defines from if_sppp.h, instead include
that properly.
2001-04-09 21:18:00 +00:00
wiz 0a6334cf3a Update paragraphs for isdntxdel-incoming and isdntxdel-outgoing
(not using timeout()).
2001-04-09 19:34:16 +00:00
wiz b94f4637c4 AUTHOR -> AUTHORS 2001-04-09 13:46:36 +00:00
wiz 7058e975ea Add RCS Id, AUTHOR -> AUTHORS, fix date and some whitespaces. 2001-04-09 13:45:15 +00:00
wiz 9803ac91bf Add RCS Id, sort SEE ALSO, whitespace fixes, slight markup improvements. 2001-04-09 13:44:21 +00:00
wiz 81c62ebf99 Add RCS Id, sort SEE ALSO, whitespace fixes; AUTHOR -> AUTHORS,
and slight markup improvements.
2001-04-09 13:43:47 +00:00
wiz d27920b6f6 Add RCS Id, whitespace fixes, AUTHOR -> AUTHORS. 2001-04-09 13:42:48 +00:00
wiz 99e152842c Add RCS Id, sort SEE ALSO, AUTHOR -> AUTHORS, whitespace fixes.
Also, comment out mentions of rptrio, which we don't support right now.
2001-04-09 13:41:16 +00:00
wiz c399ab10a8 Add RCS Id, whitespace fixes, sort SEE ALSO, AUTHOR -> AUTHORS. 2001-04-09 13:38:50 +00:00
wiz 4a12cbfc0c Add RCS Id, whitespace fixes, AUTHOR -> AUTHORS. 2001-04-09 13:37:58 +00:00
wiz 2b29f989ed Add RCS Id, whitespace and markup improvements. 2001-04-09 13:23:42 +00:00
wiz f1c81e4a91 Add RCS Id, AUTHOR -> AUTHORS, and whitespace improvements. 2001-04-09 13:22:21 +00:00
wiz 156ad75475 Add RCS Id, fix date, and some whitespace improvements. 2001-04-09 13:21:45 +00:00
wiz 83c73426c9 Add RCS Id, correct section (1, not 8, though perhaps it should be in 8),
and xref daic(4). Slight markup improvements.
2001-04-09 13:20:58 +00:00
wiz c496d212b3 Improve markup a bit. 2001-04-04 11:18:07 +00:00
martin f3c869b6c5 Oops: there was a userland visible change in the recent layer 1 <-> upper
layers change inside the kernel, a struct exported in (diagnostic) trace
data has changed.
Adopt the trace utility to cope with this.
2001-03-24 18:08:11 +00:00
cgd bcc8ec9959 include stdlib.h for prototypes (typically for exit()). 2001-01-16 02:44:43 +00:00
martin 7d77421729 Comparing ch != -1 when ch is of type char is no good idea.
Fix this for ports where char is unsigned by making ch an int.

Pointed out by Matthias Pfaller.
2001-01-15 09:26:15 +00:00
lukem cb4cea7120 don't use LOG_CONS 2001-01-11 02:44:03 +00:00
thorpej e153fd2620 CPPFLAGS is for CPP flags, not COPTS. 2001-01-10 18:11:05 +00:00
martin 6f9aebaaf0 Cleanup startup error message handling, copy fatal messages to stderr
too when not (yet) running in background.
Avoid calling endwin() when curses has not been initialized. Fixes a core
dump reported by Bernd Ernesti when running full-screen mode with
configuration file errors.
2001-01-08 07:18:54 +00:00
martin a6df9f9ad3 Fix coyp&pasto bug when parsing the ppp-expect-password option, reported by
Thomas Moestl against the FreeBSD version.
2001-01-07 21:01:03 +00:00
martin d6af3290ae Remove accidently imported generated y.tab.h file and make sure it's
removed by "make cleandir".
2001-01-07 09:03:21 +00:00
martin 9093099039 Fix configuration of isp* (ISDN ppp) devices via isdnd.rc,
patch from Christoph Badura.
2001-01-07 09:00:49 +00:00
martin fbf08005d7 Import of essential ISDN4BSD userland utilities and their documentation.
The left out parts (which have not been installed by ISDN4BSD on NetBSD
anyway), may be added as pkgs later (if demand exists).
2001-01-06 13:00:10 +00:00