Brian Somers
be8bbe8809
Don't setuid() 'till we've called ID0setproctitle()
1999-11-23 00:14:50 +00:00
Brian Somers
31dd45c4e0
Call MkSockNode() as uid 0
...
Forgotten by: julian
1999-11-21 23:27:23 +00:00
Brian Somers
dc4511d5eb
Don't compile NETGRAPH out of ppp for the release crunch
1999-11-20 10:55:27 +00:00
Brian Somers
83569b351c
Update the time delta of the first item in TimerList before
...
inserting a new item. Without this, it's possible to
mis-insert quite badly... but only by as much as the load of
the first item, which is almost always 1 second.
Initialise the timerservice with `restart' set if we're inserting
at the start of the list.
1999-11-19 23:21:13 +00:00
Brian Somers
cf0a39401d
Fix ``set proctitle'' by using setproctitle().
1999-11-17 21:12:35 +00:00
Brian Somers
02cfb3ba65
Remove some extraneous ifdefs, and don't try to put the socket in
...
O_NONBLOCK. The select() is the best best as I don't want to muck
about with the send/receive thresholds.
1999-11-16 21:57:48 +00:00
Brian Somers
fdb4bb1b89
Use modfind() to check if a kld is already loaded.
...
Submitted mostly by: green
1999-11-16 21:57:34 +00:00
Brian Somers
e6ee5b3933
Don't insist on 4 digit umasks in ``set server''.
...
Pointed out by: joerg
1999-11-13 16:18:40 +00:00
Brian Somers
9b1b0fc0e0
Make the meaning of the provider part of the PPPoE device spec clearer.
1999-11-13 16:18:27 +00:00
Brian Somers
0c38fb0340
Oops, netgraph.o -> ether.o for the RELEASE build.
1999-11-11 02:25:17 +00:00
Brian Somers
772d2e0939
If dev->connected is already set to CARRIER_OK in ether_AwaitCarrier,
...
don't go and set it to CARRIER_LOST !
1999-11-09 23:30:59 +00:00
Brian Somers
da8b70349b
Don't recurse into datalink_UpdateSet() after
...
doing a HangupDone(). The HangupDone() may fuel
bundle_CleanDatalinks(), and if so, the bogus
UpdateSet() ends up select()ing on a closed
descriptor.....
Change the main `do/while' loop to a `for' loop so
that any `continue's do the bundle_CleanDatalinks()
& bundle_IsDead() bit.
1999-11-09 23:21:47 +00:00
Brian Somers
9d06928d0e
Correct the ``-unix X'' parsing (last time I only corrected
...
``-unitX''.
Pointed out twice by: Gert-Jan Vons <gert-jan@bigfoot.com>
1999-11-09 21:59:09 +00:00
Brian Somers
4012527343
Be a bit smarter when identifying a netgraph node
...
(don't dereference NULL).
1999-11-09 19:05:48 +00:00
Brian Somers
0d3751e7bd
Don't treat -unit as a mode flag when counting mode flags.
...
Submitted by: Gert-Jan Vons <gert-jan@bigfoot.com>
1999-11-09 00:32:21 +00:00
Brian Somers
0f9c420717
Add an empty netgraph.o when building a release to keep the
...
crunch stuff happy.
Breakage spotted by: phk
1999-11-09 00:16:30 +00:00
Brian Somers
6b8b6bef1a
Don't zero-pad netgraph node ids
...
Recommended by: julian
1999-11-07 09:03:45 +00:00
Brian Somers
87c3786e7f
Support PPPoE
...
Help (lots) from: julian, archie
Facilities from: ahebert@pubnix.net
1999-11-06 22:50:59 +00:00
Brian Somers
c116e0c0aa
Introduce ``set logout''; another chat script. This is in preparation
...
for the abstraction of ``set dial'' and ``set hangup''.
1999-10-25 13:49:44 +00:00
Brian Somers
bacfb041e0
Don't (unnecessarily) parse wtmp, force ID0logout() to DTRT instead.
1999-10-25 13:31:42 +00:00
Brian Somers
1a80353cd8
Manually create a correct(*) entry in wtmp when logging out a PPPoTCP or
...
PPPoUDP connection.
(*) This is as correct as ftp and uucp wtmp entries are - that is,
multiple concurrent connections will not record enough information
in wtmp to tell last(1) who was logged in for how long.
1999-10-21 21:55:22 +00:00
Brian Somers
f1b965c94b
If we're running ppp -direct over a tcp or udp connection,
...
record the IP number in the `from' slot and not the tty slot.
We put ``ppp'' in the tty slot - in line with what ftp (and
probably others) does.
1999-10-21 01:19:23 +00:00
Brian Somers
1b02dfb47c
Don't go from PHASE_NETWORK to PHASE_ESTABLISH when we want to
...
re-open a device. The fact that we're in NETWORK phase indicates
that there are other links in DATALINK_OPEN and that we don't want
to stop using them.
1999-10-21 00:19:33 +00:00
Brian Somers
c0593e34b7
Add the -unit command line switch for specifying the tun device.
...
Warn about -alias being depricated (but still allow it).
Don't moan twice about failing to open any tun device.
Fix a diagnostic and add the -quiet switch to the usage message.
1999-10-19 15:21:09 +00:00
Brian Somers
53dc037c22
Correct a few diagnostics
1999-10-16 13:28:04 +00:00
Brian Somers
7ca1ffb46f
Don't ntohl() the signature before printing it... it's already
...
been done.
Spotted by: Gert-Jan Vons <gert-jan@bigfoot.com>
1999-10-16 09:18:15 +00:00
Brian Somers
c2e1f0e3d7
When more than one timer is expired at once, allow for the possibility
...
that the first timer ends up doing a timer_Stop() on the second.
When this happens, remove the timer from the pending list so that
we still call any subsequent timers.
This bug has been here for several years, but has only been tickled
recently with my device layering changes.
With enormous thanks for the perseverance of: Ruslan Ermilov <ru@ucb.crimea.ua>
1999-10-15 20:44:34 +00:00
Brian Somers
d4d5d2f881
When we get the last NCP TLD, close all datalinks with CLOSE_STAYDOWN
...
rather than CLOSE_NORMAL.
1999-10-15 20:36:04 +00:00
Brian Somers
1d3a2f02e5
Redefine CRTS_IFLOW and CCTS_OFLOW on the mac.
...
Submitted by: Kazuyoshi Kato <kazk@yyy.or.jp>
1999-10-15 20:30:44 +00:00
Brian Somers
71981dcfc1
When uncompressing VJ-compressed frames, fix the ip_sum directly
...
in struct cstate rather than copying the stored header slot into a
potentially mis-aligned buffer then trying to update the ip_sum
without causing an exception on non-i386 hardware.
I've never been able to reproduce this problem, but it has been
reported by many people... besides, the code is now a bit cleaner.
Testing & patience by: Anthony Solovjoff <asolovjoff@hotmail.com>
1999-10-13 07:49:13 +00:00
Brian Somers
d81ecf9abf
Revert the 1.44 -> 1.45 change. It doesn't work as expected.
1999-10-08 16:09:15 +00:00
Brian Somers
14e34a55c3
Don't go from datalink state opening directly to lcp, go via
...
carrier instead so that we can set up our carrier detect
timer and eventually notice when we lose carrier.
Honour the script.run value when coming out of carrier state.
PR: 14145
1999-10-07 07:32:12 +00:00
Brian Somers
990a543f49
Mention the received/expected magic for dodgy ECHO LQRs.
1999-10-06 23:22:54 +00:00
Brian Somers
d2f5232de3
Bring links down gently when their throughput isn't enough for
...
the ``set autoload'' value. Don't just ``down'' the link.
Don't get stuck in ``ready'' the first time we ``close'' a link.
1999-10-05 05:01:44 +00:00
Brian Somers
28149effa7
Support GRE packets
...
Submitted by: Harry Starr <starr@gccs.com.au>
1999-09-30 07:23:13 +00:00
Brian Somers
ccd587f00f
Support ``set cd off'' to tell ppp not to even look for carrier on the
...
device.
1999-09-26 23:02:18 +00:00
Brian Somers
3c9497b9e0
Typo
...
Submitted by: Alex Nash <nash@mcs.net>
1999-09-24 23:57:22 +00:00
Brian Somers
735ce767c7
Allow ``make -DNOKLDLOAD''
1999-09-22 00:44:45 +00:00
Brian Somers
fc3034ca7d
Do a kldload() if we get ENXIO trying to open /dev/tun0
...
Originally submitted by: green
1999-09-22 00:40:47 +00:00
Brian Somers
b9391689ee
Back out the bogus #ifdef __NetBSD__ #include <signal.h> lines.
...
The original report was due to a mis-installation of the NetBS
header files :-/
Submitted by: Kazuyoshi Kato <kazk@yyy.or.jp>
1999-09-21 19:37:00 +00:00
Brian Somers
3927c47b04
Fix the `lt'' comparison in
`set filter''
...
PR: 13819
Submitted by: Dean M. Phillips <dphill@inav.net>
1999-09-21 01:02:05 +00:00
Alexey Zelkin
c6d6e7726f
Correct spelling : ascii -> ASCII
...
PR: docs/13702
Submitted by: Stephen J. Roznowski <sjr@home.com>
Reviewed by: mpp
1999-09-20 09:15:23 +00:00
Brian Somers
7e795ebe38
NetBSD has moved ``extern int errno;'' to signal.h :-/
...
Submitted by: Kazuyoshi Kato <kazk@yyy.or.jp>
1999-09-20 07:36:46 +00:00
Brian Somers
a77cab77c5
NetBSD requires net/if.h for the IFF_* defines (as well as OpenBSD) !
1999-09-20 07:18:50 +00:00
Brian Somers
4d9d17fe7d
Correct the return from FilterCheck for fragments
...
PR: 13771
Submitted by: Dean M. Phillips <dphill@inav.net>
1999-09-16 18:47:59 +00:00
Brian Somers
f02c2029cf
Cosmetic:
...
alias_cmd -> nat_cmd after a repo-copy
1999-09-08 07:34:52 +00:00
Brian Somers
55b9d469e8
We don't need a queue for *CP data - these are IP-only queues.
1999-09-07 14:34:55 +00:00
Brian Somers
da47788649
Introduce a forth IP packet queue. Urgent packets with
...
ip_tos == IPTOS_LOWDELAY now get precidence over urgent
packets with ip_tos != IPTOS_LOWDELAY and non-urgent packets
with ip_tos == IPTOS_LOWDELAY.
Enhance the ``set urgent'' syntax to allow for urgent UDP
packets as well as urgent TCP packets.
1999-09-07 07:51:11 +00:00
Brian Somers
19c566804c
Make the ``Problem with IP header length'' error a bit more verbose
1999-09-06 18:20:26 +00:00
Brian Somers
f914f3c09c
$FreeBSD$ -> __DATE__
...
This is probably more appropriate that $Date$ anyway
1999-09-06 18:11:50 +00:00