330805 |
12-Mar-2018 |
eugen |
MFC r329105: ppp(8): fix code producing debugging logs
ppp(8): fix code producing debugging logs
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: mav (mentor) |
316187 |
30-Mar-2017 |
sevan |
MFC 315964 ftp.microsoft.com is dead and the document was not archived, point to the full protocol spec document instead. Fix spelling mistake flagged by igor. Rephrase bad sentence flagged by igor.
Approved by: bcr (mentor) Differential Revision: https://reviews.freebsd.org/D10111 |
300470 |
23-May-2016 |
truckman |
MFC r299991
Don't walk off the end of the array when proto isn't explicitly listed above. Instead update the catch-all "Others" bucket.
Reported by: Coverity CID: 1007571, 1007572 |
293290 |
07-Jan-2016 |
bdrewery |
MFC r289677:
Fix a ton of speelling errors |
278569 |
11-Feb-2015 |
ngie |
MFC r278182:
r278182:
Conditionalize building radius support into libpam, ppp, etc via MK_RADIUS_SUPPORT
Sponsored by: EMC / Isilon Storage Division |
271075 |
04-Sep-2014 |
neel |
MFC r270289: Change file permissions for some setuid executables so they are "o+r". 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. |
264299 |
09-Apr-2014 |
glebius |
Merge r263203: garbage collect long time obsoleted (or never used) stuff from routing API. |
262287 |
21-Feb-2014 |
brueffer |
MFC: r261900
In chat_UpdateSet(), initialize the input buffer to prevent stale data from previous timed out commands.
PR: 186530 Submitted by: Alexander Zagrebin <alexz at visp.ru> Reviewed by: brian |
256281 |
10-Oct-2013 |
gjb |
Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.
Approved by: re (implicit) Sponsored by: The FreeBSD Foundation
|
252826 |
05-Jul-2013 |
rmh |
Remove ancient code for FreeBSD 2.x compatibility.
Reviewed by: brian, freebsd-net
|
251279 |
03-Jun-2013 |
brian |
Move ppp.8.m4 back to ppp.8 and de-ifdef it.
Requested by: joel
MFC after: 1 week
|
249582 |
17-Apr-2013 |
gabor |
- Correct mispellings of the word occurrence
Submitted by: Christoph Mallon <christoph.mallon@gmx.de> (via private mail)
|
246143 |
31-Jan-2013 |
glebius |
Retire struct sockaddr_inarp.
Since ARP and routing are separated, "proxy only" entries don't have any meaning, thus we don't need additional field in sockaddr to pass SIN_PROXY flag.
New kernel is binary compatible with old tools, since sizes of sockaddr_inarp and sockaddr_in match, and sa_family are filled with same value.
The structure declaration is left for compatibility with third party software, but in tree code no longer use it.
Reviewed by: ru, andre, net@
|
244040 |
08-Dec-2012 |
eadler |
A number of places in the source tree still reference cuad.* after sio(4) was deprecated by uart(4).
s/cuad/cuau/g/
PR: docs/171533 Reviewed by: imp Approved by: cperciva (implicit) MFC after: 3 weeks
|
241844 |
22-Oct-2012 |
eadler |
remove duplicate semicolons where possible.
Approved by: cperciva MFC after: 1 week
|
241496 |
12-Oct-2012 |
n_hibma |
Some 3G modems return the wrong signature in echo packets and make it impossible to use LQR/ECHO. They return want_magic instead.
With this change it is now possible to use
enable lqr set lqrperiod 5 enable echo set echoperiod 5
in your ppp.conf file.
MFC after: 3 days
|
240235 |
08-Sep-2012 |
joel |
mdoc fixes.
|
235822 |
23-May-2012 |
delphij |
Fix build:
- Use %ll instead of %q for explicit long long casts; - Use %j instead of %q in XFS and cast to intmax_t.
Tested with: make universe
|
231994 |
22-Feb-2012 |
kevlo |
Handle NULL return from crypt(3). Mostly from DragonFly
|
230349 |
20-Jan-2012 |
eadler |
Fix warning when compiling with gcc46: error: variable 'len' set but not used
Approved by: dim, cperciva (mentor, blanket for pre-mentorship already-approved commits) MFC after: 3 days
|
230348 |
20-Jan-2012 |
eadler |
Fix warning when compiling with gcc46: error: variable 'extra_async_bytes' set but not used
Approved by: dim, cperciva (mentor, blanket for pre-mentorship already-approved commits) MFC After: 3 days
|
230347 |
20-Jan-2012 |
eadler |
Fix warning when compiling with gcc46: error: variable 'addrs' set but not used
Approved by: dim Approved by: cperciva (mentor, blanket for pre-mentorship already-approved commits) MFC After: 3 days
|
228990 |
30-Dec-2011 |
uqs |
Spelling fixes for usr.sbin/
|
223492 |
24-Jun-2011 |
kevlo |
Remove duplicated header files
|
218397 |
07-Feb-2011 |
brian |
Add "iface name" and "iface description" commands.
PR: 151400 Submitted by: Aragon Gouveia - aragon at phat dot za dot net with minor fixes MFC after: 3 weeks
|
214011 |
18-Oct-2010 |
glebius |
Log if fopen() fails.
Reviewed by: brian
|
212829 |
18-Sep-2010 |
n_hibma |
Bugfix: Reset the packet counters at the same time as the byte counts.
Reviewed by: brian MFC after: 3 weeks
|
210936 |
06-Aug-2010 |
jhb |
Ethernet vlan(4) interfaces have valid Ethernet link layer addresses but use a different interface type (IFT_L2VLAN vs IFT_ETHER). Treat IFT_L2VLAN interfaces like IFT_ETHER interfaces when handling link layer addresses.
Reviewed by: syrinx (bsnmpd) MFC after: 1 week
|
205272 |
18-Mar-2010 |
qingli |
Need to set the proper flag bit when inserting ARP entries into the kernel.
MFC after: 3 days
|
202440 |
16-Jan-2010 |
antoine |
Unbreak world WITHOUT_NETGRAPH.
PR: 137487 Submitted by: bf (previous version) No objections: net@ MFC after: 2 weeks
|
202192 |
13-Jan-2010 |
ed |
Port ppp(8) to utmpx.
A nice thing about utmpx is that it makes it very easy to log sessions that don't use TTYs. This is because the file is not indexed by TTY slots anymore.
Silence from: brian
|
201117 |
28-Dec-2009 |
trasz |
Don't refer to pppd(8).
|
196530 |
25-Aug-2009 |
brian |
Document that ppp handles pipe(2) descriptors specially in -direct mode.
MFC after: 3 days
|
196514 |
24-Aug-2009 |
brian |
When ``ppp -direct'' is invoked by a program that uses pipe(2) to create stdin and stdout, don't blindly try to use stdin as a bi-directional channel. Instead, detect the pipe and set up a special exec handler that indirects write() calls through stdout.
This fixes the problem where ``set device "!ssh -e none host ppp -direct label"'' no longer works with an openssh-5.2 server side as that version of openssh ignores the USE_PIPES config setting and *always* uses pipes (rather than socketpair) for stdin/stdout channels.
MFC after: 3 days
|
196513 |
24-Aug-2009 |
brian |
When realloc()ing device memory for transfer to another ppp process, don't continue to use the realloc()d pointer - it might have changed!
Remove some stray diagnostics while I'm here.
MFC after: 3 days
|
195772 |
19-Jul-2009 |
brian |
Don't get stuck in an infinite loop comparing (short++ <= maxshort)
PR: 136893 Submitted by: Aragon Gouveia - aragon at phat dot za dot net (mostly) Approved by: re (kib) MFC after: 3 weeks
|
195375 |
05-Jul-2009 |
brian |
Add a missing phrase.
Submitted by: Jason McIntyre jmc at kerhand dot co dot uk Approved by: re (kib) Obtained from: OpenBSD MFC after: 3 weeks
|
192798 |
26-May-2009 |
brian |
Fix a race that can stall the timer when we remove a timer that has another timer with a <0.05 second delta next to it.
This is done by avoiding the possibility of updating the first residual time delta in the timer list to zero.
PR: 102747 Submitted by: Sergey Zaharchenko - doublef-ctm at yandex dot ru MFC after: 3 weeks
|
191316 |
20-Apr-2009 |
bz |
Conditionally add the interface name and address if available so that a ppp running in `receiver' (server) mode can properly update routes, for example to update the MTU.
Submitted by: loos.br gmail.com (Luiz Otavio O Souza) PR: bin/130159 PR: kern/125079, kern/122068, bin/126892 MFC after: 3 days
|
191306 |
20-Apr-2009 |
bz |
While we currently still seem to have a gateway address, for future stability, check for gw to be set before adding the flag and the address to the routing message.
r186308, backed out in r191305, already tried to do that, and in addition ignore AF_LINK types of gateway addresses to work around a problem that r167797 had introduced on the kernel side always setting RTF_GATEWAY if a gateway address was passed into the kernel. The proper solution for this is still under discussion so I am hesitant to re-add the special AF_LINK treatment for now.
MFC after: 3 days
|
191305 |
20-Apr-2009 |
bz |
Back out r186308:
in case of AF_LINK, which the kernel still returns for an RTAX_GATEWAY as an empty sockaddr_dl in the classic tun<n> case. Copying the address into the message payload, but not the RTA_GATEWAY flag results in rt_xaddrs() in the kernel tripping over that and parsing the next attribute set with a flag, i.e. RTA_NETMASK, with the gateway address, resulting in bogus route entry.
MFC after: 3 days
|
191006 |
13-Apr-2009 |
bz |
In case the peer address was already configured on the interface we were not properly handling proxy arp. Make sure we (try to) add the proxy arp entry/entries in this case as well.
PR: bin/131250 Submitted by: loos.br gmail.com (Luiz Otavio O Souza) MFC after: 3 days
|
186308 |
19-Dec-2008 |
qingli |
The ppp application relies on the if_tun interface to properly install a p2p host route between the end points. The ppp module upates this router based on user configuration later on. The rt_Update() seems to always set the RTF_GATEWAY flag, which is broken.
|
186119 |
15-Dec-2008 |
qingli |
This main goals of this project are: 1. separating L2 tables (ARP, NDP) from the L3 routing tables 2. removing as much locking dependencies among these layers as possible to allow for some parallelism in the search operations 3. simplify the logic in the routing code,
The most notable end result is the obsolescent of the route cloning (RTF_CLONING) concept, which translated into code reduction in both IPv4 ARP and IPv6 NDP related modules, and size reduction in struct rtentry{}. The change in design obsoletes the semantics of RTF_CLONING, RTF_WASCLONE and RTF_LLINFO routing flags. The userland applications such as "arp" and "ndp" have been modified to reflect those changes. The output from "netstat -r" shows only the routing entries.
Quite a few developers have contributed to this project in the past: Glebius Smirnoff, Luigi Rizzo, Alessandro Cerri, and Andre Oppermann. And most recently:
- Kip Macy revised the locking code completely, thus completing the last piece of the puzzle, Kip has also been conducting active functional testing - Sam Leffler has helped me improving/refactoring the code, and provided valuable reviews - Julian Elischer setup the perforce tree for me and has helped me maintaining that branch before the svn conversion
|
179568 |
05-Jun-2008 |
ed |
Make ppp use <termios.h>, not <sys/tty.h>.
ppp's physical.c is filled with calls to termios. For some reason, it includes <sys/tty.h>, not <termios.h>. Even though this works with the current version of FreeBSD, we'd better follow the standards.
Approved by: philip (mentor)
|
179315 |
26-May-2008 |
bz |
Remove ISDN4BSD (I4B) from HEAD as it is not MPSAFE and parts relied on the now removed NET_NEEDS_GIANT. Most of I4B has been disconnected from the build since July 2007 in HEAD/RELENG_7.
This is what was removed: - configuration in /etc/isdn - examples - man pages - kernel configuration - sys/i4b (drivers, layers, include files) - user space tools - i4b support from ppp - further documentation
Discussed with: rwatson, re
|
177100 |
12-Mar-2008 |
piso |
Update to the "new" libalias API (and thus fix world breakage).
|
174870 |
22-Dec-2007 |
des |
Revert previous commit and fix OpenPAM issue properly.
|
174845 |
21-Dec-2007 |
kmacy |
Fix/workaround build breakage caused by PAM import
struct pam_conv takes a void * for the appdata_ptr but is being passed a const char * - explicitly cast away the const
|
173710 |
17-Nov-2007 |
jb |
Use uintptr_t to cast a pointer to an integer to avoid compiler warnings on processors where sizeof(void *) > sizeof(int).
|
171272 |
06-Jul-2007 |
bz |
I4B header files are now installed in include/i4b/ and no longer in include/machine/.
Adapt #include paths.
Approved by: re (kensmith)
|
169987 |
25-May-2007 |
brueffer |
Cleanup after previous commit.
|
169986 |
25-May-2007 |
novel |
Add a new option for ppp.conf: rad_port_id. It allows to change the way of what ppp submits to the RADIUS server as NAS-Port-Id. Possible options are: the PID of the process owning the corresponding interface, tun(4) interface number, interface index (as it would get returned by if_nametoindex(3)), or it's possible to keep the default behavior. Check the ppp(8) manual page for details.
PR: bin/112764 Submitted by: novel (myself) Reviewed by: flz Approved by: flz MFC after: 1 month
|
167147 |
01-Mar-2007 |
ume |
Check the return value from rad_cvt_ipv6prefix().
PR: bin/89808 MFC after: 1 week
|
165777 |
05-Jan-2007 |
ticso |
MFp4: struct fsm_opt_hdr needs to be __packed as it is used as an array for handling wire data This is required to get ppp working on arm.
|
162389 |
18-Sep-2006 |
ume |
Listen to a control socket on an IPv4 as well through an IPv4-mapped IPv6 address.
Reported by: Julian H. Stacey <jhs__at__flat.berklix.net> Test by: Julian H. Stacey <jhs__at__flat.berklix.net> MFC after: 1 week
|
162067 |
06-Sep-2006 |
brian |
Remove leading zeros
Suggested by: mdoc police (ru)
|
162063 |
06-Sep-2006 |
brian |
Remove __DATE__ so that compiling the same source produces the same binary (for non-static binaries at least).
|
162062 |
06-Sep-2006 |
brian |
If the peer REJects our MRU request and that request is for a value less than the current MTU, set our mtu to the value requested.
|
156813 |
17-Mar-2006 |
ru |
Reimplementation of world/kernel build options. For details, see:
http://lists.freebsd.org/pipermail/freebsd-current/2006-March/061725.html
The src.conf(5) manpage is to follow in a few days.
Brought to you by: imp, jhb, kris, phk, ru (all bugs are mine)
|
150463 |
22-Sep-2005 |
brian |
Fix a typo
Obtained from: OpenBSD
|
150029 |
12-Sep-2005 |
brian |
Remove this file as it's mostly out of date. Up-to-date info such as the program's origin is already in the man page.
Update requested by: Xavier Venient & Jason McIntyre
|
146187 |
13-May-2005 |
ume |
NI_WITHSCOPEID cleanup. Neither RFC 2553 nor RFC 3493 defines NI_WITHSCOPEID, and our getaddrinfo(3) does nothing special for it, now.
|
145970 |
06-May-2005 |
brian |
The kernel doesn't need to include a tun device - the module will be loaded on demand if required.
|
145643 |
28-Apr-2005 |
jcamou |
Update the manual page for ppp(8).
PR: docs/78605 Submitted by: John E. Hein <jhein@timing.com> Approved by: trhodes (mentor) MFC after: 1 day
|
141948 |
15-Feb-2005 |
brian |
Be concerned about huge callback numbers by truncating them rather than scribbling past the end of our buffer.
Problem spotted by: Damien COUDERC couderc at openbsd dot org
|
141851 |
13-Feb-2005 |
ru |
Expand contractions.
|
141846 |
13-Feb-2005 |
ru |
Expand *n't contractions.
|
141504 |
08-Feb-2005 |
brian |
Use the correct length when copying trailing data!!
PR: 77104 Submitted by: Martin Birgmeier martin at email dot aon dot at MFC after: 3 days
|
140905 |
27-Jan-2005 |
brian |
Add a radius_Flush() function that waits for the response (or timeout) to any pending RADIUS transaction. Use this before sending RAD_STOP RADIUS messages so that we definitely ``stop'' the session.
It was discovered that sometimes when the link timed out, we got lucky enough to have an un-ACK'd RADIUS accounting transaction in progress, resulting in the RAD_STOP message failing to send.
Original report found on: A russion news group Text translated by: glebius Tested by: Alexey Popov llp at iteranet dot com MFC after: 7 days
|
140568 |
21-Jan-2005 |
ru |
Fixed xref.
|
140063 |
11-Jan-2005 |
ru |
Scheduled mdoc(7) sweep.
|
139979 |
10-Jan-2005 |
brian |
Use the standard BSD copyright as per OpenBSD and /sys/net/slcompress*
|
139978 |
10-Jan-2005 |
brian |
Cast unsigned variables to int
|
139977 |
10-Jan-2005 |
brian |
ifr_flagshigh is FreeBSD specific
|
139973 |
10-Jan-2005 |
brian |
Integrate some OpenBSD alignment fixes. This hopefully also fixes PR 38058...
Obtained from: Brad <brad@comstyle.com>
|
139126 |
21-Dec-2004 |
ru |
NOPAM -> NO_PAM
|
139118 |
21-Dec-2004 |
ru |
Overhaul ppp(8) build options so they are safe to use in /etc/make.conf:
NOALIAS -> retired (support provided by PPP_NO_NAT) NOATM -> PPP_NO_ATM (also subject to NO_ATM global) NODES -> PPP_NO_DES (support was broken, now recovered) NOI4B -> PPP_NO_I4B (also subject to NO_I4B global) NOKLDLOAD -> PPP_NO_KLDLOAD NONAT -> PPP_NO_NAT NONETGRAPH -> PPP_NO_NETGRAPH NOPAM -> PPP_NO_PAM (will be subject to NO_PAM global) NORADIUS -> PPP_NO_RADIUS NOSUID -> retired (support provided by PPP_NO_SUID) PPP_NOSUID -> PPP_NO_SUID
|
139116 |
21-Dec-2004 |
ru |
The C define is NONAT.
|
139115 |
21-Dec-2004 |
ru |
NOINET6 -> NO_INET6
|
139113 |
21-Dec-2004 |
ru |
NOCRYPT -> NO_CRYPT
|
139105 |
21-Dec-2004 |
ru |
NOATM -> NO_ATM
|
138917 |
16-Dec-2004 |
roam |
Describe the special meaning of the $ and ~ characters, and the fact that you can get around it by double-quoting them.
PR: 42762 Submitted by: AIDA Shinra <aida-s@jcom.home.ne.jp> Discussed with: brian
|
138799 |
13-Dec-2004 |
brian |
Implement an ``enable/disable echo'' option, defaults to off. This allows LCP ECHOs to be enabled independently of LQR reports.
Note: This introduces a change in the default behaviour (search for lqr and echo in the man page). I'll update UPDATING to reflect this.
PR: 74821
|
138198 |
29-Nov-2004 |
brian |
Send NAS-IP-Address as well as NAS-Identifier Add ``disable NAS-IP-Address'' and ``disable NAS-Identifier'' options to support pre-rfc2865 RADIUS servers. This pushes our enable/disable items over the 32 bit limit, so reoganise things to allow a bunch more options. Go to version 3.4.1 so that any compatability problems can be identified.
|
137885 |
19-Nov-2004 |
obrien |
Catch up with PHK's sio(4) cuaa->cuad rework [sys/dev/sio/sio.c rev. 1.456].
PR: 73879 Submitted by: Steve Kargl <sgk@troutmask.apl.washington.edu>
|
136910 |
24-Oct-2004 |
ru |
For variables that are only checked with defined(), don't provide any fake value.
|
136377 |
11-Oct-2004 |
brian |
Handle a malloc() failure when allocating urgent ports
PR: 59995
|
136375 |
11-Oct-2004 |
brian |
Add a bunch of malloc() return checks
PR: 71592 Submitted by: Dan Lukes <dan@obluda.cz> with further changes
|
135166 |
13-Sep-2004 |
ru |
Fixed the NONETGRAPH build.
Reported by: wsk@gddsn.org.cn
|
134906 |
07-Sep-2004 |
phk |
Mark bundle as unused in case we're compiled with NORADIUS.
|
134885 |
07-Sep-2004 |
marcel |
Fix the NOSUID build: make sure we have the kldload(2) prototype.
|
134875 |
06-Sep-2004 |
brian |
Build with -DNOINET6...
|
134836 |
06-Sep-2004 |
marcel |
Reduce WARNS level to 3. Casting causes alignment warnings on platforms with strong alignment (All 64-bit platforms, except amd64).
|
134833 |
06-Sep-2004 |
marcel |
Fix the build on 64-bit platforms.
|
134809 |
05-Sep-2004 |
brian |
Fix a warning
Submitted by: Stefan Farfeleder <stefanf at FreeBSD dot org>
|
134789 |
05-Sep-2004 |
brian |
Make ppp WARNS=5 clean
|
133196 |
06-Aug-2004 |
cperciva |
Join the 21st century: Cryptography is no longer an optional component of releases. The -DNOCRYPT build option still exists for anyone who really wants to build non-cryptographic binaries, but the "crypto" release distribution is now part of "base", and anyone installing from a release will get cryptographic binaries.
Approved by: re (scottl), markm Discussed on: freebsd-current, in late April 2004
|
132818 |
29-Jul-2004 |
glebius |
Add configuration option "set pppoe [standard|3Com]" which allows to configure mode for ng_pppoe(4) node under control.
Reviewed by: brian Approved by: julian (mentor)
|
132790 |
28-Jul-2004 |
kan |
Avoid casts as lvalues.
|
132423 |
20-Jul-2004 |
brian |
Report the number of bytes not written when complaining about failed writes
|
132273 |
17-Jul-2004 |
brian |
Support a ``set rad_alive N'' command to enable periodic RADIUS accounting information being sent to the RADIUS server.
Logging of RADIUS accounting information moves to a ``set log [+-]radius'' level, along with the RADIUS alive info, and the version number is bumped to 3.2 to reflect this.
Mostly submitted by: alx@sm.ukrtel.net (back in January) MFC after: 3 weeks
|
132204 |
15-Jul-2004 |
brian |
Fix ``set ifaddr''. The code was actually using an uninitialised variable, but conveniently, because ncpaddr.ncpaddr_family != AF_INET, the call to ncpaddr_getip4addr() became a no-op leaving the local address as it was (defaulting to whatever my hostname resolves to).
PR: 62050 Submitted by: Peter Jeremy <peter.jeremy@alcatel.com.au> MFC after: 3 days
|
132151 |
14-Jul-2004 |
brian |
Remove a stray backslash
|
131500 |
02-Jul-2004 |
ru |
Mechanically kill hard sentence breaks.
|
131327 |
30-Jun-2004 |
brian |
Re-implement LQM, this time according to the rfc.
PR: 11293 MFC after: 4 weeks
|
131266 |
29-Jun-2004 |
brian |
Mention that ``set mtu max'' is necessary for PPPoE.
PR: 32040 MFC after: 2 weeks
|
131265 |
29-Jun-2004 |
brian |
Reduce MAXMSS limit by 12 bytes to allow for rfc 1323.
PR: 32717 Submitted by: MORI Kouji <moriko@hh.iij4u.or.jp> MFC after: 2 weeks
|
131122 |
26-Jun-2004 |
brian |
If HISMACADDR is set in the environment (by pppoed), pass the value to the RADIUS server as RAD_CALLING_STATION_ID.
PR: 44310 Submitted by: Gleb Smirnoff <glebius@cell.sick.ru> MFC after: 2 weeks
|
129457 |
19-May-2004 |
dds |
Send RADIUS gigaword data when OctetsIn or OctetsOut go over UINT32_MAX.
PR: bin/61294 Submitted by: Boris Kovalenko MFC after: 3 weeks
|
129175 |
13-May-2004 |
dds |
Make getprotobynumber() calls in FilterCheck conditional on the log levels by which they are used. On a typical production setting (no debug or filter logging) this will save an open/read/close system call sequence per packet, approximately halving the system overhead and reducing the overall overhead by 38%.
dd bs=1k count=512 if=/usr/share/dict/web2 | ssh ppp-linked-host dd of=/dev/null
# time original-ppp -nat -foreground connection Working in foreground mode Using interface: tun0 2.822u 2.404s 2:00.31 4.3% 392+496k 8+18io 3pf+0w
# time new-ppp -nat -foreground connection Working in foreground mode Using interface: tun0 2.082u 1.173s 1:26.06 3.7% 379+450k 0+18io 0pf+0w
MFC after: 3 weeks
|
128338 |
17-Apr-2004 |
brian |
Add a missing memcpy (*blush*!)
Suggested by: James P Scully <scully@CS.Arizona.EDU>, Perianayagam Somasundaram <somu@CS.Arizona.EDU> MFC after: 10 days
|
127859 |
04-Apr-2004 |
charnier |
2 small typos.
|
124815 |
21-Jan-2004 |
brooks |
Use the length of the interface name, not the length of its address when printing the name.
Approved by: brian
|
124438 |
12-Jan-2004 |
trhodes |
Xref the proper manual pages.
PR: 60999 Submitted by: Marc Silver <marcs@draenor.org>
|
122758 |
15-Nov-2003 |
harti |
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.
|
122440 |
10-Nov-2003 |
brian |
Ignore case when comparing CHAP/CHAP81 responses
PR: 31771
|
121702 |
29-Oct-2003 |
ru |
Basic PAM authentication support.
|
120372 |
23-Sep-2003 |
marcus |
Add Cisco Skinny Station protocol support to libalias, natd, and ppp. Skinny is the protocol used by Cisco IP phones to talk to Cisco Call Managers. With this code, one can use a Cisco IP phone behind a FreeBSD NAT gateway.
Currently, having the Call Manager behind the NAT gateway is not supported. More information on enabling Skinny support in libalias, natd, and ppp can be found in those applications' manpages.
PR: 55843 Reviewed by: ru Approved by: ru MFC after: 30 days
|
117981 |
24-Jul-2003 |
markm |
Hide more crypto from being crunched at release time.
|
117978 |
24-Jul-2003 |
markm |
Don't check for the existance of src/crypto/ for building items that may contain crypto. The days of ITAR paranoia are over, and the simple macro tests that remain are sufficient.
|
116990 |
28-Jun-2003 |
ume |
name union.
|
116737 |
23-Jun-2003 |
rwatson |
Remove world read bit from the ppp binary; we don't do world-execute, so it was inconsistent (although probably not harmful) to have world-read.
Submitted by: Socketd <db@traceroute.dk>
|
116654 |
21-Jun-2003 |
ume |
Though manpage says that 0.0.0.0 can be used as HISADDR for gw in Framed-Route, it didn't work. Since ncprange_aton() treats 0.0.0.0 and :: as prefixlen=0, we need to care the case.
MFC after: 1 week
|
116626 |
20-Jun-2003 |
ume |
Mention the use of Framed-IPv6-Prefix.
MFC after: 1 week
|
116622 |
20-Jun-2003 |
ume |
IPV6PREFIX is set when Framed-IPv6-Prefix is defined, You may want to pass the value to upper layer protocol such as DHCPv6 for prefix delegation.
MFC after: 1 week
|
116621 |
20-Jun-2003 |
ume |
Mention the use of Framed-IPv6-Route.
MFC after: 1 week
|
116588 |
19-Jun-2003 |
ume |
Do RADIUS accounting on IPV6CP.
MFC after: 1 week
|
116587 |
19-Jun-2003 |
ume |
Oops, I put unused variable in my previous commit.
MFC after: 1 week
|
116586 |
19-Jun-2003 |
ume |
Install routes specified by Framed-IPv6-Route. Since the format of Framed-IPv6-Route is user defined, it follows Framed-IP-route.
MFC after: 1 week
|
116443 |
16-Jun-2003 |
ume |
MYADDR6 in ppp.link{up,down} should match even when IPCP is enabled.
MFC after: 1 week
|
116251 |
12-Jun-2003 |
kris |
Add missing header for system_Select() prototype
|
115303 |
25-May-2003 |
peter |
Add a pretty cheesy hack to avoid a gcc-3.2.2 ICE (internal compiler error) on amd64 when doing pointer subtraction. This bug is already fixed in gcc-3.3 (waiting for after the branch), and the hack will be backed out at the first opportunity. This is in the ipv6 code path.
Approved by: re (scottl)
|
115224 |
22-May-2003 |
ru |
Erase whitespace at EOL.
Approved by: re (blanket)
|
115180 |
20-May-2003 |
ru |
Previous revision broke release building, unbreak it.
Prodded by: scottl
|
115157 |
19-May-2003 |
des |
Retire the useless NOSECURE knob.
Approved by: re (scottl)
|
113110 |
05-Apr-2003 |
ume |
When session is over, IPv6 default route to tun should be removed, too.
MFC after: 1 week
|
113067 |
04-Apr-2003 |
ume |
Set link-local address of tun interface with prefixlen = 64 instead of 128. It makes RA happy.
Reported by: rafa@dif.um.es, SHIRASAKI Yasuhiro <yasuhiro@nttv6.jp> Reviewed by: SHIRASAKI Yasuhiro <yasuhiro@nttv6.jp> MFC after: 1 week
|
112753 |
28-Mar-2003 |
ume |
If IPCP is disabled, susccess of IPV6CP negotiation is sufficient to communicate by IPv6. So, the prompt should be `PPP' rather than `PPp'.
|
112673 |
26-Mar-2003 |
ume |
Don't install wrong IPv6 route by add command.
|
112660 |
26-Mar-2003 |
brian |
Passing a u_char to ntohs() is guaranteed to give the wrong answer !
Submitted by: Francis Dupont <Francis.Dupont@enst-bretagne.fr>
|
112659 |
26-Mar-2003 |
brian |
Add a ``force-scripts'' option for using chat scripts with -direct and -dedicated links.
Submitted by: Maksim Yevmenkin <myevmenk@exodus.net>
|
112618 |
25-Mar-2003 |
ume |
Once ppp session is over, the route to ff02::tun0/32 was deleted, and never came back. Now, the route to ff02::tun0/32 is installed at the end of IPV6CP negitiaton.
|
112616 |
25-Mar-2003 |
ume |
We need filling scopeid to install routes for link-local scope addresses.
|
112613 |
25-Mar-2003 |
ume |
Since ppp.link{up,down} is invoked at the end of IPCP negotiation, if we need ppp.link{up,down}, we couldn't disable IPCP. Now, if IPCP is disabled, ppp.link{up,down} is invoked at the end of IPV6CP negotiation.
|
108533 |
01-Jan-2003 |
schweikh |
Correct typos, mostly s/ a / an / where appropriate. Some whitespace cleanup, especially in troff files.
|
106966 |
15-Nov-2002 |
peter |
utmp.ut_time and lastlog.ll_time are explicitly int32_t rather than time_t. Deal with the possibility that time_t != int32_t. This boils down to this sort of thing: - time(&ut.ut_time); + ut.ut_time = time(NULL); and similar for ctime(3) etc. I've kept it minimal for the stuff that may need to be portable (or 3rd party code), but used Matt's time32 stuff for cases where that isn't as much of a concern.
Approved by: re (jhb)
|
103875 |
23-Sep-2002 |
brian |
If the peer gives us 0.0.0.0 as his IP number, NAK it rather than accepting it as being in range.
set ifaddr 1.2.3.4/0 5.6.7.8/0
no longer allows 0.0.0.0 as a valid IP.
Reported/tested by: Bohdan Horst <nexus@hoth.amu.edu.pl> MFC after: 3 days
|
102855 |
02-Sep-2002 |
brian |
Unbreak -DNOINET6
Submitted by: Andre Albsmeier <andre.albsmeier@mchp.siemens.de> MFC after: 1 day
|
102574 |
29-Aug-2002 |
sobomax |
Correctly handle ifr.ifr_flags/ifr.ifr_flagshigh like ifconfig(8) does.
MFC after: 1 day
|
102558 |
29-Aug-2002 |
brian |
- made ppp compliant to RFC 2472 (based on a patch from another contributor) - support ipv6cpretry and ipv6cpretries, which are IPv6 versions of ipcpretry and ipcpretries. - improve handling of IPv6 link-local addresses
Submitted by: JINMEI Tatuya <jinmei@isl.rdc.toshiba.co.jp>
|
102500 |
27-Aug-2002 |
brian |
Include the correct file (stdarg.h) and use va_list rather than _BSD_VA_LIST_
Suggested by: mike
|
102468 |
27-Aug-2002 |
brian |
Use _BSD_VA_LIST_ rather than __va_list if it's defined
|
102459 |
26-Aug-2002 |
brian |
Correct the FAQ url
Submitted by: Olivier Tharan <olive@oban.frmug.org>
|
102413 |
25-Aug-2002 |
charnier |
Replace various spelling with FALLTHROUGH which is lint()able
|
102227 |
21-Aug-2002 |
mike |
o Merge <machine/ansi.h> and <machine/types.h> into a new header called <machine/_types.h>. o <machine/ansi.h> will continue to live so it can define MD clock macros, which are only MD because of gratuitous differences between architectures. o Change all headers to make use of this. This mainly involves changing: #ifdef _BSD_FOO_T_ typedef _BSD_FOO_T_ foo_t; #undef _BSD_FOO_T_ #endif to: #ifndef _FOO_T_DECLARED typedef __foo_t foo_t; #define _FOO_T_DECLARED #endif
Concept by: bde Reviewed by: jake, obrien
|
101828 |
13-Aug-2002 |
ru |
mdoc(7) police: Removed redundant .Ns calls.
|
101028 |
31-Jul-2002 |
blackend |
Correct URL to the FAQ
MFC after: 1 week
|
100974 |
30-Jul-2002 |
blackend |
Correct links to Handbook's pages, old URLs does not work anymore.
MFC after: 1 week
|
100916 |
30-Jul-2002 |
brian |
Do a case insensitive comparison when comparing the ms-chap response string.
|
100334 |
18-Jul-2002 |
brian |
Remove unused calls to inet_addr()
|
99418 |
04-Jul-2002 |
brian |
Back out the previous revision
Objected to by: Andre Oppermann <oppermann@pipeline.ch>
After Andre's objection, I've re-examined rfc 2759 and noted that it says that the domain name shouldn't be used when generating the NT-Response field. So it looks like the bug is in freeradius rather than in ppp.
|
99384 |
03-Jul-2002 |
brian |
If we've given a domain name prefix as the authentication name, strip it off before passing it on to the RADIUS server for authentication.
|
99235 |
02-Jul-2002 |
brian |
Don't trust the MPPE key lengths passed back from the RADIUS server. Instead, use the correct values based on the number of bits actually negotiated.
Spotted by: Sergey Korolew <ds@rt.balakovo.ru>
|
99234 |
02-Jul-2002 |
brian |
Remove some misleading/wrong diagnostics
|
99097 |
30-Jun-2002 |
brian |
Show the port number (tty slot, pppoe session id etc) under ``show physical''.
|
99086 |
29-Jun-2002 |
brian |
When a netgraph message is read, look for another before returning. This removes a bad latency problem during initial setup where we end up waiting for too long before reading the connected message and time the connection out.
Problem figured out by: Andre Albsmeier <andre@albsmeier.net>
|
98970 |
28-Jun-2002 |
brian |
Don't use SignalBundle if it's not set
Submitted by: Federico G. Schwindt <fgsch@olimpo.com.br>
|
98967 |
28-Jun-2002 |
brian |
Complain about (and fix) misformatted RADIUS attributes rather than silently fixing them.
|
98966 |
28-Jun-2002 |
brian |
When a RADIUS server is being used, don't use MPPE unless the RADIUS server says it's ok.
|
98712 |
23-Jun-2002 |
brian |
Add a hack to handle RADIUS responses from peers that forget that there's an ``Ident'' field in the MS-CHAP2-Response and MS-CHAP-Error attributes.
The RADIATOR server seems to be guilty of this.
|
98638 |
22-Jun-2002 |
brian |
Don't expect NUL terminated data in all netgraph messages received. Only display message hook values we understand.
|
98311 |
17-Jun-2002 |
brian |
Compensate for dodgy Win98/WinME MSCHAPv2 responses later in the code path... after we've talked to any RADIUS servers involved, so that we haven't touched the data before it gets to the server.
Make it clearer in the code that this compensation is done by setting a flag to a value of zero, a flag which rfc2759 says *MUST* be zero.
While we're here, don't bother passing the peer challenge into radius_Authenticate(). It's already part of the key we're passing in (this becomes obvious now that I've structured that data...).
This ``fix'' doesn't help to authenticate Win98/WinME users in my test environment as ports/net/freeradius seems to ignore the flag completely anyway, but it may help with other RADIUS servers.
|
98244 |
15-Jun-2002 |
brian |
A better prinflike fix...
|
98243 |
15-Jun-2002 |
brian |
Remove whitespace at the end of lines.
|
98237 |
15-Jun-2002 |
brian |
Fix a printflike format error
|
98236 |
15-Jun-2002 |
brian |
Remove a forgotten diagnostic
|
98151 |
12-Jun-2002 |
brian |
If a RAD_FILTER_ID is supplied by the RADIUS server, treat it as an additional label from ppp.linkup & ppp.linkdown to load.
Suggested and mostly submitted by: andrew pavlov <and@kremenchug.net>
|
98150 |
12-Jun-2002 |
brian |
Bump the version number to reflect the recent RADIUS commits
|
98149 |
12-Jun-2002 |
brian |
Don't forget to process the Ident field on the front of RAD_MICROSOFT_MS_CHAP_ERROR and RAD_MICROSOFT_MS_CHAP2_SUCCESS messages, and remove the hack in chap.c to ignore that ident field on the client side.
This anomoly was hacked around during development, and I forgot to go back and fix it properly.
Spotted by: Sergey Korolew <ds@rt.balakovo.ru>
|
98132 |
12-Jun-2002 |
brian |
Understand the following Microsoft Vendor Specific RADIUS attributes:
RAD_MICROSOFT_MS_MPPE_ENCRYPTION_POLICY RAD_MICROSOFT_MS_MPPE_ENCRYPTION_TYPES RAD_MICROSOFT_MS_MPPE_RECV_KEY RAD_MICROSOFT_MS_MPPE_SEND_KEY
These attributes may be supplied by a RADIUS server when MSCHAPv2 is used to authenticate.
It *should* now be possible to build ppp with -DNODES and still support CHAP/MSCHAP/MSCHAPv2/MPPE via a RADIUS server, but the code isn't yet smart enough to do that (building with -DNODES just looses these facilities).
Sponsored by: Monzoon
|
97904 |
06-Jun-2002 |
brian |
Cast pid_t to long for printf()ing
Obtained from: OpenBSD
|
97783 |
03-Jun-2002 |
brian |
Add a missing ``a''.
|
97738 |
02-Jun-2002 |
brian |
Don't send a RAD_NAS_IP_ADDRESS attribute as RAD_NAS_IDENTIFIER is sufficient.
In fact, using both breaks the radiator RADIUS daemon when used with a db as it maps both attributes to the same field value and then fails the insert.
I decided to remove RAD_NAS_IP_ADDRESS on the basis that rfc2138 says:
An Access-Request MUST contain a User-Name attribute. It SHOULD contain either a NAS-IP-Address attribute or NAS-Identifier attribute (or both, although that is not recommended). It MUST
despite the fact that this not recommended bit was removed from the updated rfc.
|
97360 |
27-May-2002 |
brian |
Coerce pid_t to long rather than int for better portability.
Suggested by: Theo de Raadt <deraadt@openbsd.org>
|
97141 |
22-May-2002 |
brian |
Increase the maximum FSM option length to 50
|
97140 |
22-May-2002 |
brian |
Add some missing #includes that weren't required due to namespace polution in our headers.
Submitted by: bde
|
97061 |
21-May-2002 |
brian |
Mention our support of the authentication side of rfc2548
|
96883 |
18-May-2002 |
brian |
Document RAD_MICROSOFT_MS_CHAP2_SUCCESS.
|
96768 |
17-May-2002 |
brian |
Put back <string.h>
|
96732 |
16-May-2002 |
brian |
Add some OpenBSD includes
|
96731 |
16-May-2002 |
brian |
Fix a mis-placed #else/#endif
|
96730 |
16-May-2002 |
brian |
Handle MS-CHAPv2 authentication correctly via the RADIUS server (if it's configured). Handle internal failures in radius_Authenticate() correctly. Bump the ppp version number.
This doesn't yet work with MPPE. More will follow.
Sponsored by: Mozoon
|
96598 |
14-May-2002 |
brian |
Fix an include for NetBSD
|
96584 |
14-May-2002 |
brian |
Avoid a rather bizarre warning from gcc 3.1:
/usr/src/usr.sbin/ppp/cbcp.c:566:61: warning: trigraph ??! ignored
|
96582 |
14-May-2002 |
brian |
o Clean up some #includes o Bump version number to 3.0.4 o When talking to a RADIUS server, provide a NAS-Port-Type.
When the NAS-Port-Type is Ethernet, provide a NAS-Port value equal to the SESSIONID from the environment in direct mode or the NGM_PPPOE_SESSIONID message in other modes. If no SESSIONID is found, default to the interface index in client mode or zero in server mode.
When the NAS-Port-Type is ISDN, set the NAS-Port to the minor number of the physical device (ie, the N in /dev/i4brbchN).
This makes it easier for the RADIUS server to identify the client WRT accounting data etc.
Prompted by: lsz8425 <lsz8425@mail.cd.hn.cn>
|
96552 |
14-May-2002 |
brian |
Calculate the number of open links properly when deciding on whether to just send PROTO_IP packets when we've got only one link up in multi-link mode.
Problem noted by: Adrian Close <adrian@fernhilltec.com.au> MFC after: 1 week
|
96544 |
13-May-2002 |
brian |
Fix a syntax error
|
96408 |
11-May-2002 |
brian |
We don't need to include arpa/inet.h here. In fact, only FreeBSD needs netinet/in.h.
|
96402 |
11-May-2002 |
brian |
#include netinet/in.h when !__FreeBSD__ to silence some warnings from the inclusion of arpa/inet.h
|
96387 |
11-May-2002 |
brian |
NetBSD keeps des.h in /usr/include/openssl these days
|
96324 |
10-May-2002 |
brian |
Add support for MS-CHAP authentication via a RADIUS server. Add support for Reply-Message and MS-CHAP-Error.
Sponsored by: Monzoon
|
96159 |
07-May-2002 |
brian |
Don't corrupt MP fragments when they're put back on the front of our inbound queue.
Submitted by: "Amit K. Rao" <arao@niksun.com> PR: 37813 MFC after: 1 week
Also fix a typo while I'm here.
|
96153 |
07-May-2002 |
brian |
Understand the Session-Timeout RADIUS attribute Store the Filter-Id attribute (we don't do anything with it yet)
Submitted mostly by: andrew pavlov <and@kremenchug.net>
|
96043 |
04-May-2002 |
brian |
Tweak a data type from char * to u_char *
|
96038 |
04-May-2002 |
brian |
Make ``set mru'' require a context. In multi-link mode, there's no point in being allowed to ``set mru'' for the MP lcp layer.
Spotted by: Richard Browne <richb@timestone.com.au> MFC after: 1 month
|
95873 |
01-May-2002 |
brian |
Bump the version to mark the fixed FSM TLD ordering
|
95872 |
01-May-2002 |
brian |
If we receive a config request while Open, call TLD *before* decoding the request as TLD may initialise fields that are set when decoding the request.
MFC after: 1 week
|
95864 |
01-May-2002 |
brian |
Allow the peer to modify the LQR interval
|
95258 |
22-Apr-2002 |
des |
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}/.
|
95171 |
21-Apr-2002 |
brian |
Don't load the netgraph line discipline. When it's in use, TIOCMGET fails and on loss of carrier, the device doesn't become selectable with 0 bytes to read.
Problem reported by: ache
|
94934 |
17-Apr-2002 |
brian |
Add variable substitutions for SOCKNAME, IPOCTETSIN, IPOCTETSOUT, IPPACKETSIN, IPPACKETSOUT, IPV6OCTETSIN, IPV6OCTETSOUT, IPV6PACKETSIN, IPV6PACKETSOUT, OCTETSIN, OCTETSOUT, PACKETSIN, PACKETSOUT and SOCKNAME.
|
94895 |
16-Apr-2002 |
brian |
Don't display an extraneous ``: '' with some packets in/packets out diagnostics
|
94894 |
16-Apr-2002 |
brian |
Make the way FSM options are processed easier to read by using structures instead of u_char *.
The changes are cosmetic except:
RecvConfigAck() now displays the options that are being ACK'd Huge (bogus) options sent from the peer won't cause an infinite loop SendIdent and ReceiveIdent are displayed consistenlty with other FSM data LCP AUTHPROTO options that aren't understood are NAK'd, not REJ'd
|
94698 |
15-Apr-2002 |
brian |
When it's necessary to kldload tun(4), don't forget to re-try to open tun0.
Submitted by: qhwt@myrealbox.com
|
93767 |
04-Apr-2002 |
hosokawa |
Get tun P2P address from the local pool if RADIUS server returned 255.255.255.254 as client ipaddr.
Reviewed-By: freebsd-net mailing list
|
93465 |
31-Mar-2002 |
brian |
Fix a typo
|
93464 |
31-Mar-2002 |
brian |
Add a missing ``#ifndef NONETGRAPH''
|
93463 |
31-Mar-2002 |
brian |
Remove some extraneous whitespace
|
93462 |
31-Mar-2002 |
brian |
Include arpa/inet.h
|
93448 |
30-Mar-2002 |
ru |
Fix CLEANFILES.
|
93422 |
30-Mar-2002 |
brian |
Add a sprinkling of mp_Down() calls to ensure that we don't think that the multi-link NCP is up when it isn't.
|
93421 |
30-Mar-2002 |
brian |
Don't use the RTF_GATEWAY flag and pass the RTA_GATEWAY address when updating routes.
|
93420 |
30-Mar-2002 |
brian |
Add a missing break
|
93418 |
30-Mar-2002 |
brian |
Merge the NETGRAPH branch into HEAD. tty devices now use netgraph's line discipline to do the async escaping, but no other benefits are available yet.
Change ``ifdef HAVE_DES'' to ``ifndef NODES'' for consistency.
Make the Makefile a little more sane WRT RELEASE_CRUNCH.
|
93152 |
25-Mar-2002 |
brian |
Fix a typo
Submitted by: dirk
|
92348 |
15-Mar-2002 |
ru |
mdoc(7) police: .Va -> .Ev.
|
92221 |
13-Mar-2002 |
brian |
Use the return value from snprintf() to keep a track of the length of the display string in MPPEDispOpts.
PR: 35836 MFC After: 2 weeks
|
92142 |
12-Mar-2002 |
brian |
Handle B460800 and B921600 being defined in <termios.h>
|
91681 |
05-Mar-2002 |
brian |
Don't drop the last character from ut_line in ID0logout().
PR: 35531 MFC after: 2 weeks
|
91623 |
04-Mar-2002 |
brian |
Don't blow away ``set escape'' settings when we've completed the login phase. Just initialise the correct parts.
Originially submitted by: Vladimir B. Machulsky <bofhmail@yahoo.com>
|
90977 |
20-Feb-2002 |
brian |
Document NGM_PPPOE_ACNAME handling.
|
90975 |
20-Feb-2002 |
brian |
Handle NGM_PPPOE_ACNAME messages.
Submitted by: Andre Albsmeier <andre@albsmeier.net> Approved by: julian
|
90868 |
18-Feb-2002 |
mike |
o Move NTOHL() and associated macros into <sys/param.h>. These are deprecated in favor of the POSIX-defined lowercase variants. o Change all occurrences of NTOHL() and associated marcros in the source tree to use the lowercase function variants. o Add missing license bits to sparc64's <machine/endian.h>. Approved by: jake o Clean up <machine/endian.h> files. o Remove unused __uint16_swap_uint32() from i386's <machine/endian.h>. o Remove prototypes for non-existent bswapXX() functions. o Include <machine/endian.h> in <arpa/inet.h> to define the POSIX-required ntohl() family of functions. o Do similar things to expose the ntohl() family in libstand, <netinet/in.h>, and <sys/param.h>. o Prepend underscores to the ntohl() family to help deal with complexities associated with having MD (asm and inline) versions, and having to prevent exposure of these functions in other headers that happen to make use of endian-specific defines. o Create weak aliases to the canonical function name to help deal with third-party software forgetting to include an appropriate header. o Remove some now unneeded pollution from <sys/types.h>. o Add missing <arpa/inet.h> includes in userland.
Tested on: alpha, i386 Reviewed by: bde, jake, tmm
|
89720 |
23-Jan-2002 |
brian |
Detect if a udp socket on STDIN_FILENO is connected by calling getpeername() and don't set PASSIVE mode if it's is.
|
89713 |
23-Jan-2002 |
brian |
Cross reference the NETWORK ADDRESS TRANSLATION section when describing the -nat flag.
Requested by: eivind
|
89422 |
16-Jan-2002 |
brian |
socket()s first argument should be a protocol family rather than an address family.
|
89420 |
16-Jan-2002 |
brian |
socket's first argument is an address family, not a protocol family.
|
89072 |
08-Jan-2002 |
brian |
When authenticating a name containing a ``\'', attempt to autenticate using the part after the ``\'' if the original name is not found.
This allows M$ clients to use domain\user as their authname.
Reviewed by: Ian West <ian@niw.com.au>
|
87544 |
09-Dec-2001 |
brian |
Consider PROTO_IPV6 as compressible by CCP.
Spotted by: Nick Sayer <nsayer@quack.kfu.com>
|
87127 |
30-Nov-2001 |
brian |
Pay attention to failures to SIOCAIFADDR and SIOCDIFFADDR.
|
87126 |
30-Nov-2001 |
brian |
Don't provide an RTA_GATEWAY sockaddr when we write RTM_CHANGE messages to the routing socket.
The local address on a point-to-point interface is not actually a gateway address - despite it appearing in the second column of netstat -r's output. Providing a gateway to an RTM_CHANGE will currently change the route's interface so that it's using the specified gateway - not what we want.
Patiently explained to me by: ru
|
87125 |
30-Nov-2001 |
brian |
Add some DEBUG logging to tell us when interface addresses are being added and removed
|
86835 |
23-Nov-2001 |
brian |
Remove the hack that ensures that rt_Update() works on FreeBSD. Now that the ncpaddr code doesn't create default routes with non-zero masks, everything works as it should.
|
86833 |
23-Nov-2001 |
brian |
When writing messages to the routing socket, round sockaddr sizes up in the same way that we expect them to be when we read them.
This is a no-op on i386 and probably on alphas, as we currently only support AF_INET and AF_INET6.
|
86832 |
23-Nov-2001 |
brian |
Be paranoid about non-zero netmasks being associated with INET addresses of 0.0.0.0.
The OpenBSD PF_ROUTE/NET_RT_DUMP sysctl is sending back routes with RTAX_NETMASK set, but the corresponding sockaddr being 4 zero bytes (with an address family of zero). ppp was getting confused by this and ending up interpreting it as a 0.0.0.0/32 routing table destination and subsequently failing to do anything with the route.
Specifically, after this fix, ppp under OpenBSD can successfully change and delete the default route again !
|
86825 |
23-Nov-2001 |
brian |
Remove an unused variable (oops)
|
86815 |
23-Nov-2001 |
brian |
Don't adjust_linklocal() when pulling a sockaddr out of an ncpaddr or ncprange structure.
Don't write() the netmask for IPv6 sockaddrs to the routing socket if the prefixlen is 128.
It seems that messages written to the routing socket with the scopeid set for link local addresses are not understood. Instead, we have to put the scopeid in the 5th and 6th bytes of the address (see adjust_linklocal() in ncpaddr.c). I think this may be a bug in the KAME implementation - it should really understand both forms.
|
86811 |
23-Nov-2001 |
brian |
Remove a bogus log_Id() decl
|
86808 |
23-Nov-2001 |
brian |
Fix usage for the log command
|
86806 |
23-Nov-2001 |
brian |
Whitespace tweak
|
86760 |
22-Nov-2001 |
brian |
Expand the first argument of the ``log'' command if it's a variable.
|
86754 |
22-Nov-2001 |
brian |
Document that an UPTIME variable is now available
|
86028 |
04-Nov-2001 |
brian |
Remove unused variables
|
85991 |
03-Nov-2001 |
brian |
Add a ``log'' command for logging specific information. Add an ``UPTIME'' variable to indicate the bundle uptime.
It's now possible to put something like this in ppp.linkdown for a server setup:
MYADDR: log Session closing: User USER, address HISADDR, up UPTIME
Fixed some memory leakage with commands that expand words. Made some functions static. Fixed a diagnostic bug (iface add .... SIOCDIFADDR)
|
85985 |
03-Nov-2001 |
brian |
Call CCP protocol -1 ``none''
|
85965 |
03-Nov-2001 |
brian |
cmott@scientech.com -> cm@linktel.net
Requested by: Charless Mott <cmott@scientech.com>
|
85362 |
23-Oct-2001 |
brian |
Don't avoid setting a 0 second timer in datalink_StartDialTimer() by not setting any timer. Instead, set a 1 millisecond timer.
This ensures that ppp will come out of it's select() call after losing carrier in -ddial mode with a reconnect period of 0 and going to ST_OPENING, rather than waiting indefinitely for some other event to wake ppp up.
Bump the ppp version number to indicate the event.
MFC after: 3 days
|
85357 |
23-Oct-2001 |
peter |
ia64 support. Due to the bogus placement of some i4b includes, it is i386-only, even though it would work on all the isa-capable platforms. Change the NOI4B so that instead of excluding alpha, it only includes i386.
|
85167 |
19-Oct-2001 |
brian |
Include the right i4b files for NetBSD
|
85095 |
18-Oct-2001 |
brian |
Fix AUTH callback negotiations.
MFC after: 1 week
|
85094 |
18-Oct-2001 |
brian |
When the peer fails to specify an MRU and a 1500 byte MRU is not allowed either because of the transport or configuration, send a MRU NAK only once, then allow the negotiations to proceed.
rfc1661 says that 1500 should always be allowed and rfc2516 says that 1492 is the maximum for PPPoE. This changes ppp so that it only weakly suggests 1492, then goes with the default (leaving the problem in the hands of the peer WRT how they set their MTU).
MFC after: 1 week
|
84472 |
04-Oct-2001 |
dwmalone |
Hopefully improve control message passing over Unix domain sockets.
1) Allow the sending of more than one control message at a time over a unix domain socket. This should cover the PR 29499.
2) This requires that unp_{ex,in}ternalize and unp_scan understand mbufs with more than one control message at a time.
3) Internalize and externalize used to work on the mbuf in-place. This made life quite complicated and the code for sizeof(int) < sizeof(file *) could end up doing the wrong thing. The patch always create a new mbuf/cluster now. This resulted in the change of the prototype for the domain externalise function.
4) You can now send SCM_TIMESTAMP messages.
5) Always use CMSG_DATA(cm) to determine the start where the data in unp_{ex,in}ternalize. It was using ((struct cmsghdr *)cm + 1) in some places, which gives the wrong alignment on the alpha. (NetBSD made this fix some time ago).
This results in an ABI change for discriptor passing and creds passing on the alpha. (Probably on the IA64 and Spare ports too).
6) Fix userland programs to use CMSG_* macros too.
7) Be more careful about freeing mbufs containing (file *)s. This is made possible by the prototype change of externalise.
PR: 29499 MFC after: 6 weeks
|
83775 |
21-Sep-2001 |
ru |
Keep up with sys/net/rtsock.c,v 1.58.
Prodded by: brian
|
83404 |
13-Sep-2001 |
brian |
sigpause() -> sigsuspend() sigblock() -> sigprocmask()
|
83403 |
13-Sep-2001 |
brian |
Correct alignment issues
Obtained from: OpenBSD
|
83399 |
13-Sep-2001 |
brian |
Spell syslog.conf correctly
Submitted by: Tony Finch <dot@dotat.at> PR: 30545
|
83031 |
04-Sep-2001 |
brian |
Fix a diagnostic
|
82437 |
27-Aug-2001 |
brian |
Some cosmetic changes to sync with OpenBSD
|
82411 |
27-Aug-2001 |
brian |
Send a reset request for every packet received when our encryption dictionaries are out of sync.
This avoids the complications that happen when our original reset request gets lost in transit (quite likely in hind sight, given a lossy link) when we end up ignoring the peer for the next (up to) 256 packets.
Submitted by: Nick Sayer <nsayer@quack.kfu.com>
|
82277 |
24-Aug-2001 |
brian |
Handle return values of 0 from NgRecvMsg() properly.
|
82048 |
21-Aug-2001 |
brian |
o Enable IFF_MULTICAST when first opening the tun device (and keep the flag when we ioctl(TUNSIFINFO) under OpenBSD) o Don't bring the interface up immediately o Don't complain about unrecognised interface flags in ``show iface''.
|
81982 |
20-Aug-2001 |
brian |
Handle snprintf() returning < 0 (not just -1)
MFC after: 2 weeks
|
81959 |
20-Aug-2001 |
brian |
Properly change old interface addresses so that their destination is 255.255.255.255 if our new destination address conflicts.
|
81957 |
20-Aug-2001 |
brian |
Add some comments to explain what's going on here
|
81934 |
20-Aug-2001 |
brian |
When attempting to change the default route, don't write the gateway and mask to the routing socket, otherwise the update fails.
Warning provided by: markm
The code here was broken for FreeBSD when IPv6 support was added, but was fixed for OpenBSD. OpenBSD expects the gateway and mask to be supplied and fails the update otherwise.
|
81924 |
19-Aug-2001 |
brian |
Add some casts.
Not spotted by: FreeBSD's gcc version 2.95.3 20010315 (release) Spotted by: OpenBSD's gcc version 2.95.3 20010125 (prerelease)
|
81923 |
19-Aug-2001 |
brian |
Add a missing % in a format string.
Not spotted by: FreeBSD's gcc version 2.95.3 20010315 (release) Spotted by: OpenBSD's gcc version 2.95.3 20010125 (prerelease)
|
81922 |
19-Aug-2001 |
brian |
Avoid a compiler warning
Not spotted by: FreeBSD's gcc version 2.95.3 20010315 (release) Spotted by: OpenBSD's gcc version 2.95.3 20010125 (prerelease)
|
81902 |
18-Aug-2001 |
brian |
Better handling for the return of snprintf().
|
81900 |
18-Aug-2001 |
brian |
If AF_INET6 isn't available in the kernel, revert to creating AF_INET listening sockets in ``set server''.
|
81897 |
18-Aug-2001 |
brian |
Back out the previous fix to deal with kernels that don't support IPv6, and implement a far more subtle and correct fix.
The reason behind the infinite loop was that ppp was trying to make up initial IPv6 numbers and wasn't giving up when it failed unexpectedly to assign the addresses it just fabricated to it's interface (thinking that the reason was because another interface was using the same address). It now attempts this up to 100 times before just failing and trying to muddle along (in reality, this should never happen more than a couple of times unless our random number generator doesn't work).
Also, when IPv6 is not available, don't even try to assign the IPv6 interface address in the first place...
|
81888 |
18-Aug-2001 |
brian |
Run correctly on a machine built without AF_INET6 support
|
81886 |
18-Aug-2001 |
brian |
Build properly with -DNOINET6
|
81885 |
18-Aug-2001 |
brian |
Build properly with -DNOIPV6
|
81785 |
16-Aug-2001 |
brian |
Add two missing includes
|
81784 |
16-Aug-2001 |
brian |
Remove an unused variable
|
81755 |
16-Aug-2001 |
ru |
mdoc(7) police: markup nit, removed whitespace at EOL.
|
81739 |
16-Aug-2001 |
brian |
Specify the gateway address when updating the MTU and send/recv pipe sizes on a route.
IMHO this shouldn't be necessary (the destination & mask/prefixlen should be enough), but without it, the default route update under OpenBSD will fail.
Thanks to: Russell T Hunt <alaric@MIT.EDU>
|
81738 |
16-Aug-2001 |
brian |
Fix a couple of forgotten comments
|
81697 |
15-Aug-2001 |
brian |
Probe for the availability of AF_INET6 at startup. If it's not available, default ipv6cp to disabled and refuse to let the user enable it.
|
81695 |
15-Aug-2001 |
brian |
Don't show a prefixlen when a destination address is present in ``show iface''.
|
81693 |
15-Aug-2001 |
brian |
Add a missing newline
|
81692 |
15-Aug-2001 |
brian |
Don't forget to attache the sticky route change to the ncp structure.
PR: 29726
|
81690 |
15-Aug-2001 |
brian |
Avoid calling bits2mask4() when bits is -1.
|
81634 |
14-Aug-2001 |
brian |
o Add ipv6 support, abstracting most NCP addresses into opaque structures (well, they're treated as opaque).
It's now possible to manage IPv6 interface addresses and routing table entries and to filter IPV6 traffic whether encapsulated or not.
IPV6CP support is crude for now, and hasn't been tested against any other implementations.
RADIUS and IPv6 are independent of eachother for now.
ppp.linkup/ppp.linkdown aren't currently used by IPV6CP
o Understand all protocols(5) in filter rules rather than only a select few.
o Allow a mask specification for the ``delete'' command. It's now possible to specifically delete one of two conflicting routes.
o When creating and deleting proxy arp entries, do it for all IPv4 interface addresses rather than doing it just for the ``current'' peer address.
o When iface-alias isn't in effect, don't blow away manually (via ``iface add'') added interface addresses.
o When listening on a tcp server (diagnostic) socket, bind so that a tcp46 socket is created -- allowing both IPv4 and IPv6 connections.
o When displaying ICMP traffic, don't display the icmp type twice. When display traffic, display at least some information about unrecognised traffic.
o Bump version
Inspired after filtering work by: Makoto MATSUSHITA <matusita@jp.FreeBSD.org>
|
81589 |
13-Aug-2001 |
ru |
mdoc(7) police: s/OpenBSD/.Ox/ where appropriate.
|
81534 |
11-Aug-2001 |
brian |
Preprocess ppp.8.m4 into ppp.8, taking into account any compile time options used to build ppp.
Currently, this is a no-op and only handles LOCALNAT and LOCALRAD cases.
This will be used for the upcoming ipv6 changes, and allows a shared man page between OpenBSD and FreeBSD.
|
81464 |
10-Aug-2001 |
brian |
Change copyright to BSD-style copyright.
Ok'd by: Gabor Kincses <gabor@acm.org>
|
81251 |
07-Aug-2001 |
ru |
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.
|
81094 |
03-Aug-2001 |
brian |
Warn when a CHAP81 SUCCESS packet is invalid due to an incorrect S= value.
|
81066 |
02-Aug-2001 |
brian |
The wrong-last-byte bug on win98 chap responses is also in winME
|
81033 |
02-Aug-2001 |
brian |
Add a ``nat punch_fw'' command for punching FTP and IRC DCC holes through the firewall.
|
80763 |
31-Jul-2001 |
brian |
Don't include a NUL at the end of our CHAP SUCCESS packet.
When encryption (MPPE) is enabled, WindowsME and Windows98 both fail because of the extra byte, suggesting that they autheticated successfully in their log and then dropping the connection, telling the user that the peer doesn't support compatible encryption options.
MFC after: 1 week
|
80730 |
31-Jul-2001 |
brian |
Remove an irritating diagnostic emitted to LogPHASE when a static proxy arp entry is deleted.
Rename a function (for consistency) and remove some whitespace (for readability).
MFC after: 1 week
|
80721 |
31-Jul-2001 |
brian |
When we receive a CHAP81 challenge response, we always expect the last byte of the packet to contain '\0'.
Windows 98 gets this wrong, dropping garbage into the last byte and failing authentication.
Now, we notice this and whinge to our log file that we're compensating for the corrupt data.
|
80655 |
30-Jul-2001 |
brian |
If the peer REJects our MRU REQ, stop REQing it -- *EVEN* if we're doing PPPoE and the default MRU is therefore too big.
When negotiating with win2k, we ask for MRU 1492 and the win2k box NAKs us saying ``MRU 1492''. This doesn't make sense to me. When we continue to request MRU 1492, the win2k box eventually REJs our MRU. This fix allows negotiations to continue at that point, bringing the link up and potentially allowing the win2k box to send us frames that are too large. AFAICT this is better than failing to bring the link up.... probably !
I have no idea how to do the equivalent of ``route get'' or ``ifconfig -a'' under win2k, so I can't tell what MTU it actually ends up using.
I believe the bug is in win2k (it's certainly mis-negotiating). I'll MFC given the release engineers permission as code freeze begins on August 1.
PR: 29277 MFC after: 3 days
|
80483 |
28-Jul-2001 |
brian |
Change permissions back to 4554/554
Suggested by: kris
|
80476 |
28-Jul-2001 |
brian |
If the peer sends a REQ without the IPADDR option, only reject it once. If they repeat the request (again without the IPADDR option) ACK it.
I've had reports that some ppp implementations will not assign themselves an IP number. This should negotiate with such things.
MFC after: 3 days
|
80385 |
26-Jul-2001 |
brian |
Handle peer REQ/NAKs of >1500 byte MRUs when we have no preference.
MFC after: 3 days
|
80316 |
25-Jul-2001 |
brian |
Change permissions from [4]554 to [4]551
MFC after: 3 days
|
80029 |
20-Jul-2001 |
obrien |
Perform a major cleanup of the usr.sbin Makefiles. These are not perfectly in agreement with each other style-wise, but they are orders of orders of magnitude more consistent style-wise than before.
|
80022 |
20-Jul-2001 |
obrien |
Remove GCC'isms in CFLAGS.
|
79854 |
18-Jul-2001 |
brian |
Bring the PPPoE Ethernet interface up *BEFORE* we send the node a CONNECT message.
MFC after: 1 week
|
79811 |
17-Jul-2001 |
brian |
Ignore (with a warning message) mtu/mru configurations that are greater than the maximum physical values.
MFC after: 1 week
|
79800 |
16-Jul-2001 |
brian |
TCPMSS adjusts all TCP SYN packets, not just outgoing ones.
Pointed out by: ru
|
79755 |
15-Jul-2001 |
dd |
Remove whitespace at EOL.
|
79650 |
13-Jul-2001 |
brian |
Perform MSS fixups on incoming packets as well as outgoing.
MFC after: 1 week
|
79454 |
09-Jul-2001 |
dd |
mdoc(7) police: remove extraneous .Pp before and/or after .Sh.
|
79450 |
09-Jul-2001 |
brian |
Fix the type of the last arg to execl()
Obtained from: OpenBSD
|
79437 |
09-Jul-2001 |
brian |
Staticise the OpenBSD SHA1_End() function
|
79435 |
09-Jul-2001 |
brian |
Stay (backwards-)compatible with OpenBSD's groff
|
79433 |
09-Jul-2001 |
brian |
Add a ``nat proto'' command -- similar to natd(8)'s -redirect_proto switch.
MFC after: 3 weeks
|
79396 |
07-Jul-2001 |
brian |
Don't try to dereference the -1th ccp algorithm array entry when we open CCP with no algorithm.
|
79376 |
07-Jul-2001 |
brian |
When we miss one or more packets in stateful mode *and* need to perform a key change, *and* our sequence numbers have wrapped, ensure that the number of key changes is calculated correctly.
The previous code counted down from a negative number to zero, re-encrypting the current key on each iteration - this took some time and strangely enough got the answer wrong !!!
Fix a(nother) spelling mistake while I'm there.
|
79370 |
06-Jul-2001 |
brian |
Spell stateful properly
Inconsistently done by: brian Spotted by: ru
|
79313 |
05-Jul-2001 |
ru |
mdoc(7) police: removed hard sentence breaks, sorted xrefs.
|
79186 |
04-Jul-2001 |
brian |
Make the last fix work properly on descriptors 1 and 2 (not just 0)
|
79173 |
04-Jul-2001 |
brian |
Handle any of descriptors 0, 1 or 2 being closed when we're envoked -- don't use them (as return values from open()), then (say) close(STDIN_FILENO) when daemonising.
This is done by grabbing 3 descriptors to /dev/null at startup and releasing them after we've daemonised.
MFC after: 1 week
|
79165 |
03-Jul-2001 |
brian |
Reduce the interface MTU by 2 when MPPE has been successfully negotiated.
This is necessary because MPPE will combine the protocol id with the payload received on the tun interface, encrypt it, then prepend its own protocol id, effectively increasing the payload by two bytes.
|
79164 |
03-Jul-2001 |
brian |
Don't accept chap80lm by default - it doesn't work.
MFC after: 1 week
|
79163 |
03-Jul-2001 |
brian |
Silence some gcc warnings
|
79119 |
03-Jul-2001 |
brian |
Do away with the ``err'' variable.
Inspired by: kris
|
79087 |
02-Jul-2001 |
kris |
Silence some of the -Wnon-const-format warnings and add __printflike() to a function prototype which needs it.
Approved by: brian MFC After: 2 weeks
|
78510 |
20-Jun-2001 |
brian |
Avoid using too many args for ``set m[tr]u''
This needs to work with OpenBSD's groff too :(
|
78444 |
18-Jun-2001 |
brian |
Call va_start/va_end for each call to vfprintf
Obtained from: OpenBSD
|
78411 |
18-Jun-2001 |
brian |
Add support for stateful MPPE (microsoft encryption) providing encryption compatibility with Windows 2000. Stateful encryption uses less CPU but is bad on lossy transports.
The ``set mppe'' command has been expanded. If it's used with any arguments, ppp will insist on encryption, closing LCP if the other end refuses.
Unfortunately, Microsoft have abused the CCP reset request so that receiving a reset request does not result in a reset ack when using MPPE...
Sponsored by: Monzoon Networks AG and FreeBSD Services Limited
|
78410 |
18-Jun-2001 |
brian |
Handle hardware-imposed MTU/MRU limitations. PPPoE will no longer allow MRU/MTU negotiations to exceed 1492.
Add an optional ``max'' specifier to ``set m[rt]u'', ie.
set mtu max 1480
Bump the ppp version number.
Sponsored by: Monzoon Networks AG and FreeBSD Services Limited
|
78275 |
15-Jun-2001 |
brian |
Correct the arg count after parsing a line with an unescaped # that isn't preceeded with whitespace.
MFC after: 3 weeks
|
78189 |
13-Jun-2001 |
brian |
Convert IIJ copyrights to BSD copyrights.
Approved by: Toshiharu OHNO <tohno@sirius.ocn.ne.jp>
|
77760 |
05-Jun-2001 |
sobomax |
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
|
77693 |
04-Jun-2001 |
brian |
Renamed to README.nat
|
77690 |
04-Jun-2001 |
brian |
Add BSD style copyrights (with permission from Charles Mott where appropriate) Deprecate -alias further (after a repo-copy)
|
77487 |
30-May-2001 |
brian |
Fix an alignment error
PR: 27766 Submitted by: Sudish Joseph <sudish@mindspring.com> MFC after: 2 weeks
|
77012 |
22-May-2001 |
brian |
Don't say ``Enter pause (-1) for redialing when we're using a random interval. Show the calculated random value instead.
Suggested by: Bill Richter <richterb@binkley.foothill.net>
|
76986 |
22-May-2001 |
brian |
If we don't receive a TY_IPADDR option as part of a configure request, NAK as if we received one with 0.0.0.0 as the argument.
|
76492 |
11-May-2001 |
brian |
Bring the interface IFF_UP from ipcp_InterfaceUp() (called from IPCP's TLU event handler).
This used to be done as a side effect of SIOCAIFADDR'ing the interface, but now that duplicate SIOCAIFADDRs are optimised out, we can't depend on that behaviour.
|
76214 |
02-May-2001 |
brian |
Handle situations where we've already got a P2P interface address of a/x -> b and then negotiate a/x -> c by simply expecting SIOCAIFADDR to do the change.
This was broken by the last commit that optimised out the deletion and re-addition of the same a/x -> b combination, and forgot to compare the old/new destination addresses.
Conveniently enough, this problem didn't effect setups where the default route goes via the ppp link, and most other setups don't care what the the destination address is actually set to. It broke test environments where ppp connects to the local machine rather badly though....
|
76026 |
26-Apr-2001 |
brian |
Fix some quotes and mention that it's usually necessary to train your modem to the correct speed when setting up an incoming getty.
|
75894 |
24-Apr-2001 |
brian |
Handle IP over IP (IPPROTO_IPV4) properly.
We now unwrap IP/IP and apply filter rules to both the outer layer (with ``set filter blah x.x.x.x y.y.y.y ipip'') and to the payload (reinterpreted by the filter rules).
``set log tcp/ip'' will now show both the outer wrapper and the (reinterpreted) payload contents.
|
75376 |
10-Apr-2001 |
brian |
kldload ng_pppoe as necessary
|
75252 |
05-Apr-2001 |
brian |
It's possible to kldload netgraph (as well as the other ng_* bits), so do it if required.
|
75212 |
05-Apr-2001 |
brian |
When we change the interface MTU, run through the routing table and tweak all route MTUs too.
|
75121 |
03-Apr-2001 |
brian |
Be a bit more persistent when the NET_RT_IFLIST sysctl returns ENOMEM rather than dropping out immediately.
|
75120 |
03-Apr-2001 |
brian |
Don't say ``PPP enabled'' if we're given the -quiet switch
|
75071 |
01-Apr-2001 |
brian |
Don't assume challenges and responses don't contain embedded '\0's.
Mschapv2 response generation may produce embedded NULs... causing us to send a bogus response to the radius server and end up failing the client's valid response.
Problem pointed out by: Eugene Vigovskiy <vigov@com2com.ru>
|
75043 |
31-Mar-2001 |
ru |
-DRELEASE_CRUNCH moved into crunchgen(1) config files for release building. Remove a hack that is no longer needed.
|
74916 |
28-Mar-2001 |
brian |
Bring the PPPoE interface UP if required
Suggested by: archie
|
74886 |
28-Mar-2001 |
brian |
Add some comments to two examples and extend a ``set ifaddr''.
|
74816 |
26-Mar-2001 |
ru |
- Backout botched attempt to introduce MANSECT feature. - MAN[1-9] -> MAN.
|
74765 |
25-Mar-2001 |
brian |
If we're adding an interface address that is already one of the interface's aliases with the same netmask and destination, don't remove it and then re-add exactly the same thing.
This means that static (non-sticky) routes that use the interface address (or destination address) as a destination will not suddenly evaporate when IPCP comes up (not unless the negotiated IPs have changed anyway).
|
74690 |
23-Mar-2001 |
brian |
Quote PPP_CONFDIR in CFLAGS
|
74687 |
23-Mar-2001 |
brian |
Change _PATH_PPP to PPP_CONFDIR and allow it to be overridden at compile time
|
74532 |
20-Mar-2001 |
ru |
Set the default manual section for usr.sbin/ to 8.
|
74477 |
19-Mar-2001 |
roger |
Allow LQR periods of 1 second and FSM retry periods of 1 second. This allows us to run PPP over Radiocontact T-Link Radio Modems which run best when something is transmitted at least every 1.5 seconds.
Tested by: Jennifer Clark <jen@telepresence.strath.ac.uk> Approved by: Brian
|
74165 |
12-Mar-2001 |
brian |
Deal with ENOENT properly on non-devfs machines Broken in revision 1.109
|
74049 |
09-Mar-2001 |
brian |
MAXHOSTNAME includes space for a NUL
|
74002 |
09-Mar-2001 |
brian |
Talk a little more about the differences between PPPoE on FreeBSD & OpenBSD.
|
74001 |
08-Mar-2001 |
brian |
MAXPATHLEN -> PATH_MAX Don't assume MAXHOSTNAMELEN includes the NUL Correct a diagnostic Use "localhost" in our prompt instead of ""
|
73988 |
08-Mar-2001 |
brian |
TUNSIFINFO now requires uid 0 to change the interface MTU.
Reviewed by: Mark Knight <markk@knigma.org>
|
73233 |
28-Feb-2001 |
ru |
Eliminate mdocNG warnings caused by misplaced or extraneous macro calls.
|
72436 |
13-Feb-2001 |
brian |
Don't even look at af_family if accept() returns sa->sa_len == 0
|
72322 |
10-Feb-2001 |
brian |
A better fix for the PacketAliasProxyRule() call.
Submitted by: Ian Dowse <iedowse@maths.tcd.ie>
|
72127 |
07-Feb-2001 |
ru |
mdoc(7) police: replace two -unfilled displays with -tag lists. This works only because of bugs in current implementation: the first .It after ``.Bd -unfilled'' re-enables filling mode and does not restore (disable) it back afterwards.
|
72025 |
04-Feb-2001 |
brian |
Add a ``Usable'' function to the ccp switch. The function is called prior to sending a CCP configure request for a given protocol. The default is to send the request, but this is overridden for MPPE which checks to see if the lcp negotiations agreed CHAP81, and if not fails.
Use the same function to decide if we should reject peer requests for MPPE.
This should get rid of those boring messages about not being able to initialise MPPE when we don't negotiate CHAP81.
|
71974 |
04-Feb-2001 |
brian |
MPPE_MasterKeyValid is only there if HAVE_DES is defined.
|
71972 |
04-Feb-2001 |
brian |
Don't send an authentication failure response if we fail sending a radius accounting packet.
|
71971 |
04-Feb-2001 |
brian |
Make the MPPE MasterKey Invalid messages a bit clearer (it now complains that you can't do MPPE without CHAP81).
Reset MasterKeyValid to zero when we hit phase DEAD.
|
71970 |
04-Feb-2001 |
brian |
Untangle some cunfusion between the CLOSE_STAYDOWN, CLOSE_LCP and CLOSE_NORMAL meanings. CLOSE_NORMAL doesn't change the currently required state, the others do. This should stop ppp from entering DATALINK_READY when LCP shutdown doesn't end up happening cleanly.
Bump our version number to reflect this change.
|
71912 |
02-Feb-2001 |
brian |
Try to kldload if_tun if we get ENOENT from opening /dev/tunN - not just if we get ENXIO.
This makes ppp work with DEVFS when if_tun isn't built into the kernel (without needing to manually kldload it).
|
71898 |
01-Feb-2001 |
ru |
mdoc(7) police: split punctuation characters + misc fixes.
|
71781 |
29-Jan-2001 |
brian |
Fix some log_Printf() casting
Obtained from: NetBSD (pkgsrc)
|
71764 |
29-Jan-2001 |
brian |
Only remove socket files with ``set server open''. Only show the mask in ``show bundle'' when it's been specified. Complain about unexpected arguments after ``set server {none,open,closed}'' Log re-open failures as warnings rather than phase messages. Fix some markup for the ``set server'' man page description.
|
71754 |
28-Jan-2001 |
brian |
Don't pass PacketAliasProxyRule() a buffer with leading whitespace as it can't handle it.
|
71660 |
26-Jan-2001 |
brian |
Fix arg count
|
71658 |
26-Jan-2001 |
brian |
If executing the stuff from ppp.linkdown results in a state change, don't continue adjusting the ipcp state machine.
This allows ``down'' to work in ppp.linkdown - useful for a tunnel setup.
|
71657 |
26-Jan-2001 |
brian |
Allow ``set server closed'' to close the diagnostic socket. Allow ``set server open'' to re-open the diagnostic socket. Handle SIGUSR1 by re-opening the diagnostic socket When receiving SIGUSR2 (and in ``set server none''), don't forget the socket details so that ``set server open'' and SIGUSR1 open it again.
Don't create the diagnostic socket as uid 0 ! It's far to dangerous.
|
71371 |
22-Jan-2001 |
brian |
Fix for NetBSD where
.Oc Oc .Xc
doesn't seem to work....
|
71356 |
22-Jan-2001 |
brian |
Handle SECDNS being rejected when PRIDNS is not
Submitted by: OGAWA Takaya <t-ogawa@triaez.kaisei.org> PR: 24518
|
71006 |
14-Jan-2001 |
brian |
Use fstat to check if descriptor 0 is a socket.
Suggested by: julian
|
70498 |
29-Dec-2000 |
brian |
Log the ``MPPE: MasterKey is invalid...'' message as a CCP diagnostic rather than a warning.
|
70403 |
27-Dec-2000 |
ru |
Prepare for mdoc(7)NG.
|
70047 |
15-Dec-2000 |
ru |
Add a missing dot.
|
70039 |
15-Dec-2000 |
brian |
Correct the documented default behaviour of mschap, mschap81 and MPPE.
Pointed out by: Mark Knight <markk@knigma.org>
|
69862 |
11-Dec-2000 |
ru |
mdoc(7) police: use canonical form of .Dd macro.
|
69433 |
01-Dec-2000 |
brian |
Mention the MTU in ``show iface''.
|
69357 |
29-Nov-2000 |
brian |
Call MSCHAP CHAP80 in ``show lcp'' so that it's consistent with CHAP81.
|
69330 |
28-Nov-2000 |
brian |
Use only the bit after the ``\'' when hashing the challenge in MSChapv2
Submitted by: Ustimenko Semen <semen@iclub.nsu.ru>
|
69303 |
28-Nov-2000 |
brian |
Add ``enable/disable tcpmssfixup'', defaulting to enabled.
Suggested by: julian Hijacked from: ru (ports/net/tcpmssd)
|
69300 |
28-Nov-2000 |
ben |
various typo and minor punctuation changes.
PR: 23111 Submitted by: Jimmy Olgeni <olgeni@uli.it>
|
68965 |
20-Nov-2000 |
ru |
mdoc(7) police: use the new features of the Nm macro.
|
68909 |
19-Nov-2000 |
brian |
Some gratuitous whitespace changes.
|
68907 |
19-Nov-2000 |
brian |
Describe how to tunnel properly.
Requested by: Greg Quinlan <greg@macquarrie.com.au>
|
68906 |
19-Nov-2000 |
brian |
Accept MSCHAPv2 by default. Enable and accept MPPE by default.
|
68846 |
16-Nov-2000 |
brian |
Go back to populating data_len in struct ngpppoe_init_data.
|
68841 |
16-Nov-2000 |
brian |
Be a bit more precise about what ``nat deny_incoming yes'' does.
|
68596 |
11-Nov-2000 |
brian |
Increase M_MAXBUF so that it's greater than HDLCSIZE
|
68575 |
10-Nov-2000 |
ru |
Avoid use of direct troff requests in mdoc(7) manual pages.
|
68461 |
07-Nov-2000 |
brian |
Introduce another global (MPPE_IsServer) so that we initiate the MPPE session keys correctly.
I'm a bit dubious about this code. It seems that the session keys are initialised differently based on whether you're the client or the server. One side is the server if it issues the first challenge, but of course you can issue a challenge from both sides.... at the same time. Sounds like another wonderful M$ assumption...
Ppp can now talk to itself correctly using encryption.
Problem solved by: Ustimenko Semen <semen@iclub.nsu.ru> Hair torn out by: me
|
68424 |
07-Nov-2000 |
brian |
Handle being given a connect()ed udp descriptor as stdin rather than assuming it's unconnected.
|
68423 |
07-Nov-2000 |
brian |
Pass the correct output options to the ccp output initialisation routine rather than passing it the first requested output option.
Ensure that options are freed correctly even if we don't reach TLU.
|
68344 |
05-Nov-2000 |
brian |
Merge some OpenBSD/NetBSD fixes to the recent MPPE/CHAP0x81 update.
|
68127 |
31-Oct-2000 |
brian |
Don't ignore the return from tcsetattr() - moan about it instead.
Suggested by: Andre Albsmeier <andre@akademie3000.de>
|
68037 |
31-Oct-2000 |
hosokawa |
Forgotten RELEASE_CRUNCH hack for mppe.c. This fix is for "make release" and "make boot.flp".
|
68032 |
31-Oct-2000 |
brian |
Use the new-style ngpppoe_init_data structure.
Approved by: archie
|
68028 |
31-Oct-2000 |
brian |
Mention that ``nat deny_incoming'' drops unrecognised IP packets.
Requested by: kris
|
67987 |
30-Oct-2000 |
brian |
Drop PKT_ALIAS_IGNORED packets if ``nat deny_incoming yes'' is in effect.
Approved by: rwatson, ru
|
67916 |
30-Oct-2000 |
brian |
Add ``all'' logging.
Submitted by: eivind
|
67915 |
30-Oct-2000 |
brian |
Bump our version to reflect the recent MPPE additions (and ccp struct size change).
|
67914 |
30-Oct-2000 |
brian |
Move the MPPE keysize display in ``show ccp''.
|
67912 |
30-Oct-2000 |
brian |
Various whitespace changes. Make some functions static.
|
67911 |
30-Oct-2000 |
brian |
staticise mbuftype()
|
67910 |
30-Oct-2000 |
brian |
Add MPPE and MSChap v2 support (denied and disabled by default)
Submitted by: Ustimenko Semen <semen@iclub.nsu.ru>
|
67825 |
28-Oct-2000 |
brian |
Ignore ``#'' properly when told to
|
67680 |
27-Oct-2000 |
brian |
Report the type of mbuf that couldn't be allocated before aborting ppp.
|
67133 |
15-Oct-2000 |
brian |
Use rad_acct_open() instead of rad_auth_open().
Suggested by: Victor Ivanov <v0rbiz@icon.bg>
|
67130 |
15-Oct-2000 |
brian |
Don't define NOATM now that /usr/include/netnatm/ is created properly.
|
66900 |
09-Oct-2000 |
brian |
If write() gives -1/ENOBUFS, keep the packet and sleep for 1/10th of a second before attempting to write it again (unless there's something else to do instead).
|
66898 |
09-Oct-2000 |
brian |
Create fd_sets big enough to handle getdtablesize() descriptors.
|
65863 |
14-Sep-2000 |
brian |
Fix some style nits
|
65862 |
14-Sep-2000 |
brian |
Support PPPoATM, disabled for now as /usr/include/netnatm doesn't exist
Submitted by: Jakob Stoklund Olesen <stoklund@taxidriver.dk>
|
65846 |
14-Sep-2000 |
brian |
Understand IPPROTO_ESP and IPPROTO_AH packets
Submitted by: Angelos D. Keromytis <angelos@dsl.cis.upenn.edu>
|
65550 |
06-Sep-2000 |
brian |
Spelling police
Submitted by: des
|
65355 |
02-Sep-2000 |
brian |
libutil.h is no longer required for setproctitle()
|
65274 |
31-Aug-2000 |
rse |
Fix resolv.conf line hint: "name-server" -> "nameserver"
|
65269 |
31-Aug-2000 |
brian |
Use arc4random() instead of random()
|
65264 |
30-Aug-2000 |
brian |
Don't treat two or more whitespace followed by a comment as an empty argument
PR: 20937 (maybe) PR: 20938
|
65263 |
30-Aug-2000 |
brian |
Complain about invalid arguments passed to ``set ifaddr''
|
65211 |
29-Aug-2000 |
brian |
Correct LogMAX
Broken by: me Submitted by: Mark Hannon <markhannon@one.net.au>
|
65210 |
29-Aug-2000 |
brian |
Use srandom() under OpenBSD
Submitted by: Matt Behrens <matt@megaweapon.zigg.com>
|
65181 |
28-Aug-2000 |
brian |
Add LogFILTER logging to log packets allowed by the dial filter and dropped by any filter.
Submitted by: Mark Hannon <markhannon@one.net.au>
with some small tweaks by me.
|
65178 |
28-Aug-2000 |
brian |
Support radius accounting, and add a packet count to throughput statistics as a side effect.
Submitted by: Marcin Cieslak <saper@system.pl>
with some tweaks to RAD_ACCT_SESSION_ID and RAD_ACCT_MULTI_SESSION_ID generation by me.
|
64802 |
18-Aug-2000 |
brian |
Make -DNOSUID (or -DPPP_NOSUID) possible to build ppp without SUID capabilities.
|
64801 |
18-Aug-2000 |
brian |
Warn that the ``alias'' command is depricated. We still process it for now though.
|
64780 |
17-Aug-2000 |
brian |
If we're in MP mode with a single open link, MP link level compression isn't open and the links MRU >= our MRRU, send outbound traffic as PROTO_IP rather than PROTO_MP. This shaves some bytes off the front of each packet 'till the second link is brought up.
Idea obtained from: Cisco
|
64706 |
16-Aug-2000 |
brian |
ISDN B channels have a bandwidth of 64000, not 65536
Pointed out by: Christian Weisgerber <naddy@mips.inka.de>
|
64698 |
16-Aug-2000 |
brian |
setproctitle() doesn't need to be called with root privs, so move it from id.c into defs.c
|
64697 |
16-Aug-2000 |
brian |
Default the bandwidth of an ISDN B channel to 65536bps
|
64670 |
15-Aug-2000 |
brian |
Maintain input and output throughput averages and choose the highest of the two when calculating the MP throughput average for the ``set autoload'' implementation.
This makes more sense as all links I know of are full-duplex. This also means that people may need to adjust their autoload settings as 100% bandwidth is now the theoretical maximum rather than 200% (but of course, halfing the current settings is probably not the correct answer either!).
This involves a ppp version bump as we need to pass an extra throughput array through the MP local domain socket.
|
64652 |
15-Aug-2000 |
brian |
Calculate the average link throughput using a counter based on the cumulative total of all active links rather than basing it on the total of PROTO_MP traffic.
This fixes a problem whereby Cisco routers send PROTO_IP packets only when there's only one link (hmm, what a good idea!).
|
64637 |
14-Aug-2000 |
brian |
Don't delete sticky routes when unconfiguring the interface. Deleting all routes that match the interface is sufficient.
|
64627 |
13-Aug-2000 |
brian |
Index: ppp.8 =================================================================== RCS file: /home/ncvs/src/usr.sbin/ppp/ppp.8,v retrieving revision 1.233 diff -u -r1.233 ppp.8 --- ppp.8 2000/08/10 13:26:01 1.233 +++ ppp.8 2000/08/12 19:50:41 @@ -1,8 +1,8 @@ .\" $FreeBSD: src/usr.sbin/ppp/ppp.8,v 1.233 2000/08/10 13:26:01 brian Exp $ .Dd 20 September 1995 .nr XX \w'\fC00' -.Os FreeBSD .Dt PPP 8 +.Os .Sh NAME .Nm ppp .Nd Point to Point Protocol (a.k.a. user-ppp)
|
64489 |
10-Aug-2000 |
brian |
Mention that pppoe requires netgraph(4) and without it, an external pppoe program must be used (such as pppoe(8) on OpenBSD).
|
64465 |
09-Aug-2000 |
brian |
Allow leading ``!'' characters in authkeys and chat scripts to be doubled up to mean a single literaly ``!''.
|
64451 |
09-Aug-2000 |
brian |
If the first character of the ``set title'' argument is `-', put it into the format string, supporting ps's tweak to setproctitle().
|
63637 |
20-Jul-2000 |
brian |
Don't mis-interpret sockaddr_in6 structures as sockaddr_in structures when purging routes.
|
63508 |
19-Jul-2000 |
brian |
Describe the new VERSION and COMPILATIONDATE macros and mention that the ``ident'' command will expand macros.
|
63484 |
19-Jul-2000 |
brian |
Support link identification from rfc1570 Two new commands are available; ``ident'' and ``sendident''.
|
63052 |
12-Jul-2000 |
brian |
Permit multiple ``allow user'' lines in any given section This avoids line length limits when large numbers of users are allowed access to ppp.
|
63023 |
12-Jul-2000 |
brian |
Correct ``set filter'' usage
Spotted by: sheldonh
|
63020 |
12-Jul-2000 |
brian |
Fix a rather nasty latency problem that occurs with single tcp sessions thorough an MP setup with only a single link.
|
62977 |
11-Jul-2000 |
brian |
Allow a ``timeout secs'' filter option to let specific packet types effect the idle timer in different ways.
Submitted by: Stefan Esser <se@freebsd.org>
With adjustments by me to document the option in the man page and to give the same semantics for outgoing traffic as incoming.
I made the style more consistent in ip.c - this should really have been done as a separate commit.
|
62938 |
11-Jul-2000 |
brian |
Fix -auto breakage introduced with the last commit.
|
62778 |
07-Jul-2000 |
brian |
o Log the (payload/size) of all packet types, not just TCP packets
o If the new ``filter-decapsulation'' is enabled, delve into UDP packets that contain 0xff 0x03 as the first two bytes, and if we recognise it as PROTO_IP, decapsulate it for the purpose of filter checking.
If we recognise it as PROTO_<anything else> mention this for logging purposes only.
This change is aimed at people running PPPoUDP where the UDP traffic is being sent over another PPP link. It's desireable to have the top level link connected all the time, but to have the bottom level link capable of decapsulating the traffic and comparing the payload against the filters, thus allowing ``set filter dial ...'' to work in tunnelled environments.
The caveat here is that the top ppp cannot employ any compression layers without making the data unreadable for the bottom ppp. ``disable deflate pred1 vj'' and ``deny deflate pred1 vj'' is suggested.
|
62209 |
28-Jun-2000 |
brian |
kldload ng_ether if we need to.
|
62041 |
24-Jun-2000 |
brian |
Don't assign an MTU based on the peers first-link MRU in MP mode. Use the peers MRRU as we're supposed to.
|
62000 |
23-Jun-2000 |
brian |
Fix a printf-style arg cast (again)
|
61999 |
23-Jun-2000 |
brian |
e.g. -> e.g.,
Obtained from: OpenBSD
|
61973 |
22-Jun-2000 |
brian |
Correct PPPoE in multi-link mode Submitted by: jason@OpenBSD.org
|
61863 |
20-Jun-2000 |
brian |
Remove ``nat pptp'' as this is now done transparently by libalias.
|
61852 |
20-Jun-2000 |
brian |
Allow padding in LQR ECHO requests
Problem found by: Tomaz Borstnar <tomaz.borstnar@over.net>
|
61830 |
19-Jun-2000 |
brian |
Don't mis-match interface names in iface_Create()
Submitted by: Adrian Penisoara <ady@freebsd.ady.ro>
|
61800 |
18-Jun-2000 |
brian |
Fix a printf-style format error
|
61621 |
13-Jun-2000 |
brian |
A few more hard-sentence breaks.
|
61555 |
11-Jun-2000 |
brian |
Hard sentence breaks and trailing space tidy-ups
Obtained from: OpenBSD
|
61547 |
11-Jun-2000 |
brian |
Don't oan about padding characters
|
61534 |
11-Jun-2000 |
brian |
Add ``set ifqueue'' to control the size of the outgoing packet queue. Doing ``set ifqueue 0'' and ``set urgent none'' will allow full use of luigi's WF2Q code.
Requested by: luigi
|
61430 |
08-Jun-2000 |
brian |
Allow ``set urgent none'' to disable all urgent ports and IPTOS_LOWDELAY prioritisation.
Requested by: luigi
|
61129 |
31-May-2000 |
brian |
Use mp_CheckAutoloadTimer() rather than mp_StopAutoloadTimer() when opening or closing an auto link due to the autoload setting.
Spotted by: David Hedley <david@inty.co.uk>
|
61111 |
31-May-2000 |
brian |
Don't use the umask to chmod local domain server sockets, use the mask
|
60957 |
26-May-2000 |
brian |
If the fsm header reports a length greater than the packet size, drop the packet rather than just whinging about it in the log. If the fsm header has a smaller length, continue to whinge.
|
60946 |
26-May-2000 |
brian |
Remove an unused variable
|
60945 |
26-May-2000 |
brian |
When we do a ``dial'' or ``open'' from DATALINK_READY, go to DATALINK_CARRIER and turn off scripting.
This should fix instances where ``term'' is used followed by ~. and then ``dial''/``open'' (it currently just sits there looking at you).
Reported by: Tim Vanderhoek <vanderh@ecf.utoronto.ca>
|
60922 |
25-May-2000 |
brian |
Fix a topy (if (expr); command;)
Submitted by: Renaud Waldura <renaud@guppy.evolunet.com>
|
60888 |
24-May-2000 |
brian |
The name /var/log/alias.log is *not* likely to change in the near future...
|
60878 |
24-May-2000 |
brian |
Mention what ``enable proxy'' actually does
|
60864 |
24-May-2000 |
brian |
Honour ``set speed sync'' and ``set device !program'' when used together by creating a SOCK_DGRAM socketpair() between the processes.
Be polite when closing !program links and send a HUP to the process. This makes ssh tunnels over unreliable media (such as via httptunnel) reconnect properly.
|
60863 |
24-May-2000 |
brian |
Mention it in the log file when we HUP a process that controls a link.
|
60839 |
24-May-2000 |
brian |
Don't attempt to fputs(NULL, fp) when ``enable dns'' is given and there's no resolv.conf. Use a umask of 022 when creating resolv.conf, not 0644 !
|
60827 |
23-May-2000 |
brian |
Always pass packets through libalias when NAT is enabled.
Submitted by: luoqi Forgotten by: me
|
60779 |
22-May-2000 |
brian |
Return -2 when tcp_OpenConnection() fails so that ppp doesn't report that the device name is of an invalid format.
|
60778 |
22-May-2000 |
brian |
Be more verbose when a second link doesn't match the first because the peer enddisc/authname is different.
|
60367 |
11-May-2000 |
brian |
Fix a typo
|
60365 |
11-May-2000 |
brian |
Mention that the default is to let external traffic route to the internal network when NAT is enabled.
Allow ``set target MYADDR'' to stop packets at the gateway.
|
60135 |
07-May-2000 |
brian |
Correct a bad bug in m_prepend()
Submitted by: luoqi
|
59187 |
13-Apr-2000 |
brian |
Remove a rogue space
|
59104 |
09-Apr-2000 |
brian |
Add a missing ``break''
|
59084 |
07-Apr-2000 |
brian |
When running ppp -background, show comfort messages showing when we're redialing/reconnecting.
While we're here, log redial, reconnect and phone number announcements to LogCHAT, and reduce some other logging to LogDEBUG.
|
59070 |
06-Apr-2000 |
brian |
I didn't get this right the last time....
When an NCP reaches TLF, *ONLY* datalink_Close() links that are in DATALINK_OPEN.
When the last link reaches TLD, DOWN all NCPs (as we used to in the links TLF (which was the wrong place anyway)), as the NCPs aren't now going to datalink_Close() us unexpectedly, we get to continue doing what we were told to do in the first place.
The result: When we lose a link, the IPCP layer goes down and we actually call the stuff in ppp.linkdown !
|
59005 |
04-Apr-2000 |
gj |
Pass me the pointy hat.
It was not a good idea to remove csu_header from struct cspace, it had ramifications which I didn't notice.
Restore src/usr.sbin/ppp/slcompress.h to the way it was, since MAX_HDR was already defined as 128 there and it's a user program anyway.
In sys/net/slcompress.h make MAX_HDR 128 intead of MLEN to avoid bloat.
My apologies for any inconvenience.
|
58983 |
03-Apr-2000 |
brian |
Plug two file descriptor leaks
|
58982 |
03-Apr-2000 |
gj |
Nuke csu_hdr from struct cspace. csu_hdr is not used anywhere in the tree. This considerably reduces unnecessary bloat in struct slcompress.
I'm running with this change right now and have seen no negative side-effects.
On my sytem this reduced kernel BSS by about 25KB.
Submitted by: bde Approved by: brian for user-ppp
|
58880 |
31-Mar-2000 |
brian |
Allow authname to be changed at any phase, just emit a warning if it's not DEAD or ESTABLISH
|
58878 |
31-Mar-2000 |
brian |
Use INADDR_NONE with PacketAliasSetTarget() if no args are given to ``nat target'', and suggest the use of ``nat target default'' as an interesting possibility.
|
58868 |
31-Mar-2000 |
brian |
Undo the damage done to this file in my last commit
|
58867 |
31-Mar-2000 |
brian |
Add the ``nat target'' command.
|
58830 |
30-Mar-2000 |
brian |
Correct address parsing
Pointed out by: Maxim Sobolev <sobomax@altavista.net>
|
58776 |
29-Mar-2000 |
brian |
Log information about packets being dropped (probably due to ``nat deny_incoming yes'') by libalias.
|
58775 |
29-Mar-2000 |
brian |
Allow the use of hostnames instead of (and as well as) IP numbers in all commands. If people use hostnames and have dodgy resolvers or try to resolve the hostname before the link is up, they get what they deserve....
Requested by: ru
|
58759 |
29-Mar-2000 |
brian |
Mention the value of the unexpected return code in nat_LayerPull()
|
58745 |
28-Mar-2000 |
brian |
don't treat # specially if PARSE_NOHASH is passed
|
58744 |
28-Mar-2000 |
brian |
Don't treat # specially here
|
58457 |
22-Mar-2000 |
brian |
Correct the parent notification diagnostic emitted from the child process in -background mode (it should report failure if appropriate).
|
58456 |
22-Mar-2000 |
brian |
If a links LCP FSM has reached TLF and it's the last link, don't bother to re-initialise the NCPs. Instead wait for bundle_LinkClosed() to be called - IFF it actually is called.
By initialising the NCPs at this point, ppp was recursing back into the fsm_Down() routing for the link, and losing track of the reason that the link was being brought down. The end result was that ``set reconnect'' would never do anything.
Patiently pointed out by: ru
|
58455 |
22-Mar-2000 |
brian |
Don't bother setting the dial timer if we've closed a background/foreground/direct and zero'd the redial/reconnect counts.
|
58454 |
22-Mar-2000 |
brian |
Do some vfork() trickery so that the parent can determine if the childs exec() has succeeded or failed by taking advantage of the fact that both processes share the same memory.
FWIW: I tried to implement this by doing a pipe(), setting the write desciptors close-on-exec flag in the child and writing errno to the descriptor if the exec() fails. The parent can then ``if (read()) got errno else exec worked''.
This didn't work though - the child could write() to fd[1] on exec failure, but the parent got 0 trying to read() from fd[0] ! Is this a bug in execve() ?
|
58453 |
22-Mar-2000 |
brian |
Call bundle_CleanDatalinks() after UpdateSet() in case we're dropping out of background/foreground/direct mode.
This avoids either having to wait for the redial timer before exiting or jaming up in select() waiting for something that'll never happen.
|
58285 |
19-Mar-2000 |
brian |
Add some diagnostics to prove that incoming IP fragments are being dealt with correctly.
|
58147 |
16-Mar-2000 |
brian |
Move a comment to make things a bit more readable.
Suggested by: sheldonh Forgotten by: me
|
58073 |
14-Mar-2000 |
brian |
Increase bit fields to allow for new values
|
58072 |
14-Mar-2000 |
brian |
ppps -> ppp's; suggested by sheldonh .Nm ppp -> .Nm; overlooked by me Microsofts -> Microsoft's; OpenBSD
|
58071 |
14-Mar-2000 |
brian |
Understand -DNOINET6
|
58045 |
14-Mar-2000 |
brian |
Understand environment variables in commands
Submitted by: Mark Knight <markk@knigma.org>
|
58044 |
14-Mar-2000 |
brian |
Add the ``resolv'' command for telling ppp how to deal with resolv.conf. You can now ``resolv restore'' in ppp.linkdown ! Add DNS0 and DNS1 macros.
|
58043 |
14-Mar-2000 |
brian |
Refresh the NAT IP pointer after a potential mbuf reallocation. This caused frequent lock-ups for individual sessions over a NAT'd ppp link when MTU sizes ended up more or less exactly wrong.
|
58042 |
14-Mar-2000 |
brian |
Fix some printf-style argument bugs
|
58041 |
14-Mar-2000 |
brian |
Fix some typos
Obtained from: OpenBSD
|
58040 |
14-Mar-2000 |
brian |
Adjust whitespace
|
58039 |
14-Mar-2000 |
brian |
Don't include netinet6/in6.h directly.
|
58038 |
14-Mar-2000 |
brian |
Correct some typos introduced in the descriptor -> fdescriptor change.
|
58037 |
14-Mar-2000 |
brian |
Introduce LOCALNAT and LOCALRAD defines so that the sources can stay exactly the same in FreeBSD & OpenBSD despite libalias and libradius being local to the ppp sources under OpenBSD.
|
58036 |
14-Mar-2000 |
brian |
Correct UN_SIZE definition
Submitted by: Ben Smithurst <ben@scientia.demon.co.uk>
|
58035 |
14-Mar-2000 |
brian |
Don't ``break'' when we come accross a non-RTM_IFINFO type entry in the block returned by the NET_RT_IFLIST mib, ``continue''
Broken a few minutes ago by: me
|
58034 |
14-Mar-2000 |
brian |
When ppp can't identify the relevant name, don't use "???", use <nnn> or <0xxxx> instead.
|
58033 |
14-Mar-2000 |
brian |
Add ``set log dns'' to log DNS QUERY packets.
This is invaluable for dial-on-demand connections... In ppp.linkup:
set log -dns -tcp/ip
and in ppp.linkdown
set log +dns +tcp/ip
giving a much better account of why the link came up.
|
58032 |
14-Mar-2000 |
brian |
The interface list that comes back from the PF_ROUTE/NET_RT_IFLIST mib is aligned. Teach this to ``show route''.
Clean up some of the sockaddr parsing routines.
|
58031 |
14-Mar-2000 |
brian |
Support IP6 addresses in ``show route''
Also, don't try to output routing entries if either the RTA_DST or RTA_GATEWAY sockaddrs aren't present.
|
58030 |
14-Mar-2000 |
brian |
When adjusting timer::rest, round to the closest TICKUNIT usecs value.
This has minimal impact here, but if ppp ever needs to frequently remove timers before they've timed out, it can badly skew the next item in the timer list without this change.
The correct fix would be to store usecs in `rest' rather than TICKUNITs, but the math is easier if we just round...
|
58029 |
14-Mar-2000 |
brian |
When we stop a timer that's the first in the timer list, ensure that we adjust that timers `rest' value (with the current getitimer() values) before using that to adjust the next items `rest' value. After adjusting that value, restart the timer service so that we've now got the correct setitimer() values.
|
58028 |
14-Mar-2000 |
brian |
To avoid namespace polution in NetBSD:
``struct descriptor'' -> ``struct fdescriptor''
|
57921 |
11-Mar-2000 |
kris |
Remove the last vestiges of libRSAglue now that it's an empty stub. This should fix the buildworld problems some people were seeing.
Approved by: jkh
|
57841 |
09-Mar-2000 |
kris |
Buildworld fixes for NO_OPENSSH and NO_OPENSSL
Approved by: jkh
|
57695 |
02-Mar-2000 |
sheldonh |
Remove more single-space hard sentence breaks.
|
57624 |
29-Feb-2000 |
markm |
Update DISTRIBUTION for new crypto world order
|
57451 |
24-Feb-2000 |
markm |
Use libcrypto instead of libdes.
|
57001 |
05-Feb-2000 |
ru |
Unbroke the reference to libalias(3).
|
56800 |
29-Jan-2000 |
brian |
Remove MAINTAINER=
I don't claim to own the code and certainly don't want to discourage people from fixing or updating it.
[I know it's the 29th, but the FREEZE hasn't yet been posted to committers]
|
56656 |
27-Jan-2000 |
brian |
If we're in callback mode, don't forget this fact when we get into datalink_Down().
Submitted by: David Hedley <david@inty.co.uk>
|
56655 |
27-Jan-2000 |
brian |
Actually ignore comments at the end of lines - broken with the commit that made ppp *not* treat #s in quoted arguments as comments.
|
56413 |
23-Jan-2000 |
brian |
Handle the availability of TUNSIFHEAD. If it's there, use it.
For the moment this is just overhead, but it'll be used for INET6 support later.
|
56350 |
21-Jan-2000 |
brian |
Use TUNSIFPID when we change our PID (if it exists).
|
56175 |
17-Jan-2000 |
brian |
Use AUTHLEN for the length of authname
|
55531 |
07-Jan-2000 |
brian |
Don't set ifaddr::in_addrs to 1 after an ``iface clear'' on an interface with no addresses.
|
55530 |
07-Jan-2000 |
brian |
include stdlib.h (setproctitle() is prototyped there in OpenBSD)
|
55529 |
07-Jan-2000 |
brian |
Call serial devices ``cuaXX'' instead of ``cuaaX'' (in line with OpenBSD conventions).
|
55528 |
07-Jan-2000 |
brian |
.Bl -tag requires -width too
Obtained from: OpenBSD
|
55527 |
07-Jan-2000 |
brian |
Remove an unused #define
|
55353 |
03-Jan-2000 |
brian |
Ensure that there's a bit of extra space in our buffer when it's passed to libalias. If there's not enough space, things like ftp PORT commands start failing....
Reported by: Gianmarco Giovannelli <gmarco@giovannelli.it>
|
55272 |
30-Dec-1999 |
brian |
Increase M_MAXLEN from 2048 - sizeof struct mbuf to 4096 - sizeof struct mbuf, and set MAX_MRU and MAX_MTU back to 2048.
2048 is big enough as an MTU/MRU, but we need to be able to allocate larger mbufs after reassembling IP fragments.
|
55253 |
30-Dec-1999 |
brian |
Add a few missing #includes
|
55252 |
30-Dec-1999 |
brian |
Correct usages of getuid() and geteuid()
Pointed out by: billf
|
55246 |
29-Dec-1999 |
brian |
Mention that it's only necessary to escape the '-' in chat scripts twice (once for the arg parsing and once to make it a normal character). Make the man page example consistent.
Reminded by: Bryan Liesner <bleez@netaxs.com>
|
55146 |
27-Dec-1999 |
brian |
Add a bunch of `const's and fix a typo.
Submitted by: Rich Neswold <rneswold@MCS.Net>
|
55145 |
27-Dec-1999 |
brian |
Don't allowt '#' as a comment when it's embedded in quotes:
set something "xxx yyy # zzz" aaa
shouldn't be interpreted as
set something "xxx yyy" aaa
|
55066 |
23-Dec-1999 |
brian |
Don't bother fork()ing after closing a ctty if ppp is about to terminate anyway.
|
55065 |
23-Dec-1999 |
brian |
Understand double-quotes anywhere on a command line in the same way that a shell does. The previous way ppp did it just didn't make any sense.
|
55064 |
23-Dec-1999 |
brian |
Correct warning about unindented commands when the unindented command is actually a new label with a comment at the end of the line.
|
55013 |
22-Dec-1999 |
brian |
Don't munge ``set dial|login|logout|hangup'' arguments before ExpandString() has a chance to do its own substitutions.
|
54921 |
20-Dec-1999 |
brian |
Fix my '#'-at-end-of-lines change, spammed by a subsequent commit.
|
54919 |
20-Dec-1999 |
brian |
Use getpwuid()->pw_dir instead of $HOME when expanding ``~''.
|
54918 |
20-Dec-1999 |
brian |
Use getpwuid() instead of getlogin() in ``allow users''.
|
54917 |
20-Dec-1999 |
brian |
Add missing linefeed.
|
54916 |
20-Dec-1999 |
brian |
Cosmetic: clean up some parenthesis confusion
|
54915 |
20-Dec-1999 |
brian |
Handle comments at the end of lines.
|
54914 |
20-Dec-1999 |
brian |
Notice and warn about unterminated quoted strings in commands. The entire command is ignored if the syntax is invalid...
|
54913 |
20-Dec-1999 |
brian |
Implement mbuf allocation internally by maintaining 8 buckets of different sized mbufs, and mallocing them in chunks of 20 mbufs at a time.
This improves back-to-back throughput by between 7 and 8%
|
54912 |
20-Dec-1999 |
brian |
Cosmetic: Make struct mbuf more like kernel mbufs.
|
54766 |
18-Dec-1999 |
brian |
Learn to do pointer arithmatic (doh!)
|
54569 |
13-Dec-1999 |
brian |
Handle PPPoPTY correctly.
|
54055 |
03-Dec-1999 |
brian |
Be careful not to re-initialise `struct stat' while it still has a running timer. This fixes a problem where a dial is manually aborted, the hangup script kicks in and the chat timer ends up on the timer queue twice (tick tick tick tick *boom*)
|
53970 |
30-Nov-1999 |
brian |
Change the way we transfer links (again). The previous method avoided all race conditions, but suffered from sometimes running out of buffer space if enough clients were piled up at the same time.
Now, the client pushes the link descriptor, one end of a socketpair() and the ppp version via sendmsg() at the server. The server replies with a pid. The client then transfers any link lock with uu_lock_txfr() and writev()s the actual link contents. The socketpair is now the only place we need to have large socket buffers and the bind()ed socket can keep the default 4k buffer while still handling around 90 racing clients.
|
53889 |
29-Nov-1999 |
brian |
depricated -> deprecated + mention the -alias flag status in README.changes
|
53831 |
28-Nov-1999 |
brian |
Don't try to do a DIALOUT in -direct mode or if there's no phone numbers set.
|
53830 |
28-Nov-1999 |
brian |
Make -foreground a proper option (allowing ``allow mode foreground'', ``set mode foreground'' etc.
|
53734 |
26-Nov-1999 |
brian |
Allow extended pap success messages by believing in the PAP headers length field rather than the one byte message length field embedded in the packet. This steps slightly outside of the protocol boundaries, but should not cause any problems.
Limitation noted by: Simon Winwood <simon@winwood.org>
|
53733 |
26-Nov-1999 |
brian |
Change ``set cd'' so that its default value is device specific. The default is still 1 second for ttys, but is now 6 seconds for i4b (ISDN) devices and 5 seconds for ethernet (PPPoE) devices.
|
53684 |
25-Nov-1999 |
brian |
Rewrite the link descriptor transfer code in MP mode.
Previously, ppp attempted to bind() to a local domain tcp socket based on the peer authname & enddisc. If it succeeded, it listen()ed and became MP server. If it failed, it connect()ed and became MP client. The server then select()ed on the descriptor, accept()ed it and wrote its pid to it then read the link data & link file descriptor, and finally sent an ack (``!''). The client would read() the server pid, transfer the link lock to that pid, send the link data & descriptor and read the ack. It would then close the descriptor and clean up.
There was a race between the bind() and listen() where someone could attempt to connect() and fail.
This change removes the race. Now ppp makes the RCVBUF big enough on a socket descriptor and attempts to bind() to a local domain *udp* socket (same name as before). If it succeeds, it becomes MP server. If it fails, it sets the SNDBUF and connect()s, becoming MP client. The server select()s on the descriptor and recvmsg()s the message, insisting on at least two descriptors (plus the link data). It uses the second descriptor to write() its pid then read()s an ack (``!''). The client creates a socketpair() and sendmsg()s the link data, link descriptor and one of the socketpair descriptors. It then read()s the server pid from the other socketpair descriptor, transfers any locks and write()s an ack.
Now, there can be no race, and a connect() failure indicates a stale socket file.
This also fixes MP ppp over ethernet, where the struct msghdr was being misconstructed when transferring the control socket descriptor.
Also, if we fail to send the link, don't hang around in a ``session owner'' state, just do the setsid() and fork() if it's required to disown a tty.
UDP idea suggested by: Chris Bennet from Mindspring at FreeBSDCon
|
53606 |
23-Nov-1999 |
brian |
Don't setuid() 'till we've called ID0setproctitle()
|
53535 |
21-Nov-1999 |
brian |
Call MkSockNode() as uid 0
Forgotten by: julian
|
53455 |
20-Nov-1999 |
brian |
Don't compile NETGRAPH out of ppp for the release crunch
|
53436 |
19-Nov-1999 |
brian |
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.
|
53298 |
17-Nov-1999 |
brian |
Fix ``set proctitle'' by using setproctitle().
|
53242 |
16-Nov-1999 |
brian |
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.
|
53241 |
16-Nov-1999 |
brian |
Use modfind() to check if a kld is already loaded.
Submitted mostly by: green
|
53125 |
13-Nov-1999 |
brian |
Don't insist on 4 digit umasks in ``set server''.
Pointed out by: joerg
|
53124 |
13-Nov-1999 |
brian |
Make the meaning of the provider part of the PPPoE device spec clearer.
|
53089 |
11-Nov-1999 |
brian |
Oops, netgraph.o -> ether.o for the RELEASE build.
|
53071 |
09-Nov-1999 |
brian |
If dev->connected is already set to CARRIER_OK in ether_AwaitCarrier, don't go and set it to CARRIER_LOST !
|
53070 |
09-Nov-1999 |
brian |
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.
|
53067 |
09-Nov-1999 |
brian |
Correct the ``-unix X'' parsing (last time I only corrected ``-unitX''.
Pointed out twice by: Gert-Jan Vons <gert-jan@bigfoot.com>
|
53062 |
09-Nov-1999 |
brian |
Be a bit smarter when identifying a netgraph node (don't dereference NULL).
|
53043 |
09-Nov-1999 |
brian |
Don't treat -unit as a mode flag when counting mode flags.
Submitted by: Gert-Jan Vons <gert-jan@bigfoot.com>
|
53035 |
09-Nov-1999 |
brian |
Add an empty netgraph.o when building a release to keep the crunch stuff happy.
Breakage spotted by: phk
|
52963 |
07-Nov-1999 |
brian |
Don't zero-pad netgraph node ids
Recommended by: julian
|
52942 |
06-Nov-1999 |
brian |
Support PPPoE
Help (lots) from: julian, archie Facilities from: ahebert@pubnix.net
|
52488 |
25-Oct-1999 |
brian |
Introduce ``set logout''; another chat script. This is in preparation for the abstraction of ``set dial'' and ``set hangup''.
|
52487 |
25-Oct-1999 |
brian |
Don't (unnecessarily) parse wtmp, force ID0logout() to DTRT instead.
|
52429 |
21-Oct-1999 |
brian |
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.
|
52413 |
21-Oct-1999 |
brian |
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.
|
52412 |
21-Oct-1999 |
brian |
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.
|
52396 |
19-Oct-1999 |
brian |
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.
|
52315 |
16-Oct-1999 |
brian |
Correct a few diagnostics
|
52304 |
16-Oct-1999 |
brian |
Don't ntohl() the signature before printing it... it's already been done.
Spotted by: Gert-Jan Vons <gert-jan@bigfoot.com>
|
52267 |
15-Oct-1999 |
brian |
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>
|
52266 |
15-Oct-1999 |
brian |
When we get the last NCP TLD, close all datalinks with CLOSE_STAYDOWN rather than CLOSE_NORMAL.
|
52265 |
15-Oct-1999 |
brian |
Redefine CRTS_IFLOW and CCTS_OFLOW on the mac.
Submitted by: Kazuyoshi Kato <kazk@yyy.or.jp>
|
52197 |
13-Oct-1999 |
brian |
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>
|
52029 |
08-Oct-1999 |
brian |
Revert the 1.44 -> 1.45 change. It doesn't work as expected.
|
51978 |
07-Oct-1999 |
brian |
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
|
51970 |
06-Oct-1999 |
brian |
Mention the received/expected magic for dodgy ECHO LQRs.
|
51945 |
05-Oct-1999 |
brian |
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.
|
51809 |
30-Sep-1999 |
brian |
Support GRE packets
Submitted by: Harry Starr <starr@gccs.com.au>
|
51699 |
26-Sep-1999 |
brian |
Support ``set cd off'' to tell ppp not to even look for carrier on the device.
|
51634 |
24-Sep-1999 |
brian |
Typo
Submitted by: Alex Nash <nash@mcs.net>
|
51526 |
22-Sep-1999 |
brian |
Allow ``make -DNOKLDLOAD''
|
51525 |
22-Sep-1999 |
brian |
Do a kldload() if we get ENXIO trying to open /dev/tun0
Originally submitted by: green
|
51517 |
21-Sep-1999 |
brian |
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>
|
51489 |
21-Sep-1999 |
brian |
Fix the ``lt'' comparison in ``set filter''
PR: 13819 Submitted by: Dean M. Phillips <dphill@inav.net>
|
51457 |
20-Sep-1999 |
phantom |
Correct spelling : ascii -> ASCII
PR: docs/13702 Submitted by: Stephen J. Roznowski <sjr@home.com> Reviewed by: mpp
|
51449 |
20-Sep-1999 |
brian |
NetBSD has moved ``extern int errno;'' to signal.h :-/
Submitted by: Kazuyoshi Kato <kazk@yyy.or.jp>
|
51447 |
20-Sep-1999 |
brian |
NetBSD requires net/if.h for the IFF_* defines (as well as OpenBSD) !
|
51333 |
16-Sep-1999 |
brian |
Correct the return from FilterCheck for fragments
PR: 13771 Submitted by: Dean M. Phillips <dphill@inav.net>
|
51075 |
08-Sep-1999 |
brian |
Cosmetic: alias_cmd -> nat_cmd after a repo-copy
|
51062 |
07-Sep-1999 |
brian |
We don't need a queue for *CP data - these are IP-only queues.
|
51048 |
07-Sep-1999 |
brian |
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.
|
51027 |
06-Sep-1999 |
brian |
Make the ``Problem with IP header length'' error a bit more verbose
|
51026 |
06-Sep-1999 |
brian |
$FreeBSD$ -> __DATE__
This is probably more appropriate that $Date$ anyway
|
51005 |
06-Sep-1999 |
brian |
When logging warning messages, there are now three scenarios: o If a prompt is executing the command, only display the warning to that prompt o If a prompt is executing a ``load'' command, display the warning to all prompts *and* syslog o Otherwise, display the warning to all prompts *and* syslog.
|
50999 |
06-Sep-1999 |
peter |
$Date$ -> $FreeBSD$
|
50867 |
04-Sep-1999 |
brian |
o Split the two IPCP queues into three - one for FSM data (LCP/CCP/IPCP), one for urgent IP traffic and one for everything else. o Add the ``set urgent'' command for adjusting the list of urgent port numbers. The default urgent ports are 21, 22, 23, 513, 514, 543 and 544 (Ports 80 and 81 have been removed from the default priority list). o Increase the buffered packet threshold from 20 to 30. o Report the number of packets in the IP output queue and the list of urgent ports under ``show ipcp''.
|
50840 |
03-Sep-1999 |
brian |
When sending radius authentication requests:
Supply RAD_NAS_IDENTIFIER if we have a `hostname` and RAD_IP_ADDRESS if that hostname resolves.
Supply RAD_NAS_PORT using the ttyslot() of the tty that we're authenticating on if it's a tty device.
Partially submitted by: Andriy I Pilipenko <bamby@marka.net.ua> PR: 12225
|
50479 |
28-Aug-1999 |
peter |
$Id$ -> $FreeBSD$
|
50438 |
27-Aug-1999 |
jkh |
I misunderstood the failure mode - revert BINMODE to 4554. I'm still going to remove ppp from the installation options in 5 days if ppp is still broken, however, as it hasn't worked at installation time for several weeks now and it's only causing people to fill my mailbox with questions.
|
50432 |
27-Aug-1999 |
jkh |
I don't know who decided that an install mode of 4544 was correct, but for a binary it's far from it. This is why sysinstall is unable to run ppp at startup time and causing weirdies in -current.
|
50427 |
26-Aug-1999 |
brian |
Rebuild the list of interface numbers to names if we're trying to evaluate an interface number that didn't previously exist.
|
50393 |
26-Aug-1999 |
brian |
Aligh mbufs to sizeof(long), not 4
|
50372 |
25-Aug-1999 |
brian |
Fix some mdoc(7) style inconsistences Submitted by: Alexey M. Zelkin" <phantom@cris.net>
|
50264 |
23-Aug-1999 |
brian |
Cosmetic: bring closer to RELENG_3
|
50191 |
22-Aug-1999 |
brian |
NOALIAS -> NONAT Reminded by: jkh
|
50139 |
22-Aug-1999 |
brian |
Allow authkey to be changed independently of the current phase.
|
50059 |
19-Aug-1999 |
brian |
o Add the -foreground switch. This switch behaves like -background except that ppp stays in the foreground. o Add the -quiet switch to quieten ppps startup o Add the -nat flag and discourage the use of the -alias flag. Both do the same thing. o Correct some nat usage strings. o Change the internal ``alias'' command to ``nat''.
|
50014 |
18-Aug-1999 |
brian |
Mention ``alias enable no'', not ``alias enable off''.
|
49978 |
17-Aug-1999 |
brian |
Implement a minimum idle time value as an optional second argument to ``set timeout''. This is useful for situations where your minimum call charge is (say) 5 minutes (like mine is)
|
49976 |
17-Aug-1999 |
brian |
Set the close-on-exec flag for all unused descriptors when exec()ing other programs.
|
49599 |
10-Aug-1999 |
brian |
If we receive an IPCP protocol reject, bring it down.
|
49588 |
09-Aug-1999 |
brian |
Back out the last patch. I'm too tired to apply patches.
|
49587 |
09-Aug-1999 |
brian |
Remove CLOCAL when we're not in -dedicated mode.
PR: 13046 Submitted by: Vsevolod Lobko <seva@alex-ua.com>
|
49582 |
09-Aug-1999 |
brian |
Change printf formats %q[du] -> %ll[du]
|
49581 |
09-Aug-1999 |
brian |
Insist that ppp.conf and it's parent directories aren't `other' writable rather than not being writable at all.
PR: 13009 Kind-of submitted by: Anthony Kimball <alk@pobox.com>
|
49533 |
08-Aug-1999 |
brian |
Silence a warning about uninitialized variables.
|
49532 |
08-Aug-1999 |
brian |
Don't includei 4b support on the alpha
|
49527 |
08-Aug-1999 |
brian |
Don't log_Printf(..., buf) in case buf contains %s
Info provided by: Ollivier Robert <roberto@keltia.freenix.fr>
|
49472 |
06-Aug-1999 |
brian |
Add ISDN support via isdnd & i4b. This requires version 0.81.1 of the i4b code - namely support of the I4B_VR_REQ ioctl via the i4brbchX device.
Ppp controls the phone number, but idle timers and SYNC/RAW decisions are still made by isdnd (in isdnd.rc).
This involves a new datalink state machine phase. The ``wait for carrier'' phase happens after dialing but before logging in. The whole dial state should really be abstracted so that each device type can deal with it in its own way (thinking about PPPoE) - but that'll have to wait.
The ``set cd'' symantics remain the same for tty devices, but we now delay until we either get CD or timeout waiting (at which time we drop the link if we require CD).
For i4b devices we always insist on carrier.
Thanks to hm@ for his help, and especially for pointing out that I *don't* need to re-implement isdnd (that was a huge waste of time !) :-]
|
49447 |
06-Aug-1999 |
brian |
If the clock is put back, ensure that we don't end up dividing by zero when calculating our throughput
|
49434 |
05-Aug-1999 |
brian |
o Obsolete the undocumented ``set weight'' command. o If we're using RADIUS and the RADIUS mtu is less than our peers mru/mrru, reduce our mtu to this value for NetBSD too. o Make struct throughput's sample period dynamic and tweak the ppp version number to reflect the extra stuff being passed through the local domain socket as a result (MP mode). o Measure the current throughput based on the number of samples actually taken rather than on the full sample period. o Keep the throughput statisics persistent while being passed to another ppp invocation through the local domain socket. o When showing throughput statistics after the timer has stopped, use the stopped time for overall calculations, not the current time. Also show the stopped time and how long the current throughput has been sampled for. o Use time() consistently in throughput.c o Tighten up the ``show bundle'' output. o Introduce the ``set bandwidth'' command. o Rewrite the ``set autoload'' command. It now takes three arguments and works based on a rolling bundle throughput average compared against the theoretical bundle bandwidth over a given period (read: it's now functional).
|
49396 |
03-Aug-1999 |
brian |
Reorganise ppp's usage to avoid some mandoc limitations. Suggested by: wollman
|
49388 |
02-Aug-1999 |
brian |
Mention that ospf is a possible filter protocol.
|
49374 |
02-Aug-1999 |
brian |
#ifdef IPPROTO_OSPFIGP before expecting it to be defined. This unbreaks OpenBSD.
|
49372 |
02-Aug-1999 |
brian |
Filter ospf and igmp separately.
Kind-of submitted by: phk
|
49216 |
29-Jul-1999 |
brian |
Mention which rfc the DNS/NBNS IPCP extensions come from.
|
49180 |
28-Jul-1999 |
brian |
Don't return a garbage mbuf pointer after storing it as an unresolved fragment.
|
49144 |
28-Jul-1999 |
brian |
Fix a load of typos Use sizeof, not a hardcode value.
Some of it submitted by: Peter Jeremy <jeremyp@gsmx07.alcatel.com.au>
|
49140 |
27-Jul-1999 |
brian |
o Overhaul filtering, adding facilities to jump over rules and to negate the sense of rules. o Remove the redundant (and undocumented) ``host'' and ``port'' words (README.changes updated). o Don't permit (and ignore) garbage instead of the protocol.
Mostly submitted by: Peter Jeremy <jeremyp@gsmx07.alcatel.com.au>
|
49132 |
27-Jul-1999 |
brian |
If we've negotiated CBCP and have also specified ``none'' as a possible callback option, and the server sends us CBCP_NONUM, proceed directly to the network phase rather than insisting on our configured CBCP option.
Mostly submitted by: kkphang <phang@dgate.po.my>
|
49124 |
27-Jul-1999 |
brian |
Be a bit more consistent with variable names.
|
49112 |
26-Jul-1999 |
brian |
Fix an off-by-one error and correct the man page WRT clearing filters.
Submitted by: Peter Jeremy <peter.jeremy@alcatel.com.au> PR: 12437
|
49046 |
24-Jul-1999 |
brian |
When we fetch previously retrieved IP fragments from the alias tables, copy them correctly back into our mbuf rather giving a bzero'd count to memcpy() and ending up with a 0 byte fragment.
The old code resulted in a 0 byte write to the tun device which tickled a bug that resulted in a panic :-(
|
48853 |
17-Jul-1999 |
brian |
Fix a typo Submitted by: Rich Wood <rich@chugaboom.net>
|
48817 |
15-Jul-1999 |
brian |
Don't declare `end' if we aren't compiling radius support.
|
48724 |
10-Jul-1999 |
brian |
Oops - add a missing cast.
|
48723 |
10-Jul-1999 |
brian |
Leap through one more hoop to avoid alignment problems.
|
48227 |
26-Jun-1999 |
brian |
Don't bother read()ing if we ``expect'' nothing in our chat script.
|
48226 |
26-Jun-1999 |
brian |
If we run out of chat script immediately after a successfully executed expect-send-expect sequence, finish gracefully, don't core dump. This bug has been there for over a year - I could never reproduce it !
Straw provided by: Andre Albsmeier <andre.albsmeier@mchp.siemens.de>
|
48142 |
23-Jun-1999 |
brian |
Support `igmp' filters. Mostly submitted by: Timo Geusch <freebsd@sleepycat.ukpeople.net>
|
48103 |
22-Jun-1999 |
brian |
Disable TUNSLMODE when we first open the tun device.
Submitted by: Ian West <ian@niw.com.au>
|
48003 |
18-Jun-1999 |
brian |
Don't use the ``next'' redial timer if we have no phone number at all.
|
47899 |
14-Jun-1999 |
brian |
Come up with something useful when someone searches for ``dynamic IP''.
|
47878 |
11-Jun-1999 |
brian |
Show the correct error if we fail to open a device.
|
47876 |
11-Jun-1999 |
brian |
Describe why a ``magic'' enddisc is not always a good idea.
|
47865 |
10-Jun-1999 |
brian |
Allow reserved substitution strings to be escaped by preceeding them with a backslash.
|
47863 |
10-Jun-1999 |
brian |
Never bring a link back up after receiving a terminating signal, don't rely on already being in PHASE_DEAD.
|
47860 |
10-Jun-1999 |
brian |
Allow a remote IP and port range specification in the ``alias port'' command.
|
47859 |
09-Jun-1999 |
brian |
Initialise `mp'.
|
47858 |
09-Jun-1999 |
brian |
Allow our endpoint discriminator to be enabled, disabled, accepted and denied. This is necessary for some MP implementations that get confused if you accept their endpoint discriminator but reject their MRRU.
|
47849 |
09-Jun-1999 |
brian |
Use the correct pid when substituting PROCESSID. Problem reported by: Amedeo Beck Peccoz <gea@gressoney.it>
|
47844 |
08-Jun-1999 |
brian |
Don't use static variables if we don't have to.
|
47843 |
08-Jun-1999 |
brian |
Don't drop the last character from lines in ppp.secret unless it's '\n'.
|
47835 |
08-Jun-1999 |
brian |
Don't IPCP TLD if we're already doing it. This prevents recursion by doing something like ``down'' or ``quit all'' in ppp.linkdown.
|
47834 |
08-Jun-1999 |
brian |
Make the ``load'', ``dial'' and ``open'' commands a big clearer. Requested by: Michael Heitmeier <MICHAEL_HEITMEIER@HP-Germany-om12.om.hp.com>
|
47769 |
05-Jun-1999 |
brian |
Correct the way ppp transfers links on the server side in MP mode by padding out the ``struct device'' to the maximum device size. Bump the ppp version number to indicate the transfer format change.
This should make MP over tty and udp devices functional again.
|
47712 |
03-Jun-1999 |
brian |
Fix some MP sequence number comparison bogons that are tickled by having different speed links in a bundle. This would manifest itself by having the link occasionally hang, but revive when a new connection is made.... Make ``show mp'' a bit prettier.
|
47700 |
02-Jun-1999 |
brian |
Oops, quieten a compiler warning.
|
47699 |
02-Jun-1999 |
brian |
Mention physical and sync logging in the ``set log'' usage message.
|
47695 |
02-Jun-1999 |
brian |
o Alter the mbuf type as it's processed by different layers. o Show more information about missing MP fragments in ``show mp''. o Do away with mbuf_Log(). It was showing mbuf stats twice on receipt of LCP/CCP/IPCP packets.... ???!!? o Pre-allocate a bit extra when creating LQR packets to avoid having to allocate another mbuf in mbuf_Prepend().
|
47689 |
02-Jun-1999 |
brian |
Introduce the ``keep-session'' option. Refer to the man page for details. This allows MP over non-tty devices where the original ppp process must not exit (such as sshd-spawned ppp sessions).
|
47682 |
01-Jun-1999 |
brian |
Increase the length of an individual device name to LINE_LEN. Adjust the base physical device name correctly after a link transfer (allowing correct multilink callbacks).
|
47672 |
01-Jun-1999 |
brian |
Make async/sync/physical/hdlc dumps prettier by showing printable characters at the end of the line in hexdump style.
|
47658 |
01-Jun-1999 |
brian |
Mention that using MYADDR and HISADDR with ``set filter'' will result in the rules being updated any time MYADDR or HISADDR change.
|
47648 |
31-May-1999 |
brian |
Remember if MYADDR or HISADDR is used in a filter add tweak all filters any time either value changes.
|
47577 |
28-May-1999 |
brian |
Don't forget to free the mbufs that get processed by mp_Assemble(). Leak spotted by: louqi
|
47551 |
27-May-1999 |
brian |
Handle unterminated quoted strings without dup'ing the last character with an out-by-one-memcpy.
|
47540 |
27-May-1999 |
brian |
Add some comments, optimise out a few strlen()s and remove a few extraneous assignments.
|
47539 |
27-May-1999 |
brian |
Call tty_Offline() from tty_Cooked() and tty_Free(), just in case ppp is abending and hasn't called physical_Offline() already.
|
47538 |
27-May-1999 |
brian |
Move the code for tweaking interface flags into one function.
|
47461 |
24-May-1999 |
brian |
Correct the ``ignoring sync/async'' warnings so that they show up with the correct device type. Reassign the correct tcpdevice or execdevice after transfering a link in MP server mode.
|
47453 |
24-May-1999 |
brian |
Don't warn about ``!'' lines being unindented commands in ppp.conf.
|
47286 |
18-May-1999 |
brian |
Move the tty locking stuff back out to physical.c so that we lock the device *before* we open it. We still open the device only once - and then ask all our handlers if they know how to handle it.
|
47253 |
16-May-1999 |
brian |
Mention ``show layers''
|
47250 |
16-May-1999 |
brian |
Initialise ttydevice::Timer
|
47234 |
15-May-1999 |
phk |
Be more non-crypto friendly at make release time.
|
47211 |
15-May-1999 |
brian |
Add ``show layers'' to see the protocol layering for a link.
|
47169 |
14-May-1999 |
brian |
Handle LCP echo reqs properly again (broken with the layering changes).
|
47168 |
14-May-1999 |
brian |
Ensure that we're not going to overflow our ``struct tun'' when we mbuf_Read() into it. Add the link name to a few diagnostics.
|
47124 |
13-May-1999 |
brian |
Initialise the struct device part of struct ttydevice.
|
47120 |
13-May-1999 |
brian |
Fix a bum pointer dereference and make some variable names more consistent. Stack trace supplied by: Joe Clarke <jclarke@cisco.com>
|
47119 |
13-May-1999 |
brian |
Ignore repeated signals sent to the parent in background mode.
|
47076 |
12-May-1999 |
brian |
Adjust our first timer delta according to the return from getitimer() so that times are correct for ``show timer''.
|
47062 |
12-May-1999 |
brian |
Oops - hook the sync push diagnostics correctly.
|
47061 |
12-May-1999 |
brian |
Allow ``host:port/udp'' devices and support ``host:port/tcp'' as being the same as the previous (still supported) ``host:port'' syntax for tcp socket devices.
A udp device uses synchronous ppp rather than async, and avoids the double-retransmit overhead that comes with ppp over tcp (it's usually a bad idea to transport IP over a reliable transport that itself is using an unreliable transport). PPP over UDP provides througput of ** 1.5Mb per second ** with all compression disabled, maxing out a PPro/200 when running ppp twice, back-to-back.
This proves that PPPoE is plausable in userland....
This change adds a few more handler functions to struct device and allows derivations of struct device (which may contain their own data etc) to pass themselves through the unix domain socket for MP. ** At last **, struct physical has lost all the tty crud !
iov2physical() is now smart enough to restore the correct stack of layers so that MP servers will work again.
The version number has bumped as our MP link transfer contents have changed (they now may contain a `struct device').
Don't extract the protocol twice in MP mode (resulting in protocol rejects for every MP packet). This was broken with my original layering changes.
Add ``Physical'' and ``Sync'' log levels for logging the relevent raw packets and add protocol-tracking LogDEBUG stuff in various LayerPush & LayerPull functions.
Assign our physical device name for incoming tcp connections by calling getpeername().
Assign our physical device name for incoming udp connections from the address retrieved by the first recvfrom().
|
46830 |
09-May-1999 |
brian |
Revert to the previous behaviour of only doing a utmp login if we're -direct on a tty device.
|
46828 |
09-May-1999 |
brian |
Deal with the fact that as we now mbuf_Read the fsm header in fsm_Input() we often end up with a NULL mbuf.
Deal with a possible NULL mbuf being passed into mbuf_Prepend().
Adjust some spacing to make things more consistent.
|
46686 |
08-May-1999 |
brian |
o Redesign the layering mechanism and make the aliasing code part of the layering.
We now ``stack'' layers as soon as we open the device (when we figure out what we're dealing with). A static set of `dispatch' routines are also declared for dealing with incoming packets after they've been `pulled' up through the stacked layers.
Physical devices are now assigned handlers based on the device type when they're opened. For the moment there are three device types; ttys, execs and tcps.
o Increment version number to 2.2 o Make an entry in [uw]tmp for non-tty -direct invocations (after pap/chap authentication). o Make throughput counters quad_t's o Account for the absolute number of mbuf malloc()s and free()s in ``show mem''. o ``show modem'' becomes ``show physical''.
|
46310 |
02-May-1999 |
brian |
Handle receiving more than one acceptable CCP REQ during one negotiation session without REJecting everything from the second REQuest.
|
46272 |
02-May-1999 |
brian |
Mention ``show mp''. Describe ACFComp correctly.
|
46223 |
01-May-1999 |
brian |
Make ports 80 & 81 ``interactive''.
|
46102 |
27-Apr-1999 |
brian |
Change ``set device'' so that it parses its arguments as one device per argument rather than the old way of concatenating everything then splitting the result at commas and whitespace.
Old syntax of ``set device /dev/cuaa0, /dev/cuaa1'' may no longer contain the comma, but syntax such as ``set device "!ssh host ppp -direct label"'' is now possible.
|
46086 |
26-Apr-1999 |
brian |
Add support for NetBSD
|
46085 |
26-Apr-1999 |
brian |
#include <errno.h>, not <sys/errno.h>
|
45952 |
23-Apr-1999 |
brian |
Spelling police
|
45910 |
21-Apr-1999 |
brian |
int -> size_t
|
45907 |
21-Apr-1999 |
brian |
Split the recorded chap challenge into two - one for the receiver and one for the sender. This allows two simultaneous chap conversations - something that I *thought* I was already doing on a daily basis myself until the existence of the problem was Beaten into me by: sos
|
45906 |
21-Apr-1999 |
brian |
If ioctl TIOCMGET fails, continue. The device may be a pseudo device created by an interactive version of rlogin/telnet/ssh & friends
|
45586 |
11-Apr-1999 |
brian |
Revert the ACCMAP changes where we OR the peers accmap with our own if there are differing bits (last two revisions of lcp.c). This change broke at least one negotiation session. Instead, we just use an OR of the two accmap values when we're doing the ASYNC framing.
|
45385 |
06-Apr-1999 |
brian |
When going from DATALINK_HANGUP directly to DATALINK_OPENING, don't forget to change phase to ESTABLISH if we're currently TERMINATE'ing. Helped locate by: Chuck Robey <chuckr@mat.net>
|
45350 |
05-Apr-1999 |
brian |
When we get an LCP TLU, go into PHASE_AUTHENTICATE from any other phase besides PHASE_NETWORK, otherwise there's a chance that we end up sending auth packets and dropping the replies.
|
45265 |
03-Apr-1999 |
brian |
Remove forgotten variable.
|
45264 |
03-Apr-1999 |
brian |
Handle the detection of frames even if we read them with more than one read(). When we detect one, don't forget to pass it to async_Input() and drop our terminal back into command mode.
Don't output an extraneous \r if we're passed \r\n to prompt_vprintf in raw mode.
|
45220 |
01-Apr-1999 |
brian |
Drop PAP & CHAP packets if we're not in NETWORK or AUTHENTICATE phase.
|
45193 |
31-Mar-1999 |
brian |
Avoid a few warnings on the alpha
|
45188 |
31-Mar-1999 |
brian |
Oops - remove register keyword
|
45185 |
31-Mar-1999 |
brian |
Another alignment bogon.
|
45138 |
30-Mar-1999 |
brian |
Point at cs.slcs_u.csu_ip instead of the just-copied ``cp'' when recalculating the ip checksum. cp is not guaranteed to be aligned. It now doesn't matter that cp isn't aligned as the caller does another mbuf_Alloc() regardless.
|
45126 |
30-Mar-1999 |
brian |
Maintain a `necessary' marker to indicate that we *probably* need to process a signal (usually a SIGALRM). Check to see if we need to process a signal both before *and* after calling select() as older (pre-2.0) versions of ppp used to.
This handles the possibility that ppp may block at some point (maybe due to an open() of a misconfigured device). Previously, we'd potentially lock up in select().
The `necessary' marker reduces the increased signal checking overhead so that at full speed with no compression transferring an 83Mb file via a ``!ppp -direct'' device, we get a 1% throughput gain.
|
45104 |
29-Mar-1999 |
brian |
If we adjust our required ACCMAP due to a more restrictive ACCMAP being REQuested by the peer, also increment our FSM id so that we don't end up sending out a new REQ with the same ID and different data (the changed ACCMAP).
|
45103 |
29-Mar-1999 |
brian |
Ensure that the thing we're casting to struct ip is aligned for non-i386 architectures.
|
45042 |
25-Mar-1999 |
brian |
Allow port ranges in ``alias port''.
|
45032 |
25-Mar-1999 |
brian |
Undo possible damage done by the new TUNSIFMODE ioctl in FreeBSD-current.
|
44892 |
19-Mar-1999 |
brian |
Do away with some literal text that is never switched off - I *think* these were groff bugs.
|
44879 |
19-Mar-1999 |
brian |
Replace hardcoded quoting with Sq or Dq.
|
44874 |
19-Mar-1999 |
brian |
Don't forget to fully initialise the configured values for MYADDR and HISADDR in ``set ifaddr'' so that unspecified values don't end up retaining their `width'.
|
44870 |
18-Mar-1999 |
brian |
Use ``Sx'' when xref'ing sections.
|
44869 |
18-Mar-1999 |
brian |
Remove all remaining [ and ] characters (and do things properly).
|
44813 |
17-Mar-1999 |
brian |
Remove all hardcoded [...] syntax. With help from: Daniel C. Sobral <dcs@newsguy.com>
|
44796 |
16-Mar-1999 |
brian |
Mention changes to the default authentication behaviour.
|
44792 |
16-Mar-1999 |
brian |
Detect pred1 packets where the length != the packet length Use a maximum of MAX_MRU + 2 bytes for incoming packets, not MAX_MTU + 2. Tidy up some diagnostics.
|
44650 |
11-Mar-1999 |
brian |
Tone down the log levels (Log{ERROR,WARN} -> LogCCP) when we've simply missed a packet.
When our Predictor1 CRC is wrong (implying we've dropped a packet), don't send a ResetReq(). Instead, send another CCP ConfigReq(). *shrug* My tests show this as being far worse than the ResetReq as we may have further Nak/Rejs etc and we're basically resetting both our incoming and outgoing compression dictionaries, but rfc1978 says the ConfigReq is correct, so we'd better go along...
|
44612 |
09-Mar-1999 |
brian |
If /etc/ppp/ppp.conf doesn't exist, mention that the configuration file can't be found rather than saying that the label can't be found. Pointed out by: Greg Black <gjb@comkey.com.au>
|
44588 |
08-Mar-1999 |
brian |
Don't destroy the old server socket another ``set server'' call fails.
|
44564 |
07-Mar-1999 |
brian |
Don't forget to call modem_Found() when connecting via an external program - otherwise we get no throughput stats and connection count increase.
|
44563 |
07-Mar-1999 |
ghelmer |
Add leading 0 in front of octal file permissions number.
OK'ed by: Brian Somers <brian@freebsd.org> PR: docs/9843
|
44557 |
07-Mar-1999 |
brian |
Support PPTP via libalias (``alias pptp addr'').
|
44547 |
07-Mar-1999 |
brian |
Support proxying & transparent proxying curtesy of libalias(3). Order the alias command descriptions. Order the SEE ALSO entries.
|
44544 |
07-Mar-1999 |
brian |
Correctly drop existing connections when reopening the diagnostic socket.
|
44541 |
07-Mar-1999 |
brian |
Read from fd[0] and write to fd[1] where `fd' is the result of a pipe(). This matters under OpenBSD.
|
44540 |
07-Mar-1999 |
brian |
Use socketpair() instead of pipe()... pipe() doesn't return two bi-directional descriptors under OpenBSD.
|
44539 |
07-Mar-1999 |
brian |
Reopen descriptor 0 as /dev/tty when in interactive mode in OpenBSD as well as FreeBSD (I still don't know why). Add a debug diagnostic when creating a child process as a link.
|
44468 |
04-Mar-1999 |
brian |
Extend the ``set redial'' command to allow incremental redial timeouts.
|
44455 |
03-Mar-1999 |
brian |
Correct some ntohl/htonl bogons in the netmask handling. This was pretty harmless as netmasks on a POINTOPOINT interface are pretty much ignored, but it looked funny.
Mention the configured netmask in ``show ipcp''.
Describe in more detail what a proxy arp entry is.
|
44374 |
01-Mar-1999 |
brian |
When negotiating ACCMAPs, sync our ACCMAP with the peers by ORing the two together and NAKing or REQing the result rather than allowing seperate local/peer values. If the peer REJs our ACCMAP and our ACCMAP isn't 0, warn about it and ignore the rejection.
|
44359 |
01-Mar-1999 |
brian |
Comment why we do a TLF when we get a ``Down'' event in state ``closing''.
Pointed out by: archie
Don't do a TLF when we get a ``Catastrphic Protocol Reject'' event in state ``closed'' or ``stopped''.
Pointed out but not suggested by: archie
This makes no difference in the current implementation as LcpLayerFinish() does nothing but log the event, but I disagree in principle because it unbalances the TLF/TLS calls which (IMHO) doesn't fit with the intentions of the RFC.
Maybe the RFC author had a reason for this. It can only happen in two circumstances:
- if LCP has already been negotiated then stopped or closed and we receive a protocol reject, then we must already have done a TLF. Why do one again and stay in the same state ?
- if LCP hasn't yet been started and we receive an unsolicted protocol reject, why should we TLF when we haven't done a TLS ?
|
44352 |
01-Mar-1999 |
brian |
Bring up auto links despite there being no data queued if we're already in network phase and our autoload values are set with no minimum threshold (the default).
Tell the autoload timer that it's ``coming up'' *before* calling AutoLoadTimeout() directly... not after. This prevents the very first demand-dial connection from immediately disconnecting when there are other auto links.
Problem diagnosis: Ted Mittelstaedt <tedm@toybox.placo.com>
|
44305 |
26-Feb-1999 |
brian |
Allow control over the number of ConfigREQ & TermREQ attempts that are made in each of the FSMs (LCP, CCP & IPCP) and the number of REQs/Challenges for PAP/CHAP by accepting more arguments in the ``set {c,ip,l}cpretry'' and ``set {ch,p}apretry'' commands.
Change the non-convergence thresholds to 3 times the number of configured REQ tries (rather than the previous fixed ``10''). We now notice repeated NAKs and REJs rather than just REQs.
Don't suggest that CHAP 0x05 isn't supported when it's not configured.
Fix some bugs that expose themselves with smaller numbers of retries: o Handle instantaneous disconnects (set device /dev/null) correctly by stopping all fsm timers in fsm2initial. o Don't forget to uu_unlock() devices that are files but are not ttys (set device /dev/zero).
Fix a *HORRENDOUS* bug in RFC1661 (already fixed for an Open event in state ``Closed''): According to the state transition table, a RCR+ or RCR- received in the ``Stopped'' state are supposed to InitRestartCounter, SendConfigReq and SendConfig{Ack,Nak}. However, in ``Stopped'', we haven't yet done a TLS (or the last thing we did is a TLF). We must therefore do the TLS at this point !
This was never noticed before because LCP and CCP used not use LayerStart() for anything interesting, and IPCP tends to go into Stopped then get a Down because of an LCP RTR rather than getting a RCR again.
|
44279 |
25-Feb-1999 |
brian |
Parse IP addresses more securely - specifically, don't allow a bum name to return as 0.0.0.0... we don't want ``delete xxx'' to delete the default route when xxx doesn't resolve.
Support IP number specifications as the host when specifying a tcp-style device (rather than *just* hostnames).
|
44261 |
25-Feb-1999 |
brian |
When our dial timeout is ``random'', display its value correctly by invoking the timer to get the value before displaying the message. Don't assume that a value of 0 is ``random'' in ``show datalink''. Make the random value between 1 and DIAL_TIMEOUT rather than between 0 and DIAL_TIMEOUT-1
|
44260 |
25-Feb-1999 |
brian |
Don't immediately bring auto links back up in multilink mode (when there is more than one auto link) if there is no data queued to go out. Reviewed by: Tom Torrance <tom@tomqnx.com>
|
44159 |
20-Feb-1999 |
brian |
Handle empty PAP & CHAP packets (containing only an FSM header). Some CHAP implementations send no welcome message with their SUCCESS/FAILURE packets. This was being mis-identified as a truncated packet by the new authentication code :-(
|
44141 |
19-Feb-1999 |
brian |
Be a little more verbose about dodgy looking authentication packets before dropping them in the bit-bucket.
|
44123 |
18-Feb-1999 |
brian |
Build correctly when -DNOCRYPT is used.
|
44122 |
18-Feb-1999 |
brian |
Don't expect a chap response if we haven't negotiated chap 0x80.
|
44106 |
18-Feb-1999 |
brian |
Fully support both NT and LANMan CHAP type 0x80 as both authenticator and authenticatee.
|
44094 |
17-Feb-1999 |
brian |
Nuke any remaining auth timers when datalinks come back down to DATALINK_LCP.
|
44073 |
16-Feb-1999 |
brian |
Wait by default for one second after the login script is complete before checking carrier. If it's there, the device supports carrier. If it's not it doesn't.
Add the ``set cd'' command for deciding how soon to check for carrier, and for deciding if carrier is REQUIRED.
The default has changed: Pre 2.0 versions of ppp waited for 1 second. Version 2 didn't wait, but this causes problems with some (few?) modems that don't assert carrier immediately on reporting CONNECT. The one second delay is back now and can be removed with ``set cd 0''.
Bump the ppp version number in case this needs to be changed again....
|
43992 |
14-Feb-1999 |
brian |
Describe manual dialing in greater detail. Mention more rfc numbers. Don't ``.Nm Ppp'' (just use ``.Nm'').
|
43919 |
12-Feb-1999 |
brian |
When executing a command as part of a dial/login/hangup script, expand words in the same way as !bg does.
|
43903 |
11-Feb-1999 |
brian |
/etc/ppp/ppp.*.sample -> /usr/share/examples/ppp/ppp.*.sample
|
43888 |
11-Feb-1999 |
brian |
When resending chap challenges, resend the same challenge each time rather than making up a new one.
Increase the authname/authkey max sizes to 100 characters.
Allow ``authkey'' specifications beginning with ``!''. When a challenge is received, the text following the ``!'' is executed as a program (expanding stuff in the same way that ``sh'' and ``!bg'' do). The program is passed the peer name, peer challenge and local ``authname'' on standard input and is expected to output the name/key combination that should be used to build the CHAP response.
This provides support for Secure ID cards (guess what I was given at work recently!) using CHAP.
Examples will follow.
|
43743 |
07-Feb-1999 |
brian |
Correct server-side chap authentication comparison (broken with last commit).
|
43742 |
07-Feb-1999 |
brian |
Remove forgotten diagnostics
|
43693 |
06-Feb-1999 |
brian |
Decouple pap & chap output routines from the corresponding input routines and take advantage of the new init/continue interface in libradius. This allows a timely response on other links in an MP setup while RADIUS requests are in progress as well as the ability to handle other data from the peer in parallel. It should also make the future addition of PAM support trivial.
While I'm in there, validate pap & chap header IDs if ``idcheck'' is enabled (the default) for other FSM packet types.
NOTE: This involved integrating the generation of chap challenges and the validation of chap responses (and commenting what's going on in those routines). I currently have no way of testing ppps ability to respond to M$Chap CHALLENGEs correctly, so if someone could do the honours, it'd be much appreciated (it *looks* ok!).
Sponsored by: Internet Business Solutions Ltd., Switzerland
|
43545 |
02-Feb-1999 |
brian |
Encode & Decode the PROTOCOMP fields correctly. When NAKing the peer, get as close as we can to what he REQd. When the peer NAKs us, get as close as we can to what they NAKd with on our next REQ.
|
43526 |
02-Feb-1999 |
brian |
Don't allow root to specify non-existent labels on the command line. Revise the error diagnostics so that invalid labels are reported immediately.
|
43525 |
02-Feb-1999 |
brian |
Reimplement the previous fix (no response to PAP requests) at the authentication layer rather than at the PAP layer so that it also applies to CHAP (no response to CHAP challenges).
|
43500 |
01-Feb-1999 |
brian |
If we receive no answer from the server when sending PAP requests, give up (don't sit there indefinitely).
|
43401 |
29-Jan-1999 |
brian |
o Send a CHAP challenge of 16 random digits when RADIUS is configured. This isn't strictly necessary according to the rfc, but it's suggested there.... o Don't forget to include our authname when sending a CHAP challenge when RADIUS is configured. o Don't supply the ``16'' representing the chap answer length to radius_Authenticate() - libradius does this for us. o When we successfully authenticate via radius_Authenticate(), continue with datalink_AuthOk() as expected.
Sponsored by: Internet Business Solutions Ltd., Switzerland
|
43364 |
28-Jan-1999 |
billf |
Reflect syslog(8)'s acceptance of either tabs or spaces.
PR: docs/9660 Submitted by: Kris Kennaway <kkennawa@physics.adelaide.edu.au>
|
43344 |
28-Jan-1999 |
brian |
MAINTAINER=brian@FreeBSD.org
|
43333 |
28-Jan-1999 |
brian |
Version 2.0 > 2.1 to reflection RADIUS additions.
|
43313 |
28-Jan-1999 |
brian |
Initial RADIUS support (using libradius). See the man page for details. Compiling with -DNORADIUS (the default for `release') removes support.
TODO: The functionality in libradius::rad_send_request() needs to be supplied as a set of routines so that ppp doesn't have to wait indefinitely for the radius server(s). Instead, we need to get a descriptor back, select() on the descriptor, and ask libradius to service it when necessary. For now, ppp blocks SIGALRM while in rad_send_request(), so it misses PAP/CHAP retries & timeouts if they occur.
Only PAP is functional. When CHAP is attempted, libradius complains that no User-Password has been specified... rfc2138 says that it *mustn't* be used for CHAP :-(
Sponsored by: Internet Business Solutions Ltd., Switzerland
|
43187 |
25-Jan-1999 |
brian |
Don't SEGV when ``set proctitle'' is used in the default section. Submitted by: Dan Lukes <dan@obluda.cz> PR: 9669
|
42905 |
20-Jan-1999 |
brian |
Recurse when we've switched state via LoginDone(). If we've got an open link, we want it to be select()d on - otherwise we get a freeze when ``openmode'' is passive.
|
42844 |
19-Jan-1999 |
brian |
Change the maximum number of filters from 20 to 40. Increase requested by: "Clement T. Cole" <clemc@echo.ccc.com>
|
42843 |
19-Jan-1999 |
brian |
Suggest that ``set proctitle'' is used in ppp.linkup when USER is expected to be expanded.
|
42842 |
19-Jan-1999 |
brian |
Send the peer-decided PSTN address with the CBCP Ack, otherwise windows clients will keep resending the response :-/ It'd be nice if M$ would document this sort of thing ! Problem reported by: Andrzej Tobola <san@tmp.iem.pw.edu.pl>
|
42600 |
12-Jan-1999 |
brian |
If we've configured CBCP *and* another not-so-important CALLBACK protocol and end up agreeing CBCP, DTRT and go into CBCP phase rather than mistakenly terminating as if CBCP wasn't agreed. Problem reported by: Alexander Dubinin <alex@nstl.nnov.ru>
|
42523 |
11-Jan-1999 |
brian |
Correct some formatting errors (one is a groff bug) Noted & partially submitted by: Peter Jeremy <peter.jeremy@auss2.alcatel.com.au> PR: 9432
|
42484 |
10-Jan-1999 |
sada |
Typo: /etc/ppp/ppp.conf.example -> ppp.conf.sample Submitted by: Sugiura Shiro <ssugiura@duo.co.jp>
|
42452 |
10-Jan-1999 |
brian |
Only call isatty() when we open our descriptor, and remember the answer.
If we later get a descriptor exception from select(), we know that it's a tty (isatty() returns 0 after the exception on a tty) and remember to call modem_LogicalClose().
The upshot of it all is that descriptor exceptions dont leave the tty locked any more.
|
42390 |
08-Jan-1999 |
brian |
Don't use the next phone number after the ``|'' if the dial & login are successful. Submitted by: Toshiomi Moriki <Toshiomi.Moriki@ma1.seikyou.ne.jp> PR: 9382
|
42322 |
06-Jan-1999 |
brian |
Typo: The idle timer is ignored in -ddial and -dedicated mode, not in -ddial and -direct. Pointed out by: Chris Timmons <skynyrd@opus.cts.cwu.edu>
|
42321 |
06-Jan-1999 |
brian |
Don't warn when ``add xxxx HISADDR'' fails because HISADDR is 0.0.0.0. This isn't a problem as the sticky route is still added. Suggested by: Chris Timmons <skynyrd@opus.cts.cwu.edu>
|
41888 |
17-Dec-1998 |
brian |
Don't return stack-based data. This may have caused server-side CHAP authentication problems in the past :-/
|
41830 |
15-Dec-1998 |
brian |
Fix a rather bad latency problem (uncovered by the recent timer commit). Problem reported by: Christopher Hall <hsw@acm.org>
|
41799 |
14-Dec-1998 |
brian |
Rather than interrupting 10 times per second then checking to see if there's anything to do, schedule the next alarm based on the next required timeout. This decreases the load when there are lots of relatively idle ppp processes.
While I'm in there, handle the possibility that a timeout makes the timer element go out of scope by grabbing the enext pointer before executing the timer function.
|
41755 |
14-Dec-1998 |
brian |
Allow a variable as the first arg to ``set proctitle''.
|
41754 |
14-Dec-1998 |
brian |
Mention the cosmetic necessity to ``iface clear'' in ppp.linkdown.
|
41655 |
10-Dec-1998 |
brian |
Boy, this was tricky to find: Remove any dial timer that might be hanging around at datalink_Destroy() time. This timer may be left running after the link is closed (making sure it's not automatically opened again too soon).
|
41654 |
10-Dec-1998 |
brian |
When using ``set device !someprogram'', when ``someprogram'' exits, it causes a select() exception. Handle these select() exceptions on link descriptors in pretty much the same way as loss of carrier rather than dropping out in confusion.
|
41505 |
04-Dec-1998 |
billf |
Typo and formatting updates.
PR: docs/8504 Approved by: Brian Somers Submitted by: Kazuo Horikawa <horikawa@jp.FreeBSD.org>
|
41044 |
10-Nov-1998 |
brian |
Don't forget to initialise dbuff when debugging.
|
41006 |
08-Nov-1998 |
brian |
Explain what the command line switches do and what the various prompts signify.
|
41005 |
08-Nov-1998 |
brian |
Fix a few typos Submitted by: Forgotten (sorry)
|
40941 |
05-Nov-1998 |
brian |
Don't delete the primary interface address when ``iface clean'' is used in auto mode while there are no active links.
|
40798 |
31-Oct-1998 |
brian |
If the CBCP callee offsers no callback, send our configured response anyway. This is what Win95 does, despite it not being documented in the cbcp spec.... Reported by: Bill <petheram@acm.org>
|
40797 |
31-Oct-1998 |
brian |
Allow multiple systems (config labels) on the command line and in the ``load'' & ``dial'' commands. The last label loaded becomes the current label name. Only require a label for -auto mode.
|
40744 |
29-Oct-1998 |
brian |
Don't call PacketAliasIn() when we turn around packets destined for our interface address. We're about to call ip_Input() anyway, and ip_Input() does the PacketAliasIn(). Stack trace provided by: Cameron Grant <gandalf@vilnya.demon.co.uk>
|
40714 |
29-Oct-1998 |
brian |
Remove some redundant (#if 0'd) code.
|
40680 |
27-Oct-1998 |
brian |
Untimeout the chat expect timer as soon as we get a match - otherwise, with a delayed (\\d) ``send'', the timeout may happen during the send and cause a failure. Problem reported by: David L. Vondrasek <dallas.tx@airmail.net>
|
40679 |
27-Oct-1998 |
brian |
Add ``set proctitle'' for changing argv[0]. All substitutions are done in the same way as command execution.
For example, ``set proctitle USER INTERFACE PROCESSID'' would be useful in a -direct profile for identifying who's connected.
|
40678 |
27-Oct-1998 |
brian |
Add ``PROCESSID'' as a constant expanded when running commands.
|
40677 |
27-Oct-1998 |
brian |
Stress that ``none'' must be specified on the `set callback' line if callback is to be optional. Requested by: Andrzej Tobola <san@koziolek.lublin.top.pl>
|
40666 |
26-Oct-1998 |
brian |
Shuffle the iface-alias option so that's in alphabetical order like the rest of the options.
|
40665 |
26-Oct-1998 |
brian |
Add ``enable proxyall'' support. This adds proxy ARP entries for every machine on every class C or smaller subnet that we route to. Add ``set {send,recv}pipe'' for controlling our socket buffer sizes. Mention the IP number with the problem in a few error messages. All submitted by: Craig Leres <leres@ee.lbl.gov> Modified slightly by: me
|
40664 |
26-Oct-1998 |
brian |
Fix the interface alias code. Previously, I was expecting something like
tun0: flags=blah 10.0.0.1 -> 10.0.0.100 10.0.0.2 -> 10.0.0.100 10.0.0.3 -> 10.0.0.100
to DTRT, despite the SIOCAIFADDR for each new alias returning -1 & EEXIST while adding the alias anyway. In real life, once we have the second alias with the same destination, nothing will route any more ! Also, because I was ignoring EEXIST, the dynamic IP assignment code was assigning duplicate addresses ('cos it was being lied to by iface_inAdd()).
Now we have
tun0: flags=blah 10.0.0.1 -> 255.255.255.255 10.0.0.2 -> 10.0.0.100 10.0.0.3 -> 255.255.255.255
This works - stuff bound to 10.1 & 10.3 will be considered alive by the kernel, and when they route back to the tun device, the packets get aliased to 10.2 and go out to 10.100 (as with the original plan).
We still see the EEXIST in SIOCAIFADDR, but ignore it when our destination is 255.255.255.255, assuming that the alias *was* actually added.
Additionally, ``iface add'' may now optionally be given only the interface address. The mask & destination default to 255.255.255.255.
|
40655 |
25-Oct-1998 |
brian |
Don't send a DELAY value when sending CBCP_NONUM (as per the spec). Spotted by: Andrzej Tobola <san@koziolek.lublin.top.pl>
|
40622 |
24-Oct-1998 |
brian |
Loosen our restrictions on setting enddisc, mrru, shortseq, authname and authkey.
o Auth{name,key} may additionally be set in PHASE_ESTABLISH. o The others may be set in PHASE_ESTABLISH as long as no links have yet reached DATALINK_LCP.
|
40561 |
22-Oct-1998 |
brian |
Solve the ``first connection'' problem that occurs on demand-dial links with dynamic IP numbers where the program that causes the dial bind()s to an interface address that is subsequently changed after ppp negotiation.
The problem is defeated by adding negotiated addresses to the tun interface as additional alias addresses and providing a set of ``iface'' commands for managing the interface. Libalias is also required (and what a name clash!) - it happily IP-aliases the address so that the source is that of the primary (negotiated) interface and un-IP-aliases it on the way back.
An ``enable iface-alias'' is done implicitly by the -alias command line switch. If -alias isn't given, iface-aliasing is disabled by default and can't be enabled 'till an ``alias enable yes'' is done. ``alias enable no'' silently disables iface-alias.
So, for dynamic-IP-type-connections, running ``ppp -alias -auto blah'' will work for the first connection, although existing bindings will not survive a disconnect/connect as the TCP peer will be trying to send to the old IP address - the packets won't route.
It's now a lot easier to add IPXCP to ppp with minor updates to the new iface.[ch] (if anyone ever gets 'round to it).
It's also now possible to manually add interface aliases with something like ``iface add 1.2.3.4/24 5.6.7.8''. This allows multi-homed ppp links :-)
|
40530 |
20-Oct-1998 |
brian |
Specify BINOWN explicitly - we don't want to depend on bsd.own.mk setting it to ``root''.
|
40486 |
17-Oct-1998 |
brian |
Warn about (but process anyway) CBCP messages with an incorrect id.
|
40485 |
17-Oct-1998 |
brian |
Adjust our CBCP RESP id so that it's the same as the REQ. Submitted by: Tom <root@majestix.cmr.no>
|
40484 |
17-Oct-1998 |
brian |
If the client asks for CBCP, then replies with CBCP_NONUM to our REQ, allow no dialback - but only if we've ``set cbcp *''.. Suggested by: Andrzej Tobola <san@koziolek.lublin.top.pl>
|
40483 |
17-Oct-1998 |
brian |
Explain what the ``*'' means for a CBCP phone number in ``show link''.
|
40482 |
17-Oct-1998 |
brian |
Move help displays left one column to avoid problems with broken terminals that can't handle 80 columns followed by a linefeed. Pointed out by: bde@FreeBSD.org
|
40481 |
17-Oct-1998 |
brian |
Warn if we encounter an unindented line that isn't terminated with a ``:''.
|
40480 |
17-Oct-1998 |
brian |
Warn that the specific chap protocol isn't supported when rejecting CHAP because of byte 5. Suggested by: Daniel O'Callaghan <danny@hilink.com.au>
|
39496 |
19-Sep-1998 |
obrien |
Remove useless `BINOWN=root' now that it is the default.
|
39470 |
18-Sep-1998 |
brian |
Revert SEE ALSO ordering to version 1.124 Patched correctly by: wosch Blunder pointed out by: bde
|
39395 |
17-Sep-1998 |
brian |
Sync with OpenBSD ifdefs
|
39394 |
17-Sep-1998 |
brian |
Alphabeticalize SEE ALSO section.
|
39285 |
15-Sep-1998 |
brian |
Correct ua_ntohs.
|
39032 |
09-Sep-1998 |
brian |
Reflect reality
|
38959 |
09-Sep-1998 |
brian |
Initialise lcp::his_mru to the ``set mtu'' value if it's less than DEF_MRU, allowing our interface mtu to be decreased despite negotiation with the peer.
|
38814 |
04-Sep-1998 |
brian |
Don't cast potentially unaligned addresses to pointers to non-char types on non-i386 architectures. On Alpha and Sparc we get a bus error if we do.
|
38702 |
31-Aug-1998 |
wosch |
Sort cross references.
|
38682 |
31-Aug-1998 |
brian |
Remove OpenBSD build support - let the Makefile vary per OS rather than making it a mess and potentially screwing up cross builds. Suggested by: bde
|
38663 |
30-Aug-1998 |
brian |
Add OpenBSD build support
|
38631 |
29-Aug-1998 |
brian |
Don't use ``-width 20'', it's misleading. Use ``-width XX'' instead.
|
38630 |
29-Aug-1998 |
brian |
Don't claim that the alias library isn't loaded until used.
|
38629 |
29-Aug-1998 |
brian |
Add the following word substitutions when running a shell command: AUTHNAME: The local authname ENDDISC: The local endpoint discriminator LABEL: The configuration label in use PEER_ENDDISC: The peers endpoint discriminator USER: The peers authname
|
38628 |
29-Aug-1998 |
brian |
Allow the use of HISADDR, MYADDR and INTERFACE as words embedded in the args of a "shell" or "!bg" command, and only accept upper case versions.
We can now do: ! sh -c "ifconfig INTERFACE >/tmp/myfile"
|
38622 |
29-Aug-1998 |
brian |
Mention ``cbcp'' in ``set log ?''
|
38559 |
26-Aug-1998 |
brian |
Fix some OpenBSD/alpha warnings
|
38558 |
26-Aug-1998 |
brian |
Remove redundant include file.
|
38557 |
26-Aug-1998 |
brian |
Put the IP buffer queues into struct ipcp. Forgotten by: me
|
38556 |
26-Aug-1998 |
brian |
The protocol must be in network byte order (OpenBSD only).
|
38546 |
25-Aug-1998 |
brian |
Mention what ``set authname'' does in -direct mode.
|
38544 |
25-Aug-1998 |
brian |
If we've got a full output buffer queue and cannot send anything for two mintues (see ``set choked'' and ``show bundle''), nuke the ip, mp and link level buffer queues.
This should fix problems where ``ppp -auto'' seems to stop responding after failing to connect to the peer a few times.
|
38472 |
21-Aug-1998 |
brian |
Consolidate the two malloc()s that are done when allocating an mbuf.
|
38471 |
21-Aug-1998 |
brian |
Make ``show mem'' display the number of packets allocated as well as the number of octets.
|
38414 |
18-Aug-1998 |
brian |
Destroy any existing chat timeouts in datalink_ComeDown() If we're told to close/down while in DIAL or LOGIN state, we don't want to keep our timeout running :-/
|
38381 |
17-Aug-1998 |
brian |
Don't lose an allocated pointer if realloc() fails. Free it instead. Pointed out by: Theo de Raadt
|
38248 |
11-Aug-1998 |
brian |
Be careful about using ``.Bd -literal'' as groff sometimes keeps the `-literal' after the closing .Ed. Where this happens, use ``.Bd -unfilled'' with ``.It Li'' to dodge the problem - it looks better too. Problem reported by: Dom Mitchell <dom@phmit.demon.co.uk>
|
38207 |
09-Aug-1998 |
brian |
`dns' option defaults to disabled, not enabled.
|
38203 |
09-Aug-1998 |
brian |
Add missing .El
|
38202 |
09-Aug-1998 |
brian |
/var/run/tunX.pid is created regardless of ppps mode. Spotted by: Alex <garbanzo@hooked.net>
|
38201 |
09-Aug-1998 |
brian |
Use IFT_PPP from net/if_types.h rather than hard-coding it.
|
38200 |
09-Aug-1998 |
brian |
When entering ``term'' mode, don't output any messages until the device is successfully opened. If we fail to open it, mention the fact. Also go back into command mode as soon as the device is closed rather than waiting for the user to type something before noticing.
|
38198 |
09-Aug-1998 |
brian |
Don't forget to call PacketAliasInit(). PR: 7515
|
38175 |
07-Aug-1998 |
brian |
Missed these...
|
38174 |
07-Aug-1998 |
brian |
o Support callback types NONE, E.164, AUTH and CBCP. (see the new ``set callback'' and ``set cbcp'' commands) o Add a ``cbcp'' log level and mbuf type. o Don't dump core when \T is given in ``set login'' or ``set hangup''. o Allow ``*'' and blanks as placeholders in ppp.secret and allow a fifth field for specifying auth/cbcp dialback parameters. o Remove a few extraneous #includes o Define the default number of REQs (restart counter) in defs.h rather than hardcoding ``5'' all over the place. o Fix a few man page inconsistencies.
|
38013 |
02-Aug-1998 |
brian |
PR: 7469 Be careful that the current or next prompt in the list that we're iterating through doesn't get changed by descriptor_Read().
|
38008 |
02-Aug-1998 |
brian |
On receipt of a sig 15, do a full bundle_Close() even if our current phase is PHASE_DEAD as it's possible that there are links stuck in OPENING waiting for a redial timer.
|
37995 |
01-Aug-1998 |
brian |
When we receive an LCP config REQ in Opened state, do TLD *before* processing the config request as TLD initialises the peers LCP values.
It's strange that an IRC isn't required here - but I'll bow to the wisdom of the rfc.
|
37994 |
01-Aug-1998 |
brian |
Cosmetic: Diagnostic wording (Unknown -> Unexpected)
|
37993 |
31-Jul-1998 |
brian |
Always dial immediately on ``open'', ``dial'' and ``call''. We don't need a ``!''.
|
37955 |
29-Jul-1998 |
brian |
Allow an optional ``!'' in the open, dial & call commands. When used, the redial timer is ignored and the modem is opened immediately.
|
37954 |
29-Jul-1998 |
brian |
Use tcsetattr TCSANOW instead of TCSADRAIN so that dedicated mode doesn't end up blocking indefinitely when there's no carrier.
|
37927 |
28-Jul-1998 |
brian |
Silence ``Network unreachable'' warnings when using ``add .... HISADDR''. The network will never be reachable at this point unless we're in -auto or reading the command from ppp.linkup.
We can now run the following lines and get the expected results:
set ifaddr 1.2.3.4/0 5.6.7.8/0 add default HISADDR
where a route is added immediately in auto mode and the whole thing is delayed 'till the IP numbers have been agreed in other modes.
Essentially, ppp.linkup is no longer required.
|
37926 |
28-Jul-1998 |
brian |
o Tidy up PAP and CHAP diagnostics. They're now all logged as PHASE diagnostics (which are on by default). o Deal correctly with both sides wanting CHAP. o Output a warning if we're using an empty ``authname''. This is *not* what we want to do.
|
37763 |
19-Jul-1998 |
brian |
Add missing braces - without them, the IP & label were mis-selected from ppp.secret. Problem reported by: Dom Mitchell <dom@phmit.demon.co.uk>
|
37574 |
12-Jul-1998 |
brian |
Correct enable/disable handling (broken when ironing out 32/64 bit issues recently).
|
37572 |
11-Jul-1998 |
brian |
Check the ``alive'' filter for a packet *before* the mbuf is deallocated by vj_SendFrame().
|
37549 |
11-Jul-1998 |
brian |
Change MIN_LQRPERIOD from 5 to 2.
|
37386 |
04-Jul-1998 |
brian |
Don't disable ^D in interactive mode. Wished for by: pkh
|
37385 |
04-Jul-1998 |
brian |
Don't require context when there's only one link for ``open lcp''
|
37373 |
04-Jul-1998 |
brian |
Version 2.0-beta becomes 2.0 :-)
|
37360 |
03-Jul-1998 |
brian |
Only start checking carrier when the datalink state machine exceeds DATALINK_READY. When we go back to READY or less (eg. ``close lcp''), switch the carrier-checking-timer off again.
This fixes the callback example in ppp.conf.sample. Noted as broken by: Damian Kuczynski <damian@best.pw.edu.pl>
|
37320 |
30-Jun-1998 |
brian |
The CCP layer now behaves as follows: o If we've denied and disabled all compression protocols, stay in ST_INITIAL and do an LCP protocol reject if we receive any CCP packets. o If we've disabled all compression protocols, go to ST_STOPPED and wait for the other side to ask for something. o If we've got anything enabled, start REQing as soon as the auth layer is up. o If we're in multilink mode, than the link level CCP goes straight to ST_STOPPED irrespective of what's configured so that we never try to compress compressed stuff by default.
|
37210 |
27-Jun-1998 |
brian |
o Fix remaining sizeof problems for 64 bit machines. o Allow ``set ....'' when we have multiple links but aren't in multilink mode. o Do a TLS when we receive a ``Open'' event in ``Closed'' state, despite the rfc state transition table. This is clearly an error in the RFC as TLS cannot have yet been called (without TLF) in the ``Closed'' state. I've posted a message to comp.protocols.ppp for confirmation.
|
37200 |
27-Jun-1998 |
brian |
More u_long -> u_int32_t
|
37193 |
27-Jun-1998 |
brian |
I find it *really* irritating that you can't ``cvs rm'' things without removing them first.
|
37192 |
27-Jun-1998 |
brian |
Remove redundant includes
|
37191 |
27-Jun-1998 |
brian |
Don't dlopen()/dlsym() libalias, use it in the same way as the rest of the world uses libraries.
|
37189 |
27-Jun-1998 |
brian |
Don't assume ``sizeof(u_long) == 4'' Submitted by: Theo
|
37188 |
27-Jun-1998 |
brian |
Cast void * to char * for log_Printf().
|
37187 |
27-Jun-1998 |
brian |
``struct tunnel_header'' -> u_int32_t in OpenBSD. struct tunnel_header is going soon.
Suggested by: Theo
|
37177 |
26-Jun-1998 |
brian |
Don't depend on sizeof(u_long) == 4.
|
37173 |
26-Jun-1998 |
brian |
DISTRIBUTION=des
|
37160 |
25-Jun-1998 |
brian |
Add ``ipcp'' as an optional argument to ``open'', and make open capable of re-negotiatiating the various layers.
It is now possible to change various link options and then re-open the relevant layer, making the changes effective - for example, switching off VJ compression or starting ECHO LQRs on-the-fly.
|
37142 |
24-Jun-1998 |
brian |
Oops - forgot these with the last commit.
|
37141 |
24-Jun-1998 |
brian |
o If we come out of select() with only write descriptors that end up writing zero bytes, sleep for 1/10 of a second so that we don't end up using up too much cpu. This should only ever happen on systems that wrongly report a descriptor as writable despite the tty buffer being full. Discussed with: Jeff Evarts
o Do an initial run-time check to see if select() alters the passed timeval. This knowledge isn't yet used, but will be soon.
|
37085 |
21-Jun-1998 |
brian |
Suggest the use of ``accept dns'', not ``enable dns'' in server mode.
|
37062 |
20-Jun-1998 |
brian |
Do an InitRestartCounter when we get a TerminateReq in Opened state..... I have no idea why this never caused problems in the past - maybe the restart counter was bogusly initialised somewhere else :-/
|
37061 |
20-Jun-1998 |
brian |
Re-initialise our timer service after fork()ing to lose our terminal session. Is this a bug in setitimer() ? - it must be called again in the child !
|
37060 |
20-Jun-1998 |
brian |
Create & use fsm2initial(), a function to bring a state machine back to ST_INITIAL without going through any unnecessary TLS/TLF pairs.
|
37054 |
18-Jun-1998 |
brian |
Make sure our recvmsg() is a SCM_RIGHTS message when we receive a link from another ppp.
|
37053 |
18-Jun-1998 |
brian |
Don't assume that all ttys support carrier detect. If we're passing our controlling terminal, always record our pid so that the receiving ppp knows who to HUP.
|
37046 |
18-Jun-1998 |
brian |
Mention the ``allow users'' command when describing how to set things up for incoming connections.
|
37020 |
16-Jun-1998 |
brian |
o Allow ``set mrru'' or ``set mrru 0'' to disable multi-link mode. o Fix a typo in the ``set mrru'' description.
|
37019 |
16-Jun-1998 |
brian |
Change some log levels. ALERTs are only logged when something that can't happen happens or when everyone needs to know. ERRORs are only logged when something unexpected happens.
|
37018 |
16-Jun-1998 |
brian |
Don't bring the modem offline or hangup when ``down lcp'' is done. Instead, behave like ``close lcp''.
|
37017 |
16-Jun-1998 |
brian |
Zero mbuf::pnext when Dequeue()ing.
|
37012 |
16-Jun-1998 |
brian |
Only set the datalink::stayonline flag if we close/down with CLOSE_LCP when our state is DATALINK_READY or higher.
|
37011 |
16-Jun-1998 |
brian |
o Don't dump core with ~m in term mode. o Always put a '\r' before a '\n' at the end of a line in prompt_vPrintf() in term mode, and make prompt_Printf() use prompt_vPrintf(). o Fix ~? message.
|
37010 |
15-Jun-1998 |
brian |
o De-staticise things that don't need to be static. o Bring the static ``ttystate'' into struct prompt so that the tilde context is per prompt and not global. o Comment the remaining static variables so that it's clear why they're static. o Add some XXX comments suggesting that our interface list and our hostname should be re-generated after a signal (say SIGUSR1) so that a machine with PCCARDs has a chance.
|
37009 |
15-Jun-1998 |
brian |
Fix a rather nasty use of `static'. This caused a SEGV when running ``link * load label'' as we ended up recursing back into command_Interpret after nuking our command arg list.
|
37008 |
15-Jun-1998 |
brian |
Give ``load'' optional context. It's now possible to ``link 1,2,3 load label'' for people that want to set up their links in a more mpd-like manner.
|
37007 |
15-Jun-1998 |
brian |
Make `close lcp' just close the LCP layer and not hangup. This is useful for slirp users that wish to get their shell back after the ppp session. `close' with no args still hangs up as expected. Required by: jmz
|
36961 |
14-Jun-1998 |
brian |
Deal with PROTO_IGMP and PROTO_IPIP packets correctly.
Submitted by: Mark Tinguely <tinguely@plains.NoDak.edu> This change will allow a PPP host enabled with the "-alias" option to run mrouted. This does not intend to forward the IGMP nor tunneled packets to another host on the far side if the tun0 interface.
|
36960 |
14-Jun-1998 |
brian |
o Pass our negotiated number of VJ slots into sl_uncompress_tcp() and drop packets with slot numbers that are out of range. o Drop packets that want to use a slot that still has an IP header length of 0 (ie, the requested slot number is bogus again).
Without this code, if the other side mis-behaves (and sends us garbage slot numbers), we happily ``adjust'' a memset(..., '\0', ...) TCP/IP header and promptly cr*p all over the stack before returning.... quickly followed by a SIGBUS.
Dodgy ISP used by, and help locating the problem from: jmz Problem also seen by: Mourad de Riche <omnibus@image.dk>
There's still a link lockup after this happens, but my bets are on the other side (who has already started sending rubbish) being to blame.
|
36934 |
12-Jun-1998 |
brian |
Add the ``clear'' function. Mostly submitted by: "Stephane E. Potvin" <sepotvin@videotron.ca>
|
36930 |
12-Jun-1998 |
brian |
Remove '\n' from `show throughput'. ctime() already does a linefeed.
|
36929 |
12-Jun-1998 |
brian |
Correct arg hack Submitted by: David Leonard <leonard@csee.uq.edu.au>
|
36928 |
12-Jun-1998 |
brian |
o Maintain a link-type mask for open datalinks as well as for all datalinks in a bundle. Ppp now deals correctly with link types that are changed while open o When changing the type of the last AUTO link, only clear the interface if we're not in PHASE_NETWORK. This allows us to switch to -ddial mode while we have a connection without suddenly unexpectedly throttling ourselves by clearing the interface configuration. Problem area noted by: Aaron Jeremias Luz <aaron@csh.rit.edu>
|
36920 |
12-Jun-1998 |
peter |
Use the elf libalias name when compiled under elf.
|
36832 |
10-Jun-1998 |
brian |
Fix a couple of warnings noted with -Wall on FreeBSD-2.1.5. Pointed out by: Charlie Sorsby <crs@hgo.net>
|
36819 |
09-Jun-1998 |
brian |
Show the time that we reached maximum throughput. Submitted by: "Stephane E. Potvin" <sepotvin@videotron.ca>
|
36799 |
09-Jun-1998 |
imp |
$@ is deprecated, use longer forms of single char macros
|
36774 |
08-Jun-1998 |
brian |
Correct ``set server'' usage and add mention that ``set ns'' changed in README.changes. Suggested by: stuart henderson <stuart@internationalschool.co.uk>
|
36732 |
07-Jun-1998 |
brian |
Fix previous commit. bit 1 is the execute bit, not the read bit *blush* ie, BINMODE=4551 -> BINMODE=4554 Pointed out by: Bruce Evans <bde@zeta.org.au>
|
36718 |
07-Jun-1998 |
brian |
Use a relative libalias.so name (hardcoded at 2.5 - yeuch!).
|
36715 |
07-Jun-1998 |
brian |
Make ppp world-readable so that root can get at it over NFS when nobody isn't in group network :-)
Pointed out by: Bruce Evans <bde@zeta.org.au>
|
36714 |
07-Jun-1998 |
brian |
Update the write descriptor selection set for our data links *after* shuffling fragments from the IP queue into the individual link queues.
This fixes a latency problem pointed out by: Bruce Evans <bde@zeta.org.au>
|
36712 |
06-Jun-1998 |
brian |
Make ``set ? log'' more verbose. Suggested by: Paul Dufresne <dufrp@oricom.ca>
|
36709 |
06-Jun-1998 |
brian |
Put the correct pid in /var/run/tunX.pid Suggested by: many
|
36467 |
29-May-1998 |
brian |
o If there's a session leader left running for a descriptor that we're now closing, manually HUP that session leader so that the tty is fully released. o Always restart our carrier detect timer in the receiving process if it was running in the sending process (as we now *always* pass the descriptor). o Tweak argv when we go into pause() mode to keep our session so that ps can see what's going on (without checking for a `pause' state in `ps -l').
|
36466 |
29-May-1998 |
brian |
Some documentation corrections & typo fixes....
|
36465 |
29-May-1998 |
brian |
o Make modes consistent throughout ppp. The same strings are used in `set mode', `allow modes', on the command line and when outputting mode names. The strings are matched so that only enough characters to uniquely identify the string are required, so you can now
ppp -a mylabel (for auto mode) ppp -b mylabel (for background mode) ppp -dd mylabel (for direct dial mode)
etc. o Make -ddial dial when specified on the command line (oops). Pointed out by: Alex <garbanzo@hooked.net>
|
36453 |
29-May-1998 |
brian |
srandomdev() isn't available in all 2.* versions. Only use it for version 3 (-current) & up.
|
36452 |
28-May-1998 |
brian |
o #define the name "tun" in defs.h against the future possibility of supporting architectures with different device names. o Close /dev/tunX when destroying the bundle. o Don't forget to close the parent end of the pipe in the child process when exec'ing a program from a chat script. o If we close our controlling terminal, ditch the current session with it, allowing getty(8) (or whatever) to regain control. o After transferring our controlling terminal descriptor to another ppp instance, we now fork a new ppp to continue where we left off, transferring ownership of all uucp locks and the /var/run/tunX.pid file. Meanwhile the parent closes all file descriptors, defaults all signals and does a pause() to wait for a HUP after the transferred descriptor is finally closed. We don't run /bin/cat any more (again!).
Suggested by: bde
TODO: It seems clocal devices need their pause()d session leader to be given a manual HUP, as closing the last open descriptor doesn't do the job.
|
36450 |
28-May-1998 |
brian |
o Don't forget to close our transfer socket if we cannot generate the data to transfer. o Transfer uucp lock ownership for the transferred device. o Don't assume we know the correct values of dev_is_modem and mbits after the transfer.
|
36431 |
27-May-1998 |
brian |
Don't assume stdout is a tty in interactive mode Analyzed by: dmaddox@scsn.net (Donald J. Maddox)
|
36368 |
25-May-1998 |
brian |
o Only do the /bin/cat bit when we're transferring our ctty.
|
36345 |
25-May-1998 |
brian |
o Don't try to transfer tty device descriptors as there's no way of transferring session rights with them. Instead, create two `/bin/cat' processes. A new child is spawned and disassociated from the terminal and the parent, which continues with the rest of the ppp process. Meanwhile, the parent spawns another child, and both the parent and child exec the `/bin/cat' commands with the appropriate descriptors. This way, the session is owned by the parent, and the tty is held open. o Close LCPs that have done a TLF and are now in ST_STOPPED before calling Down. This prevents them from trying to come back up again after the peer has shut them down (it seems a bit strange that the rfc says that a Down in ST_STOPPED will cause a TLS etc). o Don't try to set the physical link name pointer when we're receiving and renaming a datalink. The physical hasn't been created yet, and as it happens, the garbage physical pointer happens to be the value of another physical - so we're pointing that other physical name at ourselves. yeuck. o Re-arrange the order of things in main (DoLoop()). We now handle signals only after the select and not before the UpdateSet. It's possible that either a signal (FSM timeout) or a descriptor_Read() brings a link down, after which we'd better tidy up any dead direct and 1off descriptors before calling UpdateSet() again. o Mention when we detect a PPP packet when we see one before the link is up (then start LCP as before).
|
36316 |
23-May-1998 |
brian |
Show the link mode in `show links'.
|
36315 |
23-May-1998 |
brian |
Oops - patch failed in last commit ????
|
36314 |
23-May-1998 |
brian |
o Move our prompt descriptor list outside of the bundle. It's now dealt with by the `server' object. This simplifies things as we only have one list of prompt descriptors and the log_ routines check prompt::logactive to determine whether it should be used for output. o Include the MP socket UpdateSet() result in bundle::UpdateSet(). o Don't select on the tun device unless we're in NETWORK phase or AUTO mode. o Stop the idle timer when we go to DEAD phase. We may have transferred a link and not had a chance to kill it. o Don't fail when trying to unlink our transferred datalink from our descriptor lists just before the transfer. o Add our link descriptor to the write set if we got a short write the last time (physical::out is set). o Log the connection source address when a connection is closed. o Remove descriptor::next field. Descriptor lists are not required any more.
|
36312 |
23-May-1998 |
brian |
o Make sure we adjust our min seq and process any outstanding queued incoming fragments when a link goes down. o Don't use the minimum sequence numbers of links that aren't open. o Understand sequence number wrapping when determining the minimum sequence number. o Add & adjust a few comments.
|
36310 |
23-May-1998 |
brian |
o If all CCPs are disabled & denied, don't send a REQ - just enter STOPPED state waiting for the peer to say something.
|
36289 |
21-May-1998 |
brian |
Don't give .It too many args.
|
36288 |
21-May-1998 |
brian |
Remove -Wpointer-arith
|
36287 |
21-May-1998 |
brian |
o Add some missing #includes o Calculate base device name correctly.
|
36285 |
21-May-1998 |
brian |
MFMP: Make ppp multilink capable. See the file README.changes, and re-read the man page.
|
36226 |
19-May-1998 |
brian |
Close forgotten descriptor. PR: 6690 Submitted by: Ruslan Ermilov <ru@ucb.crimea.ua>
|
35449 |
25-Apr-1998 |
brian |
Quieten gcc-2.8.1
|
35442 |
25-Apr-1998 |
brian |
Fix diagnostic typo.
|
34614 |
16-Mar-1998 |
brian |
Cosmetic: .Dq -> .It
|
34539 |
13-Mar-1998 |
brian |
Correct #ifdef for __FreeBSD__ < 3
|
34537 |
13-Mar-1998 |
brian |
Add missing include
|
34536 |
13-Mar-1998 |
brian |
Add extraneous braces to stiffle warnings from gcc-2.8
|
34534 |
13-Mar-1998 |
brian |
MFMP: Don't send LQRs when the peer has LCP REJ'd them. Send ECHO LQRs instead.
|
34494 |
12-Mar-1998 |
brian |
o Fix a few comment typos. o Fix ``set timeout'' usage message and documentation. o Change ifOutPackets, ifOutOctets and ifOutLQRs to `u_int32_t's so that they wrap correctly. o Put the LQR in network byte order using the correct struct size (sizeof u_int32_t, not sizeof u_long). o Wrap LQR ECHO counters correctly. o Don't increment OutLQR count if the last LQR hasn't been replied to. o Initialise HisLqrData (last received LQR) in StartLqm. o Don't start the LQR timer if we're `disabled' and `accepted'. o Generate LQR responses when both sides are using a timer and we're not going to send our next LQR before the peers max timeout.
LQR should now be fully functional.
|
34331 |
08-Mar-1998 |
brian |
Explicitly call `caused' an `int'. Sugested by: gcc-2.8
|
34063 |
06-Mar-1998 |
brian |
Use the correct device name in -direct mode.
|
33603 |
19-Feb-1998 |
brian |
MFMP: Allow 8 character login names. Do the login()/logwtmp()/logout() as id 0.
|
33589 |
18-Feb-1998 |
brian |
MFMP: LogWARN rather than LogERROR when we can't create our diagnostic socket.
|
33584 |
18-Feb-1998 |
brian |
Don't leak memory when the peer sends PROTO_COMPD packets without negotiating compression first.
|
33230 |
10-Feb-1998 |
brian |
Move handle_signals() to before the FD_SETs. handle_signals() may result in a our modem closing after it's made its way into the fd_set, resulting in a program exit (with select(): bad file descriptor) rather than a dropped link.
|
33063 |
04-Feb-1998 |
brian |
Merge from MP branch: Correct magic number format string
|
32860 |
29-Jan-1998 |
brian |
Don't moan about not creating tunX.pid and ttyX.if if RELEASE_CRUNCH is defined.
|
32858 |
29-Jan-1998 |
brian |
Talk a bit about ongoing development.
|
32833 |
27-Jan-1998 |
brian |
Cosmetic: Don't mention the authors name at startup. He's already credited in the man page. Instead, make the message consistent with the one given to the diagnostic port (and fix the grammar when entering `term' mode). Don't credit the zlib author in the man page as ppp isn't linked directly with zlib (it's shared). Mention when the OpenBSD port was first made available.
|
32723 |
24-Jan-1998 |
brian |
Fix error message. Don't complicate the test compilation mentioned at the start of the file.
|
32722 |
23-Jan-1998 |
brian |
Stop bogus warnings.
|
32721 |
23-Jan-1998 |
brian |
Re-implement the proxy arp sockaddr_dl search routine (again). It now works :-) and searches all interface aliases.
|
32711 |
23-Jan-1998 |
brian |
Don't allow manual dialing unless in auto or interactive mode.
|
32671 |
21-Jan-1998 |
brian |
Use the sockaddr_dl with the link#, not the ethernet address when creating proxy arp entries.
|
32663 |
21-Jan-1998 |
brian |
Remove unused #includes. Make various bits static. Remove unused variables. Submitted by: eivind
|
32658 |
20-Jan-1998 |
brian |
Allow an optional delay when specifying "set openmode active". The delay defaults to 1 sec (as it always has) unless we've done a ~p in interactive mode or we've actually detected a HDLC frame. This is now cleanly implemented (via async timers) so that it is possible for LCP to come up despite the delay if an LCP REQ is received.
This will hopefully solve situations with slow servers or slirp scenarios (where ECHO is left on the port for a second or so before the peer enters packet mode).
Also, ~p in interactive mode no longer changes the value of the default openmode delay and -dedicated mode enters packet mode in the right state according to the value of openmode.
|
32628 |
19-Jan-1998 |
brian |
dlopen(..., RTLD_NOW) rather than RTLD_LAZY. Pointed out by: John Polstra <jdp@polstra.com>
|
32627 |
19-Jan-1998 |
brian |
sys/types.h -> sys/param.h Pointed out by: Niklas Hallqvist <niklas@petra.appli.se>
|
32616 |
19-Jan-1998 |
brian |
Reimplement proxy-arp address stuff using sysctl().
|
32614 |
18-Jan-1998 |
brian |
Allow "set vj" for changing the default number of slots and whether slot compression is requested. Don't show current values with "show ipcp" if IPCP isn't "opened".
|
32589 |
17-Jan-1998 |
brian |
Remove the necessity of -ldes and -lalias etc from release/Makefile. When building a release, RELEASE_CRUNCH is defined for a `make' of the objects required by the crunch of each program. The object list is still obtained in the same way, so you must make sure that all objects are built (empty if necessary) by this make. ppp/Makefile provides an example.
Reviewed by: jkh
|
32499 |
14-Jan-1998 |
brian |
Free our input mbuf when the FCS is good (oops, memory leak).
|
32497 |
14-Jan-1998 |
brian |
Lose __libalias_version. We now look for the biggest of libalias.so.2.*
|
32442 |
11-Jan-1998 |
brian |
Lose <net/if_var.h> ! This'll require a `make installworld'.
|
32439 |
11-Jan-1998 |
brian |
Make things work when sizeof(long) != 32 (hopefully)
|
32425 |
11-Jan-1998 |
brian |
Remember any number of interface names.
|
32421 |
11-Jan-1998 |
brian |
Remove includes of if_var.h and in_var.h
|
32416 |
11-Jan-1998 |
brian |
Allow 6 byte interface names (for >tun99)
|
32403 |
10-Jan-1998 |
brian |
Pause according to the redial setting when dialing manually. Pointed out by: Berend de Boer <berend@compuserve.com>
|
32381 |
10-Jan-1998 |
brian |
Implement Reset{Req,Ack} properly, as per rfc 1962. (I completely mis-read the rfc last time 'round!)
This means: o Better CCP/WARN Reset diagnostics. o After we've sent a REQ and before we've received an ACK, we drop incoming compressed data and send another REQ. o Before sending an ACK, re-sequence all pending PRI_NORMAL data in the modem queue so that pending packets won't get to the peer *after* the ResetAck. o Send ACKs with the `identifier' from the REQ frame. o After we've received a correct ACK, duplicate ACKs are ok (and will reset our history). o Incorrect ACKs (not matching the last REQ) are moaned about and dropped.
Also,
o Calculate the correct FCS after compressing a packet. DEFLATE *may* produce an mbuf with more than a single link in the chain, but HdlcOutput didn't know how to calculate the FCS :-( o Make `struct fsm'::reqid a u_char, not an int. This fix will prevent us from sending id `255' 2,000,000,000 times before wrapping to `0' for another 2,000,000,000 sends :-/ o Bump the version number a little.
The end result: DEFLATE now works over an unreliable link layer. I can txfr a 1.5Mb kernel over a (rather bad) null-modem cable at an average of 21679 bytes per second using rcp. Repeat after me: Don't test compression using a loopback ppp/tcp setup as we never lose packets and therefore never have to reset!
|
32351 |
08-Jan-1998 |
brian |
Zap any addresses on the network side of the `tun' as soon as we've successfully opened the /dev side.
|
32284 |
06-Jan-1998 |
brian |
Correct the return value of ReportProtStatus() ("show proto"). Submitted by: Dave Bodenstab <imdave@mcs.net>
|
32267 |
05-Jan-1998 |
brian |
o Allow the use of HISADDR as the first arg to "add". o Allow a forth argument in ppp.secret, specifying a new label. This gives control over which section of ppp.link{up,down} is used based on the authenticated user. o Support random address ranges in ppp.secret (not just in ppp.conf). o Add a AUTHENTICATING INCOMING CONNECTIONS section to the man page. o Add a bit more about DEFLATE in the man page. o Fix the incorrect "you must specify a password in interactive mode" bit of the manual. o Space things in the man page consistently. o Be more precice about where you can use MYADDR, HISADDR and INTERFACE in the "add" command documentation.
|
32251 |
04-Jan-1998 |
brian |
Make it clear that using "add ...." in ppp.conf when not in -auto mode isn't a good idea, and that the add should be done in ppp.linkup instead.
Change "add 0 0 HISADDR" to "add default HISADDR". It's more intuitive.
|
32247 |
04-Jan-1998 |
brian |
Don't scribble on the stack if our input packet is bigger than our MRU. Moan and drop the packet instead.
|
32246 |
04-Jan-1998 |
brian |
Initialize CcpInfo protocols to -1 (none, not OUI). Don't Call Term() for an algorithm that hasn't been Init()d.
|
32129 |
30-Dec-1997 |
brian |
Allow "set device" to close the open modem if we're in interactive mode. Use `netfd' in fcntl() and tc[gs]etattr() calls rather than the hard coded descriptor 0. Use _FILENO constants from unistd.h
This un-breaks things after my recent `close(0)' in interactive mode.
Close STDIN_FILENO, and open _PATH_TTY O_RDONLY as `netfd'. This has the effect of allowing `show route' to output more than about a page of data (on FreeBSD, not OpenBSD....). I have no idea why, except that it was a direct consequence of the tcsetattr() in TtyCommandMode(). My previous fix (closing descriptor 0) `fixed' this because all calls to tcsetattr() failed :-(
|
32125 |
30-Dec-1997 |
brian |
Typo in error message.
|
32124 |
30-Dec-1997 |
brian |
Use inet_aton() before gethostbyname()
Suggested by: Christian Sandberg <christian@yes.no> Eivind Eklund <perhaps@yes.no>
|
32109 |
30-Dec-1997 |
brian |
Allow "add! dst mask gw" (note the ``!'') to do an RTM_CHANGE if the RTM_ADD fails with an EEXIST. Allow "delete! dst" (note the ``!'') to silently fail if the RTM_DELETE fails with an ESRCH. Also, make the ESRCH and EEXIST error conditions more understandable to the casual observer.
|
32103 |
29-Dec-1997 |
brian |
Don't complain that someone's changed the clock unless the time after a select() interrupt is more than 1 second past what should have been the end time. We may just be running on an over-burdened machine.
|
32102 |
29-Dec-1997 |
brian |
Show how much time is left before timing out in the `show timeout' output. Remove ipIdleSecs variable - it's not used.
|
32063 |
28-Dec-1997 |
brian |
Don't expect select() to adjust the passed time when it's interrupted with a SIGALRM. In fact, select() sets the passed time to zero, making the previous implementation terminate always after 1/10th of a second !
Also, deal with someone changing the clock while we're sleeping (and restart the whole sleep).
Dangers pointed out by: Theo de Raadt <deraadt@cvs.openbsd.org>
|
32040 |
28-Dec-1997 |
brian |
Initialize mbuf::pnext. Complain to LogERROR if we have internal inconsistency (not LogDEBUG).
|
32039 |
28-Dec-1997 |
brian |
If a packet causes a dial, continue to test whether it's blocked in the output filter. If so, proceed with the dial despite dropping the packet.
|
32038 |
28-Dec-1997 |
brian |
Allow initial sequence numbers less than what we're expecting. When CCP is originally negotiated, the only thing we can be sure about is that we've started adding data to the inflate dictionary either before or at the same time as the peer. This is ok, 'cos DEFLATE is a `sliding window' compressor.
|
32025 |
27-Dec-1997 |
brian |
Write to the routing socket as uid 0. It's not good enough to just open it as uid 0 under OpenBSD.
|
32021 |
27-Dec-1997 |
brian |
Show who closes the diagnostic connection. Show the IP range (if specified) in "show ipcp". Close unused descriptors 0 and 2 in interactive mode. Pass (size_t *) rather than (int *) to sysctl().
|
32017 |
27-Dec-1997 |
brian |
Allow (and document) execution of commands from within our chat script. You can now even run chat(8) - see ppp.conf.sample.
|
31964 |
24-Dec-1997 |
brian |
Correct copyright.
Requested by: Eivind Eklund <perhaps@yes.no>
|
31962 |
24-Dec-1997 |
brian |
Cosmetic (style): sizeof(var) -> sizeof var sizeof type -> sizeof(type)
Suggested by: J Wunsch <j@uriah.heep.sax.de>
|
31961 |
24-Dec-1997 |
brian |
Use sizeof cftypes128 for NCFTYPES128 macro, not sizeof cftypes ! Lucky that sizeof cftypes < sizeof cftypes128
|
31953 |
23-Dec-1997 |
brian |
strncpy(x,y,sizeof(x)) --> strncpy(x,y,sizeof(x)-1)
Suggested by: Philippe Charnier <charnier@lirmm.fr> Theo de Raadt <deraadt@cvs.openbsd.org>
|
31931 |
22-Dec-1997 |
brian |
Don't forget to ntohs(sin.sin_port) (DUH!)
|
31923 |
21-Dec-1997 |
brian |
Charles Mott created these (and told me via email that they were BSD copyright). Use his name, not mine.
|
31921 |
21-Dec-1997 |
brian |
Add (BSD) copyright headers.
|
31918 |
21-Dec-1997 |
brian |
Cosmetic: Test for comment lines after the lenght has been established. Pointed out by: Theo de Raadt <deraadt@cvs.openbsd.org>
|
31917 |
21-Dec-1997 |
brian |
Allow multiple (comma seperated) devices on the "set device" line. Submitted by: Derek Inksetter <derek@saidev.com>
|
31915 |
21-Dec-1997 |
brian |
Mention that leading whitespace is ignored when identifying comments.
|
31914 |
21-Dec-1997 |
brian |
Zero struct sockaddr_??s before filling them in. Suggested by: Theo de Raadt <deraadt@cvs.openbsd.org>
|
31913 |
21-Dec-1997 |
brian |
Allow leading whitespace before '#' when identifying comments. Submitted by: Dave Bodenstab <imdave@mcs.net>
|
31911 |
21-Dec-1997 |
brian |
Cosmetic: Remove blank lines, add .Pp where necessary. Submitted by: Theo de Raadt <deraadt@cvs.openbsd.org>
|
31858 |
19-Dec-1997 |
brian |
Reset our "ifaddr" to zero if the "set ifaddr" fails in -auto mode. This makes ppp correctly exit if you kick it off twice in auto mode with the same label (read: interface).
|
31850 |
19-Dec-1997 |
brian |
If the peer asks for IP 0.0.0.0, choose an IP ourselves without looking for it in our IP list (and if found, trying to ifconfig it!).
|
31830 |
18-Dec-1997 |
brian |
Replace
strcpy(a, b); /* a and b are the same size */
with
strncpy(a, b, sizeof(a)); a[sizeof(a)-1] = '\0';
Making the code `correct at a glance'.
Suggested by: Theo de Raadt <deraadt@cvs.openbsd.org>
|
31828 |
18-Dec-1997 |
brian |
Don't log the actual password when command-logging "passwd xxxx".
|
31827 |
17-Dec-1997 |
brian |
Don't depend on a u_long being 32 bits.
Pointed out by: Theo de Raadt <deraadt@cvs.openbsd.org>
|
31826 |
17-Dec-1997 |
brian |
char filename[200] => char filename[MAXPATHLEN]
Pointed out by: Theo de Raadt <deraadt@cvs.openbsd.org>
|
31825 |
17-Dec-1997 |
brian |
Log the source of client connections to the diagnostic port. Disallow connections from port numbers <1024 as low port numbers can only really mean trouble (ftp bounces etc.).
Discussed at length with: Theo de Raadt <deraadt@cvs.openbsd.org>
|
31824 |
17-Dec-1997 |
brian |
Remove useless comparison.
|
31823 |
17-Dec-1997 |
brian |
If we've got a descriptor table that's bigger than an fd_set, make sure that all descriptors >2 are closed when we start - otherwise we're asking for a dump in FD_SET().
Problem pointed out by: Theo de Raadt <deraadt@cvs.openbsd.org>
|
31822 |
17-Dec-1997 |
brian |
o Log ******** instead of the actual password for "set authkey" when command logging is switched on. o Display ******** for the authkey for "show auth" o Document how \P should be used, and document the other chat escapes while I'm there. o Make sure the full command is displayed when a compound command fails - ie, "set novar rubbish" should say "set novar: Invalid command" rather than "novar: Invalid command"
Problem pointed out by: Theo de Raadt <deraadt@cvs.openbsd.org> (among others)
|
31791 |
17-Dec-1997 |
brian |
Fix a potential overflow where, if the label passed on the command line is > LINE_LEN (512 bytes), we scribble (*blush*).
Hinted at by: Theo de Raadt <deraadt@cvs.openbsd.org>
Change sprintf(buf, "fixedstring") to strcpy(buf, "fixedstring").
|
31759 |
16-Dec-1997 |
brian |
Wrap long lines Submitted by: Greg Lehey <grog@lemis.com>
|
31756 |
15-Dec-1997 |
brian |
Correct return values from alias routines.
|
31740 |
15-Dec-1997 |
brian |
Use LogWARN for command usage messages and unrecognised commands, not LogCOMMAND.
|
31739 |
15-Dec-1997 |
brian |
Do 2 passes when "delete all"ing. The first pass removes all RTF_WASCLONED routes, and the second removes the others. This avoids the situation where we've added an RTF_CLONING route (such as ``default''), created some clones, then deleted the CLONING route before the WASCLONED route(s). Without the two passes, we get errno (not rtm_errno) set to ESRCH when deleting the WASCLONED route, despite the deletion succeeding !
Also: Enhance the route operation failure diagnostics. Make portability #ifdefs a bit more generic.
|
31690 |
13-Dec-1997 |
brian |
Allow random IP number allocation to peer. Validate the peers suggested IP by attempting to make a routing table entry. Give up IPCP negotiation if the peer NAKs us with an unusable IP. Always SIOCDIFADDR then SIOCAIFADDR when configuring the tun device. Using SIOCSIFDSTADDR allows duplicate dst addresses (which we don't want)!!! Allow up to 200 interface names (was 50) (now that ppp can play server properly). Up the version number (1.5 -> 1.6).
Cosmetic: Log unexpected CCP packets in the CCP log rather than the ERROR log. Log unexpected Config Reqs in the appropriate LCP/IPCP/CCP log rather than the ERROR log. Log failed route additions and deletions with WARN, not TCPIP. Log the option id and length for unrecognised IPCP options. Change some .Sq to .Ar in the man page.
|
31632 |
08-Dec-1997 |
brian |
Deal with inflate() returning avail_in == avail_out == 0 We must call inflate again in case there's any pending output despite our input buffer being empty. If the output buffer is in fact already flushed, inflate() returns Z_BUF_ERROR. There isn't really an error !
|
31631 |
08-Dec-1997 |
brian |
Correct usage of `add' and `delete'.
|
31616 |
07-Dec-1997 |
brian |
Fix PAP, CHAP & LQR req (I broke the byte ordering when I did the deflate re-org). Make PAP & CHAP negotiation prettier in the log file. If both PAP & CHAP are `enabled' and the peer NAKs CHAP suggesting PAP, be friendly and REQ PAP the next time. This is in line with the rfc.
|
31598 |
07-Dec-1997 |
brian |
Only allow one arg to `delete' - the mask & gateway aren't necessary. Delete AF_LINK routes as well as AF_INET. Allow the word `default' as the arg to `delete' or in place of the first two args (dest & netmask) to `add'. Accept INTERFACE as the third arg to `add'.
You can now say `add default interface' to create a default route through the tun interface. It's reported that subsequent bind()s will bind to a broadcast address and not to the address currently assigned to the tun device - this is the first step towards supporting that first connection that was around from before the dynamic IP negotiation....
|
31585 |
06-Dec-1997 |
brian |
Correct cftypes128 index.
|
31541 |
04-Dec-1997 |
brian |
Understand ``sockaddr_dl''s where sdl_nlen != 0
|
31540 |
04-Dec-1997 |
brian |
Remove duplicate REJECTED macro. Remove extraneous pointers.
|
31539 |
04-Dec-1997 |
brian |
Initialize ccpstate when CCP comes down. Remove extraneous pointers.
|
31538 |
04-Dec-1997 |
brian |
Parenthesise the REJECTED macro.
|
31537 |
04-Dec-1997 |
brian |
Identify rejected protocol types according to rfc1700.
|
31518 |
03-Dec-1997 |
brian |
Fix the CCP Type field value for DEFLATE. (I *really* meant to do this *before* committing the deflate changes in the first place - oops).
Pppd is horribly broken in this respect - refer to the ppp man page for details. Ppp *WON'T* negotiate deflate with pppd by default - you must ``enable'' and ``accept'' ``pppd-deflate'' in your config.
While I'm in there, update the cftypes in ccp.c so that we recognise some more protocols (we don't actually do anything with them - just send a REJ).
|
31514 |
03-Dec-1997 |
brian |
Abstract the CCP layer a level. Add DEFLATE support.
|
31418 |
26-Nov-1997 |
brian |
Display connect time as 0 if we've never been connected. Pointed out by: Jeff Kletsky <Jeff@wagsky.com>
|
31372 |
23-Nov-1997 |
brian |
Fix the help command (broken when I re-prototyped all the commands).
|
31355 |
22-Nov-1997 |
brian |
Up the version number to 1.5.
|
31354 |
22-Nov-1997 |
brian |
Understand how to derive the names of interfaces when they aren't ordered. This is probably vital for laptop support ;-I
|
31343 |
22-Nov-1997 |
brian |
Fix prototypes. Remove extraneous decls. Add ``const'' to several places. Allow ``make NOALIAS=1'' to remove IP aliasing. Merge with OpenBSD - only the Makefiles vary.
We can now survive a compile with -Wall -Wbad-function-cast -Wcast-align -Wcast-qual -Winline -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes -Wwrite-strings -Wchar-subscripts (although the Makefile just contains -Wall).
|
31288 |
18-Nov-1997 |
brian |
Allow zero args to "cvs log".
|
31285 |
18-Nov-1997 |
brian |
Fix interactive mode so that it doesn't require a passwd (again!).
|
31272 |
18-Nov-1997 |
brian |
Add throughput logging (disabled by default). Use "enable throughput" to see modem & IPCP throughput. Removed an extraneous prompt()
|
31247 |
18-Nov-1997 |
brian |
Remove the outq error in "show modem".
|
31240 |
18-Nov-1997 |
brian |
DropClient() when read() returns 0 (as it did before).
|
31203 |
18-Nov-1997 |
brian |
Add and use a DropClient() function for closing the diagnostic port. Call DropClient() from Cleanup() too.
|
31197 |
17-Nov-1997 |
brian |
Don't SetLabel() 'till we've done the SelectSystem(). This avoids the situation where we specify label ``x'' on the command line, and label ``x'' has a ``load y'' command embedded in it. When the line comes up, we want to use ``x'' from ppp.linkup, not ``y''.
|
31196 |
17-Nov-1997 |
brian |
Add id strings to tun.[ch]. Don't try to open ppp.secret if we're never going to use it.
|
31195 |
16-Nov-1997 |
brian |
Abstract data read from and written to the tun device, allowing for a possible header on the front of all packets. In OpenBSD, there's a structure containing the address family here. If we're building under OpenBSD, set up the ``flags'' part of struct tuninfo (not there under FreeBSD) so that we config the interface as POINTOPOINT. Prefix prototypes with ``extern'' in os.c for consistency.
These changes are cosmetic under FreeBSD, but allow ppp to build & work under OpenBSD (bar the srandomdev() stuff, the inclusing of <net/if_var.h> and some Makefile symantecs).
|
31176 |
15-Nov-1997 |
brian |
Interpret AF_LINK sockaddrs correctly in show/delete route. Print out inteface names rather than numbers, and use the same "find out the names" code in SetIfAddr(). This means that the nasty ioctl(,SIOCGIFCONF,)/realloc loop is now buried :-)
|
31173 |
14-Nov-1997 |
brian |
uucplock is in section 3 not section 8 !
|
31171 |
14-Nov-1997 |
brian |
Update the cftypes arrays according to rfc1700. Log IPCP reqests as IPCP.
|
31170 |
14-Nov-1997 |
brian |
Allow blank lines in config entries (they aren't terminators).
|
31159 |
13-Nov-1997 |
brian |
Use seteuid() instead of setreuid(). The setreuid() page says seteuid is better !
|
31158 |
13-Nov-1997 |
brian |
Don't run if ppp.conf is writable.
|
31157 |
13-Nov-1997 |
brian |
Log a warning when a -direct invocation is denied.
|
31156 |
13-Nov-1997 |
brian |
Fix command logging (broken with the "allow" command).
|
31155 |
13-Nov-1997 |
brian |
Null commit: The last commit made some warning messages clearer.
|
31154 |
13-Nov-1997 |
brian |
Don't delete interface routes when we do an LcpDown. They'll get deleted in Cleanup().
|
31143 |
12-Nov-1997 |
brian |
Understand networks in the filter rules. We don't insist on x.x.x.0/24 - x.x.x.x/24 is ok too.
|
31142 |
12-Nov-1997 |
brian |
Log whether or not IP packets are bloked due to a filter.
|
31141 |
12-Nov-1997 |
brian |
Return correct value from "set loopback". Output "set ?filter deny host|port" rules correctly with show ?filter. Submitted by: Dave Bodenstab <imdave@mcs.net>
|
31140 |
12-Nov-1997 |
brian |
Don't attempt to dial if "dial label" has specified a restricted label.
|
31139 |
12-Nov-1997 |
brian |
Pass a missing arg to LogPrintf().
|
31125 |
12-Nov-1997 |
brian |
Don't warn that we're waiting for the command to complete if we've put it in the background (!bg).
|
31122 |
11-Nov-1997 |
brian |
Don't moan about unexpected config req's when in ST_STOPPING.
|
31121 |
11-Nov-1997 |
brian |
Finish the security improvements: o Add "allow" command: "allow users a b c" gives access to users a, b and c. "allow modes auto" gives those users access to auto mode only. "allow users *" and "allow modes *" are accepted. No users and all modes are allowed by default. UID 0 can do anything. o Set the current label with the "load" and "dial" commands so that the call to ppp.linkdown makes sense. o Up the verison number. o Don't OR MODE_AUTO for -background and -ddial. o Don't OR MODE_INTER when we get a diagnostic connection. o Allow up to 40 args per line (was 20). o "set ifaddr" only changes the interface in AUTO mode (with other modes, it happens after IPCP negotiation). o Sort command descriptions in the man page. o Support -dedicated mode where we just talk ppp forever (no login etc).
|
31118 |
11-Nov-1997 |
brian |
Fix typo that causes CHAP RESPONSEs to *always* be damned M$ responses if you've got DES.
|
31116 |
11-Nov-1997 |
brian |
Flush the output stream when doing local logging.
|
31083 |
09-Nov-1997 |
brian |
Don't Cleanup() in background mode when we get a "close", the LcpClose() will eventually do it when we get to PHASE_DEAD.
|
31082 |
09-Nov-1997 |
brian |
Initialize VarAltPhone. PR: 4993
|
31081 |
09-Nov-1997 |
brian |
Don't create a diagnostic socket by default. Allow a password spec on the "set server" command line. Use SIGUSR2 to close the diagnostic socket. Some man page corrections.
|
31080 |
09-Nov-1997 |
brian |
Don't ask for a password if it's specified as empty.
|
31077 |
09-Nov-1997 |
brian |
Add the "!include" syntax. Return 0 from "show" commands.
|
31070 |
09-Nov-1997 |
brian |
Increase chat script sizes to 512 Requested by: Michael Reifenberger <root@totum.plaut.de>
|
31069 |
09-Nov-1997 |
brian |
Remove the use of $HOME/.ppp.*
|
31068 |
09-Nov-1997 |
brian |
Null commit: The last modification removed the use of $HOME/.ppp.*
|
31061 |
09-Nov-1997 |
brian |
Introduce ID0 logging. Stay as the invoking uid as much as possible. Execution as a normal user is still forbidden for now, so these changes are pretty ineffective. The next commit will implement the modifications suggested on -hackers a number of days ago.
|
31051 |
09-Nov-1997 |
brian |
When responding to a CHAP challenge, don't try to use ppp.secret to get a key value based on the peers name, then send the value of AuthName with the encrypted result. This is *way* too confusing. Instead, always use AuthName and AuthKey as the documentation says.
|
31048 |
09-Nov-1997 |
brian |
Don't include RTA_GATEWAY in rtm_addrs unless it's specified.
|
31038 |
08-Nov-1997 |
brian |
Typo police.
|
31034 |
08-Nov-1997 |
brian |
Don't pass global vars as args. Remove local/global conflicts.
|
30970 |
06-Nov-1997 |
brian |
o Spelling police. o Emphasize ``PPP'' o x-ref other programs o Some minor clarifications
|
30913 |
04-Nov-1997 |
brian |
Introduce [local] to "set log [local] ...". This spits logging out to the screen in terminal mode - should be good for installation problem diagnosis.
|
30825 |
29-Oct-1997 |
brian |
o Bump version to 1.3 to reflect major changes o Report modem connect time properly o Report bytes in/out over physical media o Fix phases (TERMINATE is *higher than* DEAD) o Do a LayerFinish from LcpDown o Bring down IPCP & CCP when we enter PHASE_TERMINATE o Give a new prompt when we go to PHASE_DEAD o Stop the modem timer properly when idle o Treat sig 15 like an exiting carrier loss o Log (DEBUG) offline & online transitions
|
30733 |
26-Oct-1997 |
brian |
Cosmetic: Move prototypes into the correct headers.
|
30715 |
26-Oct-1997 |
brian |
Cosmetic (no functional changes): o Add missing $Id$s o Move extern decls from .c -> .h files o Staticize o Remove #includes from .h files o style(9)ify includes o bcopy -> memcpy bzero -> memset bcmp -> memcmp index -> strchr rindex -> strrchr o Move timeout.h -> timer.h (making it consistent w/ timer.c) o Add -Wmissing-prototypes
|
30697 |
24-Oct-1997 |
brian |
sleep => nointr_sleep usleep => nointr_usleep (not just a #define) Already done by: ache
|
30677 |
23-Oct-1997 |
ache |
Restore back non-interruptable sleep/usleep just redefine them to not mix with standard library functions
|
30676 |
23-Oct-1997 |
ache |
Remove private sleep/usleep hacks
|
30669 |
23-Oct-1997 |
brian |
Fix various filter problems PR: 4727 Submitted by: Chiharu Shibata <chi@bd.mbn.or.jp>
|
30641 |
22-Oct-1997 |
brian |
Fix HDLC logging (actually LogDumpBp()). It was only outputting the first mbuf in the chain.
|
30500 |
17-Oct-1997 |
brian |
Ask for VJ slot id compression by default.
|
30497 |
16-Oct-1997 |
brian |
cosmetic: o Log client connection commands when "set log +command" o Don't display PAP password in the log unless we're "set log +debug".
|
30421 |
15-Oct-1997 |
brian |
Initialise LCP, IPCP and CCP as soon as LCP is down. Without this, in -auto mode, we stay in ST_STOPPING and never check our dial filters to see if it's time to bring the line up again.
This may make "set stopped" redundant.
|
30357 |
12-Oct-1997 |
brian |
Un-spam ip_sum (arrgh - I don't know how this made it into my patches :()
|
30316 |
12-Oct-1997 |
brian |
Cosmetic: Mention that ppp is suspending before executing a "shell" command.
|
30187 |
07-Oct-1997 |
brian |
Support VJ maximum slot identifiers != 15. Support VJ slot id compression.
Previously, ppp would negotiate a max slot between 2 & 15 (if asked), and would agree to slot id compression (if asked). It would then proceed to use 16 slots and no compression anyway. The result was a rather unusable connection.
|
30126 |
05-Oct-1997 |
brian |
Change things around a bit when bringing down the layers.
o LcpLayerDown() no longer does a NewPhase(PHASE_TERMINATE). Instead, it's done in LcpLayerFinish(). LayerFinish() gets called by the FSM after the LCP FSM goes through the Stopping and Stopped states.
o -direct and -background mode exit at PHASE_TERMINATE, not PHASE_DEAD.
The result is that LCP, CCP & IPCP are brought down cleanly on both sides of the link (not just our side). Killing ppp rather than just closing it still makes it get out after the LCP SendTerminateReq(). I'll have a look at that soon. We're probably not actually sending the REQ :-(
|
30124 |
05-Oct-1997 |
brian |
Refer a bit to pppctl. Suggested (far to subtly for his own good) by: joerg
|
30115 |
05-Oct-1997 |
brian |
Cosmetic: Be specific about using TABs in syslog.conf.
|
30092 |
04-Oct-1997 |
brian |
Cosmetic: Log a strerror(errno) when failing to write to the tun device.
|
29990 |
29-Sep-1997 |
brian |
If "set mtu" is used, *and* the mtu is less than the value requested by the peer, NAK using this value rather than silently just changing the interface mtu.
|
29947 |
28-Sep-1997 |
brian |
Test for the existence of ../../secure rather than /usr/include/des.h before building with MSChap. support. Also allow -DNOCRYPT (as well as -DNOSECURE) as an override sbin/init example pointed out by: bde
|
29899 |
27-Sep-1997 |
brian |
Don't depend on time.h including sys/types.h
|
29895 |
27-Sep-1997 |
brian |
Don't login twice when using passwdauth Suggested by: Peter Childs <pjchilds@imforei.apana.org.au> Merge the whole module into a few lines in pap.c
|
29862 |
26-Sep-1997 |
brian |
#define RECON_ENVOKED as 4 (not 3, like RECON_UNKNOWN) Pointed out by: tom@tomqnx.com (Tom Torrance at home)
|
29841 |
25-Sep-1997 |
brian |
Do the MSChap encryption. Submitted by: Gabor Kincses <gabor@acm.org>
|
29840 |
25-Sep-1997 |
brian |
Allow Microsoft CHAP authentication. This is a combination of MD4 & DES. Submitted by: Gabor Kincses <gabor@acm.org>
|
29750 |
23-Sep-1997 |
brian |
Don't luse uu_lock in -direct mode. It conflicts w/ hylafax & the like. Get the CD bit right at last - now that I've got my second modem back - loss of carrier makes ppp exit.
|
29744 |
23-Sep-1997 |
brian |
Undo botched commit (local changes got in)
|
29729 |
22-Sep-1997 |
brian |
Don't allow accept/deny when it's not appropriate. Log PAP/CHAP users in utmp & wtmp, allowing it to be avoided with "disable utmp"
|
29700 |
22-Sep-1997 |
brian |
Don't pause for one second before starting LCP negotiation. Instead, incrementally pause after receiving LCPs with the same magic. We can now suffer a server that waits more than 1 second before responding. Pauses greater than a second get hopelessly confusing as when the server eventually starts, it sees a flood of Config Requests followed by config NAKs and changes of magic. This causes the server to change its magic over and over.....
|
29698 |
22-Sep-1997 |
brian |
Use the correct device name in "show modem"
|
29696 |
22-Sep-1997 |
brian |
Correct the way the uucp lock file and the ttyXX.if lock file get created. We don't create lock files over non-tty connections, but we *do* create lock files in -direct mode. This leaves us capable of adding utmp/wtmp support for successful pap & chap logins (coming soon).
|
29692 |
21-Sep-1997 |
brian |
Sleep for a second before sending the first LCP config request. This stops us from squirting stuff down a line that still has ECHO turned on because the peer hasn't had a chance to start yet. Lead to the cause by: Greg Lehey <grog@lemis.com>
|
29668 |
21-Sep-1997 |
brian |
It turns out that the following: close(1); close(2); x = open(ctermid(NULL), O_RDWR|O_NONBLOCK); close(0) on a tty causes select() to return an exception for descriptor x ! This is the case in RELENG_2_2, but not in 2.2.2. I'm not sure why. Instead of doing the x=open() and close(0), we just do x=0 now. Problem pointed out by: Greg Lehey <grog@lemis.com> Tomi Vainio <tomppa@fidata.fi>
|
29660 |
21-Sep-1997 |
brian |
Typo police Submitted by: Mark Cammidge <mark@gmtunx.ee.uct.ac.za>
|
29659 |
21-Sep-1997 |
brian |
Add a pppctl(8) xref. Suggested by: joerg
|
29551 |
18-Sep-1997 |
brian |
Don't close(1) in direct mode and then proceed to isatty(1) ! Keep 0 open for this till the modem's been set up by either dup()ing 0 or by opening ctermid(NULL) (if isatty(0)).
Discussed problem with: Tomi Vainio <tomppa@fidata.fi> Made it finally dawn on me: Angelo Turetta <ATuretta@stylo.it>
|
29549 |
17-Sep-1997 |
brian |
Support CHAP using MD4 Suggested by: jordan
|
29521 |
16-Sep-1997 |
brian |
o Fix two unlikely descriptor leaks. o Output the correct device for "show modem" while in -direct mode. o Cosmetic: Moan a bit more when we can't open the [modem] device. o Call OpenModem() in a more "natural" way. o Add some LogDEBUG in OpenModem().
|
29296 |
10-Sep-1997 |
brian |
Get rid of missing-prototype-warning
|
29295 |
10-Sep-1997 |
brian |
PRED1 => TY_PRED1 (oops)
|
29294 |
10-Sep-1997 |
brian |
o Initialize the PRED1 input queue when we receive the ResetAck, NOT when we send the ResetReq (as per the rfc). o SILENTLY ignore CCPs that arrive *before* the network phase (as per the rfc). o Check that we've actually negotiated PRED1 before sending PRED1 output. This bug has been around for a *VERY* long time ! We shouldn't need to explicitly disable PRED1 now :-)
|
29265 |
10-Sep-1997 |
brian |
Cosmetic: Remove unused variables and build on OpenBSD.
|
29259 |
09-Sep-1997 |
brian |
Allow dial to work in non-interactive mode.
|
29257 |
09-Sep-1997 |
brian |
Print errors correctly (don't adjust argc/argv for commands).
|
29255 |
09-Sep-1997 |
brian |
Don't start an interactive shell from a telnet prompt.
|
29252 |
09-Sep-1997 |
brian |
Correct ppp authentication defaults in interactive mode. We don't want to be forced to type a password here :-( Pointed out by: mouth@ibm.net (John Kelly)
While I'm there, don't allow a "set server" in interactive mode.
|
29250 |
09-Sep-1997 |
brian |
Document the use of PAP/CHAP properly.
|
29170 |
07-Sep-1997 |
brian |
Disable LQR by default. It causes too many problems with too many ISPs to be a good default. LQR is still accepted by default.
|
29164 |
06-Sep-1997 |
brian |
Use __libalias_version to derive the name to pass to dlopen().
|
29083 |
04-Sep-1997 |
brian |
Install as group ``network'' Insist that uid == 0 for client ppp Disallow client sockets if no password is specified Don't exit on failure to open client socket for listening Allow specification of null local password Use reasonable size (smaller) ``vector''s in auth.c Fix "passwd ..." usage message Insist on "all" as arg to "quit" (if any) Drop client socket connection before Cleanup() when "quit all"
|
29048 |
03-Sep-1997 |
brian |
Bring CCP and IPCP layers down properly when LCP comes down. Give a count of bytes sent/received in IPCP log.
|
29043 |
03-Sep-1997 |
brian |
Allow the transition from an idle timeout value of zero (no timeout) while IPCP is up. Move some prototypes into .h files and re-order some includes.
|
28974 |
31-Aug-1997 |
brian |
Cosmetic: Make LogPrintf() calls consistent.
|
28966 |
31-Aug-1997 |
brian |
Make ppp owner root.ppp, mode 4550 Suggested by: guido Condoned by: eivind
|
28961 |
31-Aug-1997 |
brian |
Remove use of login_progok() Suggested by: guido
|
28842 |
27-Aug-1997 |
brian |
Use login_progok().
|
28815 |
26-Aug-1997 |
brian |
Check the "prog.deny" login.conf capability and refuse to run if "ppp" is in the list. Suggested by: "Daniel O'Callaghan" <danny@panda.hilink.com.au>
|
28684 |
25-Aug-1997 |
brian |
Lose a couple of extraneous backslashes.
|
28679 |
25-Aug-1997 |
brian |
Make the code format more in line with style(9). Update loadalias to use the new libalias api. Update to version 1.1.
|
28637 |
23-Aug-1997 |
brian |
Phone the number after the ``|'' whether the dial OR login script fails.
Catch a small typo in the man page.
|
28540 |
21-Aug-1997 |
brian |
Update version number to 1.02 so that I can tell what people are running
|
28539 |
21-Aug-1997 |
brian |
Update doc to use MYADDR in ppp.conf.
|
28537 |
21-Aug-1997 |
brian |
Allow the use of HISADDR & MYADDR in ppp.conf.
|
28536 |
21-Aug-1997 |
brian |
Add "set loopback on|off", defaulting to "on". This tells ppp to loopback packets addressed to the ppp interface IP coming *from* the tun device.
This means that you can ping the tun interface IP from inside :-)
|
28535 |
21-Aug-1997 |
brian |
Correct online usage message for "set ? stopped"
|
28461 |
20-Aug-1997 |
brian |
Expand the "set stopped" command so that it can idependently time out any of the FSMs.
Split LCP logging into LCP, IPCP and CCP logging, and make room in "struct fsm" for the log level that the state machine should use.
|
28411 |
19-Aug-1997 |
danny |
Spelling police.
|
28408 |
19-Aug-1997 |
danny |
Typo fixes.
|
28394 |
19-Aug-1997 |
brian |
Correct the forth arg to "set ifaddr". If specified, it gives the IP number that should be used for initial IPCP config requests, irrespective of MYADDR.
|
28381 |
18-Aug-1997 |
brian |
Introduce the "bg" command. It's pretty much the same as "shell", but it's in the background.
|
28334 |
17-Aug-1997 |
brian |
Fix possible buffer overrun while "expect"ing something that's "nearly" what it wants.
|
28333 |
17-Aug-1997 |
brian |
Typo police
|
28327 |
17-Aug-1997 |
brian |
Allow the use of a "stopped" timeout via the "set stopped" directive. If the timeout occurs it will cause a "Down" event, hanging up the line if it's still up. This *isn't* part of the FSM diagram, but I consider it ok as a "higher level implementation specific timeout" as specified in the rfc ;-}
Discussed briefly with: joerg
|
28326 |
17-Aug-1997 |
brian |
Allow specification of fallback phone numbers to be used only if the dial script fails. PR: 4262
|
28085 |
11-Aug-1997 |
brian |
Use libalias.so.2.3.
|
28046 |
10-Aug-1997 |
brian |
Correct default log file name. PR: 4065 Prompted by: Steve Price <sprice@hiwaay.net> Submitted by: sjr1@flash.net
|
27871 |
03-Aug-1997 |
brian |
Use libalias.so.2.2
|
27812 |
01-Aug-1997 |
brian |
Remove extraneous prototypes.
|
27763 |
29-Jul-1997 |
brian |
Set up the alias address before executing the contents of ppp.linkup.
|
27725 |
28-Jul-1997 |
brian |
Fix file descriptor leaks.
|
27723 |
27-Jul-1997 |
brian |
Count the "proto" arg after a single address, Check correctly for "deny" packets. Submitted by: Dave Bodenstab <imdave@mcs.net>
|
27637 |
24-Jul-1997 |
brian |
Don't try to ioctl(,TIOCOUTQ,) on a closed descriptor. Reported by: Stephane Raimbault <stephane@cybersurf.net>
|
27384 |
14-Jul-1997 |
brian |
Allow a "hangup" capability. You can now "ATZ" your modem when it's closed.
Submitted by: peter@citylink.dinoex.sub.org (Peter Much)
|
27346 |
12-Jul-1997 |
brian |
Allow service names in "set server"
|
27178 |
02-Jul-1997 |
phk |
Reset all LQR variables when we start over.
|
27157 |
01-Jul-1997 |
brian |
Make HUP cause an exit (as it used to), and make INT cause a hangup - not exiting for -ddial & -auto.
HUP must exit because init sends this at system shutdown time (why, I don't know), and we don't want to end up redialing after the HUP (due to another dfilter packet).
Pointed out by and discussed with: ache
|
27089 |
30-Jun-1997 |
brian |
Allow specification of a umask for local socket creation in "set server" command.
|
27061 |
29-Jun-1997 |
brian |
Fix HUP handling while dialing.
Pointed out by: ache
|
27011 |
28-Jun-1997 |
brian |
Deal with HISADDR/MYADDR in filter rules. Mostly submitted by: kfurge@worldnet.att.net
Allow MYADDR in add/delete commands to facilitate dynamic additions of a loopback route to MYADDR.
|
26940 |
25-Jun-1997 |
brian |
Add "set server" to control the server socket. Catch SIGUSR1 to re-init listening socket. Document signal behaviour.
Add missing '\n's to LogPrintf(LogWARN,...) Main() returns int not void.
AF_LOCAL ideal suggested a long time ago by: joerg
|
26911 |
25-Jun-1997 |
brian |
Allow shell commands (still run as original user) unless defined out - including while a telnet session with a -auto ppp is in effect. If you don't create ppp.secrets, you deserve what you get.
telnet connection capabilities will be configurable per system soon.
Suggested by: Terry Dwyer <tdwyer@omen.net.au>
|
26901 |
24-Jun-1997 |
brian |
Fix ~? output in "term" mode.
Spotted by: Harry Starr <starr@gccs.com.au>
|
26858 |
23-Jun-1997 |
brian |
o Fix uptime for direct connections. o Style police o Make hangup abort the current connection, not necessarily exiting (-auto/-ddial). o Trap HUP and INT during DoChat and abort the connection attempt. This means you can now type "dial" and change your mind with ^C, or HUP the process to stop it dialing.
Slapped into doing it by: Chuck Robey <chuckr@glue.umd.edu>
|
26857 |
23-Jun-1997 |
brian |
Typo police.
Submitted by: Chuck Robey <chuckr@glue.umd.edu>
|
26845 |
23-Jun-1997 |
brian |
Fix "set parity"
PR: 3881 Actual problem found by: shocking@mailbox.uq.edu.au
|
26754 |
20-Jun-1997 |
brian |
Fix "delete all".
PR: 3913
|
26698 |
17-Jun-1997 |
brian |
Cosmetic: Fix help syntax.
|
26696 |
17-Jun-1997 |
brian |
Handle redial tries correctly under -ddial
|
26692 |
16-Jun-1997 |
brian |
Put TCP/IP logs back on one line.
|
26690 |
16-Jun-1997 |
brian |
Set netfd to STDOUT_FILENO rather than STDIN_FILENO.
|
26688 |
16-Jun-1997 |
brian |
Correct filter docs.
PR: 3464 Submitted by: Stephen J. Roznowski <sjr1@flash.net>
|
26686 |
16-Jun-1997 |
brian |
Remove call to daemon(). Just call setsid() and close any relevent descriptors (0,2,[1]). We've already fork()d. PR: 3874
|
26626 |
14-Jun-1997 |
ache |
Remove srandomdev fallback code
|
26591 |
13-Jun-1997 |
brian |
Fix "delete ...", it now only insists on one arg too.
Discovered by: Rikk Salamat <rikks@web-impact.com>
|
26589 |
13-Jun-1997 |
brian |
Add ppp.linkdown file to compliment ppp.linkup.
Submitted by: Forgotten Passed on by: Terry Dwyer 61 8 9491 5161 <tdwyer@io.telstra.com.au>
Also remove extraneous setuid(0) - it's only undone by the subsequent call to SelectSystem().
|
26587 |
13-Jun-1997 |
brian |
Fix "show ?" alignment.
PR: 3830 Submitted by: Josh Gilliam <josh@quick.net>
|
26585 |
13-Jun-1997 |
brian |
Document ppp over tcp (how to tunnel)
|
26551 |
11-Jun-1997 |
brian |
Sort out ppp over tcp: o Allow "set var" with no args to blank var (don't req ""). o Zero VarTerm ASAP if not in interactive mode. o Never print anything to stdout in -direct mode. o Count redial when failing to open modem. o Increase device size to 40 characters (for host:port). o Remove missed "if (fd == 0) fd = 1;". o Don't give up on incoming non-terminal connections.
|
26530 |
09-Jun-1997 |
brian |
Make the man page a little more detailed. Update the version number to 1.00. Increase the predictor-1 buffer by 2 bytes.
|
26516 |
09-Jun-1997 |
brian |
Overhaul ppp: o Use syslog o Remove references to stdout/stderr (incl perror()) o Introduce VarTerm - the interactive terminal or zero o Allow "set timeout" to affect current session o Change "set debug" to "set log" o Allow "set log [+|-]flag" o Make MSEXT and PASSWDAUTH stuff the default o Move all #ifdef DEBUG stuff into the code - this shouldn't be too much overhead. It's now controlled with "set log +debug" o Add "set log command, debug, tun, warn, error, alert" o Remove cdefs.h, and assume an ansi compiler. o Improve all diagnostic output o Don't trap SIGSEGV o SIGHUP now terminates again (log files are controlled by syslog) o Call CloseModem() when changing devices o Fix parsing of third arg of "delete"
I think this fixes the "magic is same" problems that some people have been experiencing. The man page is being rewritten. It'll follow soon.
|
26400 |
03-Jun-1997 |
brian |
Remove mis-leading version info.
|
26353 |
02-Jun-1997 |
brian |
Back out last change (which in fact breaks rfc1661) and modify the behaviour so that a timer is started and the restart counter is zeroed (as per the State Machine Diagram).
Pointed-out-by: joerg
|
26343 |
01-Jun-1997 |
brian |
Go directly to ST_STOPPED when a TerminateReq is received and after the TerminateAck is sent (as per rfc1661) rather than to ST_STOPPING. Going to ST_STOPPING will leave us in a state where we're waiting for the other side to do something - not a good idea, especially as the client side sends a TerminateReq then exits on idle timeout.
|
26341 |
01-Jun-1997 |
brian |
Reduce MAX_M[RT]U back to 2048. Even on a null-modem ppp link, we gain nothing with a larger mtu.
Suggested by: joerg
Fix pred1 buffer size (must be == MAX_MTU)
|
26328 |
01-Jun-1997 |
brian |
Remove initial startup printf's in -direct mode. Make "same magic" error send a NAK (as per rfc).
|
26326 |
01-Jun-1997 |
brian |
Implement "set mtu" command to allow the client to reduce the interface mtu. Allow max mru spec of 16k. Add "show m[rt]u" ability.
|
26321 |
31-May-1997 |
brian |
Remove "set mtu ..." ability. Currently, this is an "alias" for "set mru ...", but there's no such thing as setting your mtu in the ppp protocol (rfc1661).
|
26256 |
29-May-1997 |
brian |
Correct the return of DialModem()
Suggested by: kfurge <kfurge@worldnet.att.net>
|
26142 |
26-May-1997 |
brian |
De-couple ppp from libalias. If libalias isn't there, the alias commands simply won't work. Only root may specify the location of the alias lib (otherwise, it's hard-coded).
Make logprintf silently fail if LogOpen hasn't been called.
Suggested by: eivind
|
26136 |
25-May-1997 |
brian |
Include <alias.h>, not "alias.h"
|
26098 |
24-May-1997 |
brian |
Fix the reconnect option, and add an explanation to vars.h
|
26034 |
23-May-1997 |
brian |
Finish updating for the latest alias code.
Submitted by: Charles Mott <cmott@srv.net>
|
26032 |
23-May-1997 |
brian |
Add SO_REUSEADDR socket opt in case the last telnet connection is in a time_wait.
Submitted by: Brian Campbell <brianc@pobox.com>
|
26031 |
23-May-1997 |
brian |
Use the latest alias engine - now in libalias.
Submitted by: Charles Mott <cmott@srv.net>
|
25910 |
19-May-1997 |
brian |
Output exit status description of child in background mode.
|
25908 |
19-May-1997 |
brian |
Mega update to sort out bad implementations of reconnect & -background.
o Fix reconnect anomolies. o Make reconnect apply to failed LQR hangups (& mention in man page). o Make reconnect effective in -background mode. o Listen on socket in -background mode. o Try all phone numbers in -background mode. o Insist on system arg in -background mode. o Make a control-connection close command exit in -background mode. o Output status message to stdout on exit of parent in -background mode. o Don't notify parent of success too soon. o Describe termination EX_* code. o Miscelaneous diagnostic corrections. o Remove redundant connect_time from modem.c. o Don't repeatedly DownConnection().
|
25872 |
17-May-1997 |
brian |
Make openmode active by default (for both client/server).
Requested by: The masses.
|
25801 |
14-May-1997 |
brian |
Build pid_filename without a double slash. Make ``Dial attempt'' diagnostics consistent.
Reset lostCarrier when it has reached max. Suggested by: Kevin Street <street@iName.com>
|
25800 |
14-May-1997 |
brian |
Don't attempt to ioctl(modem...) when modem is closed. Just DownConnection().
|
25771 |
13-May-1997 |
brian |
Correct the files section for tunX.pid and ttyXX.if
|
25742 |
12-May-1997 |
brian |
Correct sample file name.
|
25707 |
11-May-1997 |
brian |
Create ttyXX.if and tunX.pid irrespective of whether we're -dedicated.
Required by: David Nugent <davidn@labs.usn.blaze.net.au>
|
25695 |
11-May-1997 |
ache |
Cosmetique
|
25694 |
11-May-1997 |
ache |
Print out reject masks on "show lcp"
|
25691 |
11-May-1997 |
ache |
Use random() for GenerateMagic()
|
25690 |
10-May-1997 |
ache |
Cosmetique fixes: shorten help message to fit the screen return to prompt from "show ipcp"
|
25661 |
10-May-1997 |
brian |
Refuse to negotiate HISADDR of 0.0.0.0 (NAK it)
Submitted by: NAKAMURA Motonori <motonori@econ.kyoto-u.ac.jp>
|
25634 |
10-May-1997 |
brian |
Add a ttyXX.if file in /var/run that points to the tunX.pid file. Change the ppp.tunX.pid name to tunX.pid
Requested by: Daniel O Callaghan <danny@panda.hilink.com.au>
|
25630 |
10-May-1997 |
brian |
Tidy up the code - bounds checking, return value checking etc.
Submitted by: eivind
|
25628 |
09-May-1997 |
brian |
Don't reconnect (due to reconnect setting) after close command.
|
25616 |
09-May-1997 |
brian |
Set setitimer() arg correctly.
|
25614 |
09-May-1997 |
jdp |
Null commit to force version bump.
|
25566 |
08-May-1997 |
brian |
Allow mixed case commands. Allow HISADDR, MYADDR, INTERFACE and ALL in mixed case.
|
25562 |
07-May-1997 |
brian |
Reset lqrsendcnt.
PR: 2449 Submitted by: mark thompson <thompson@tgsoft.com>
|
25561 |
07-May-1997 |
brian |
Only compress tcp packets. Calculate size of logbuff rather than guessing at 2000.
PR: 2046 Submitted by: torii@tcd.hitachi.co.jp
|
25560 |
07-May-1997 |
brian |
Allow up to 40 args in the chat script (was 20). Ignore subsequent args rather than scribbling.
PR: 1952 Submitted by: Mikael Hybsch <micke@free.dynas.se>
|
25500 |
05-May-1997 |
brian |
Make ppp exit on loss of carrier in -background mode.
Submitted by: Jim Carroll <jim@carroll.com>
|
25445 |
04-May-1997 |
ache |
Log each ppp line to separate /var/log/ppp.tunX.log instead mixing of all lines into single /var/log/ppp.log
|
25067 |
21-Apr-1997 |
brian |
Add a reconnect capability directing ppp to re-establish the connection after an unexpected loss of carrier:
set reconnect timer ntries
The man page warns against using this command when your timeout value is slightly more than the other sides :{}
Suggested by: burton@bsampley.vip.best.com (Burton Sampley)
|
25021 |
19-Apr-1997 |
ache |
Fix typo in previous commit
|
25019 |
19-Apr-1997 |
phk |
Unceremoneously discard HDLC frames with less than two bytes in them. XXX: real fix: this could should check the number of bytes in the packet before accessing them.
Found by: phkmalloc
|
24940 |
15-Apr-1997 |
brian |
Remove osreldate. I got the number wrong anyway :(
|
24939 |
14-Apr-1997 |
brian |
Make the next number redial ability configurable. The "set redial pause [times]" command becomes "set redial end-pause[.next-pause] [times]" and next-pause defaults to 3 seconds. This keeps things backwards compatable.
Suggested by: ache
|
24844 |
13-Apr-1997 |
brian |
Make -background option attempt each phone number at most once. Make -background ignore redial. Output exit value to syslog with "PPP Terminated" message.
|
24843 |
12-Apr-1997 |
brian |
Only wait for the redial timeout when the last phone number in the list has been dialed. Alternate number dialing has no "pause".
Suggested by: joerg
Document this behaviour. Document that the number of dial attempts applies to the number of phone calls rather than the number of times each number is dialed. Add a missing .El. Give a decent description of how to connect to an ISP.
|
24753 |
09-Apr-1997 |
ache |
Ignore SIGPIPE or any user can quit ppp just telnetting to it and quitting telnet immediately (while phone number dialed) Log client connection/disconnection with PHASE_BIT now. Add more error recovery on client disconnection
|
24461 |
31-Mar-1997 |
brian |
Remove the syslog stuff, and allow various return values in uu_lock(). Add uu_lockerr() for turning the results of uu_lock into something printable. Remove bogus section in man page about race conditions allowing both processes to get the lock. Include libutil.h and use uu_lock() correctly where it should.
Suggested by: ache@freebsd.org
|
24417 |
30-Mar-1997 |
brian |
Move uucplock into libutil and create a manual page.
|
24217 |
24-Mar-1997 |
ache |
Use srandomdev() to initialize RNG
|
23968 |
17-Mar-1997 |
ache |
Convert srandom() arg cast to Lite2 style
|
23865 |
13-Mar-1997 |
brian |
Oops - forgot to document the new -HUP action. This should make 2.2 if the HUP stuff (earlier today) does.
|
23863 |
13-Mar-1997 |
brian |
Closes pr 2711 Fix -background option. Parent returns after the line is established (or not established). Definitely a candidate for 2.2
|
23842 |
13-Mar-1997 |
brian |
Requested by: Harlan Stenn <Harlan.Stenn@pfcs.com>
Accept SIGHUP as a "re-open logfile" signal. As ppp doesn't set it's serial line to it's controlling terminal, we can use HUP :)
This is a candidate for 2.2. The log.[ch] changes won't conflict, but the main.c changes will. We just want to change the kill(...,SIGHUP) to a SIGTERM and change the signal(SIGHUP,Hangup) to a pending_signal(SIGHUP,LogReOpen).
|
23840 |
13-Mar-1997 |
brian |
Reviewed by: ache@freebsd.org These changes should fix the signal "problems" in ppp. The signal changes should really be put into 2.2 too ! The following patches should do it. There were some other changes made by Andrey recently that havn't been brought into 2.2, it may be worth doing them now.
|
23603 |
10-Mar-1997 |
ache |
Do not re-initialize random numbers generator several times. Use ^ getpid() to produce better initial state.
|
23600 |
10-Mar-1997 |
ache |
Detect failure open condition for direct mode now Don't assume that modem descriptor must be >=3 in CloseModem, just assume it is any valid descriptor >=0
|
23598 |
10-Mar-1997 |
ache |
Don't waste time scanning tun_in+10 descriptors, scan exactly what we need now. Don't assume that file descriptor can't be 0 (many places) Protect FD_* macros from being used with negative descriptors Shorten MS EXT show help to fit 80 cols
|
23585 |
09-Mar-1997 |
ache |
cdefs cleanup
|
23584 |
09-Mar-1997 |
ache |
I remove pending signals completely, they are not useless, they are dangerous! Signal handlers themself must be fixed to not call malloc, but no pended handlers, it will be correct fix. In finite case each signal handler can set some variable which will be analized later, but calling handler functions manually is too dangerous (f.e. signals not blocked while the handler or handlers switch executed in this case). Of course this code can be fixed instead of removing, but it not worth fixing in any case.
Should go into 2.2
In addition sig.c code shows following dangerous fragments (there can be more, but I stop after two):
This fragment
if (fn == SIG_DFL || fn == SIG_IGN) { handler[sig-1] = (sig_type)0; <------------- here signal(sig,fn); } else {
cause NULL pointer reference when signal comes "here", but more worse fragment is below:
void handle_signals() { int sig;
if (caused) for (sig=0; sig<__MAXSIG; sig++, caused>>=1) if (caused&1) (*handler[sig])(sig+1); }
caused is bitmask which set corresponding bit on each signal coming. And now imagine, what happens when some signal comes (bit sets) while loop is executed (see caused>>=1 !!!)
In this light carrier drop situation was (as gdb shows) 1. SIGSEGV in handle_signals because some junk called as *handler reference. 2. Since SIGSEGV was pended too (== never happens), it can cause various range of disasters.
|
23514 |
08-Mar-1997 |
ache |
Unpend all signals before execv, it not makes any sense to pend them here
Should go into 2.2
|
23513 |
08-Mar-1997 |
ache |
Unpend fault signals like SIGSEGV, etc It is too dangerous to continue with them in any case
Should go into 2.2
|
23505 |
08-Mar-1997 |
ache |
Unpend all killing signals to shut down this thing immediately, or it is impossible to kill it in some situations. Unpend yet one SIGARLM (see timer.c commit)
Should go into 2.2
|
23504 |
08-Mar-1997 |
ache |
Don't pend SIGALRM (Timer Service) due to 1) When carrier dropped, old variant often forget to detect it cause unkillable loop forever (because SIGTERM pended too, but it will be separate commit) 2) Time intervals accuracy reasons
Should go into 2.2
|
23114 |
25-Feb-1997 |
brian |
osreldate.h stuff suggested by: Eivind Eklund
Remove #include's from sig.h and get dependant modules to include them themselves. Make inclusion of if_var.h depend on __FreeBSD_version so that the -current version of ppp can be used with 2.1.*
2.2 Candidate ?
|
23064 |
23-Feb-1997 |
brian |
Requested by: Elvind Eklund Remove usage of __sighandler_t as it's not available in 2.1*
|
23062 |
23-Feb-1997 |
brian |
Pointed out by: Joerg Fix broken signal.h include
|
22997 |
22-Feb-1997 |
peter |
Revert $FreeBSD$ to $Id$
|
22973 |
22-Feb-1997 |
phk |
Make it possible to substitute INTERFACE when executing commands.
|
22911 |
19-Feb-1997 |
brian |
Tidy up signal handling. All signal() calls have been changed to pending_signal() calls. pending_signal() is defined in the new sig.c file. It remembers the handler and traps the signal with a function that will remember the signal.
main.c now calls handle_signals() to actually call the required handlers (if the above handler was called).
If this doesn't close PR2662 (was PR2347), I'll cry.
Joerg, I think this should go into 2.2, but I havn't done anything about it because I'm bound to botch it with the new sig.[ch] files.
I've just "cvs add"'d sig.[ch] so far.... can you update to 2.2 and tell me what you did ? Thanks.
|
22225 |
02-Feb-1997 |
joerg |
Fix a benign typo (benign by now, since sizeof(VarLoginScript) == sizeof(VarDialScript)).
Submitted by: Arjan.deVet@adv.IAEhv.nl (Arjan de Vet) -- or actually by imp?
|
22107 |
30-Jan-1997 |
brian |
Check the timer request flag irrespective of wheter select() came back with EINTR - it's possible that it happened at some other point in the loop.
|
22074 |
29-Jan-1997 |
brian |
Move the call to TimerService() into main.c - just after the select() call. The SIGALRM just sets a flag now, preventing the possibility of any nasty recursivness in the handler itself.
|
21673 |
14-Jan-1997 |
jkh |
Make the long-awaited change from $Id$ to $FreeBSD$
This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long.
Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
|
21489 |
10-Jan-1997 |
nate |
The 2.2-Beta version doesn't have the brackets after the if statement. This has the effect of making every link a "passthrough" which means the TCP or UDP port won't be freed after link deletion -- so there could be eventual port exhaustion if the program were allowed to operate long enough.
Submitted by: Charles Mott <cmott@srv.net>
|
21488 |
10-Jan-1997 |
imp |
Fix many buffer overruns in the code. Specifically, disallow ExpandString to be used to expand things beyond the size of the buffer passed in. Also do a general cleanup of sprintf -> snprintf as well as strcpy and strncat safety. Also expand some buffers to allow for the largest possible data that might be used.
This is a 2.2 candidate. However, it needs to be vetted on -current since little testing has been done on this due to my lack of PPP on this machine.
Reviewed by: Jordan Hubbard, Peter Wemm, Guido van Rooij
|
21367 |
06-Jan-1997 |
bde |
Updated DPADD to match LDADD.
|
21264 |
03-Jan-1997 |
wollman |
Update to match changes in <net/if.h>.
|
20813 |
22-Dec-1996 |
jkh |
For /usr/sbin/ppp, you must choose between running ppp in the background or connecting to a host immediately in the foreground.
I would like to be able to run ppp from a script so that my script can be sure that it is connected to the 'net before it continues running:
# Dial up the internet. ppp -background myprovider || exit 1
do-some-net-command
# Hang up the modem. kill -HUP `cat /var/run/ppp.tun0.pid`
Another problem is that the current ppp calls its process id file `/var/run/PPP.server', which may conflict if you have more than one IP tunnel interface available.
Closes PR#1469 Submitted by: Gord Matzigkeit <gord@enci.ucalgary.ca>
|
20812 |
22-Dec-1996 |
jkh |
Make CRTSTS selection a runtime option. Closes PR#1392 Submitted by: Mike McGaughey <mmcg@heraclitus.cs.monash.edu.au>
|
20755 |
21-Dec-1996 |
nate |
Compute IP checksums in addition to TCP checksums when necessary in the new 'aliased' packets. Note, if the original packet has a bogus cksum, we will *NOT* re-compute the cksum, therefore the new packet will also be wrong (but passed on).
Found by: MartinRenters@awfulhak.demon.co.uk Reviewed by: Brian Somers <brian@awfulhak.demon.co.uk> Submitted by: Charles Mott <cmott@srv.net>
|
20666 |
19-Dec-1996 |
nate |
Fixed prototypes of PacketAliasIn/Out. (cosmetic)
Submitted by: Brian Somers <brian@awfulhak.demon.co.uk>
|
20526 |
15-Dec-1996 |
pst |
Avoid some buffer overrun problems.
|
20365 |
12-Dec-1996 |
jkh |
The infamous IP aliasing code for ppp, modified to work as a runtime option (otherwise ppp's behavior remains unchanged) and documented by myself, Steve Sims, Nate Williams, Martin Renters and god-only-knows who else. :-) Submitted by: nate Obtained from: Charles Mott <cmott@srv.net>
|
20287 |
10-Dec-1996 |
wollman |
Fix up programs which expect <net/if.h> to include <sys/time.h> to instead do it themselves. (Some of these programs actually depended on this beyond compiling the definition of struct ifinfo!) Also fix up some other #include messes while we're at it.
|
20120 |
03-Dec-1996 |
nate |
Added my 'ddial' patches to user-PPP. The new mode tries it's darndest to keep the link up, so it re-dials whenever it detects the link go down. This is useful for 'dedicated' links who use PPP.
It's been used for over a year w/out problems at different sites.
|
19866 |
19-Nov-1996 |
phk |
typo
|
19295 |
31-Oct-1996 |
joerg |
Improve the sample login script now that our sh(1) understands -p.
Closes PR # docs/1383: ppp(8) man page suggests using shell script...
|
19008 |
18-Oct-1996 |
jkh |
Make changes suggested in PR#1825, closing it. Removes default local hack behavior better than previous commit. Submitted-By: Peter Childs <pjchilds@imforei.apana.org.au>
|
19006 |
18-Oct-1996 |
jkh |
Turn LOCALHACK off by default (whoops!) Noticed-By: Atsushi Murai <amurai@spec.co.jp>
|
18911 |
13-Oct-1996 |
sos |
Fixed the security leek I introduced the other day, now shell command is only executabel from command files, not from the commandline.
|
18885 |
12-Oct-1996 |
jkh |
1. Room to calculate MD5 for CHAP negotiation is shorter than required. a core is not dumped at first connecting time and dumped at second or third time. (patch I) 2. A routine for "show route" refers out of allocated space. Values pointed by "lp" should be read as CHAR, I think. there is also no free() for disallocation. (patch II)
Here is also a patch for an improvement: In current imprementation, even if PPP connection is disconnected by time out, prompt of interactive mode does not change from "PPP>" to "ppp>" to indicate the disconnection on a terminal. So I modified the code to do that. (patch III)
Submitted-By: NAKAMURA Motonori <motonori@econ.kyoto-u.ac.jp>
|
18856 |
10-Oct-1996 |
sos |
Allow shell commands in all modes. Old behavior can be had with define SHELL_ONLY_INTERACTIVELY
|
18790 |
07-Oct-1996 |
sos |
Add the feature to use MYADDR & HISADDR macroes as arguments to a shell escape.
|
18786 |
07-Oct-1996 |
jkh |
Properly include prototypes. Submitted-by: "Daniel O'Callaghan" <danny@panda.hilink.com.au>
|
18771 |
06-Oct-1996 |
jkh |
Add passwdauth to list of vars. Submitted-by: Peter Childs <pjchilds@imforei.apana.org.au>
|
18752 |
06-Oct-1996 |
jkh |
Add support for the Evil Microsoft ppp extentions. Yes, they did it on their own without even attempting to get concensus in the IETF, but there are also lots of Win95/NT boxes out there.
CLoses PR#1494 Submitted-By: Peter Childs <pjchilds@imforei.apana.org.au>
|
18531 |
28-Sep-1996 |
bde |
Moved getdtablesize() out of a loop.
|
17571 |
13-Aug-1996 |
peter |
Add RTF_STATIC to default route's flags in the hope that routed will no longer remove it while it is running.
|
17240 |
21-Jul-1996 |
phk |
Reset Pred1 protocol on FCS errors.
|
17044 |
09-Jul-1996 |
ache |
Dump core on SIGSEGV instead of silent exiting. I saw SIGSEGV few times, but they are VERY rare to tracking down this bug. I hope core helps to track it down.
|
16263 |
09-Jun-1996 |
ache |
Prepare for exec properly and check return values Submitted by: Arjan de Vet <devet@IAEhv.nl>
|
16101 |
03-Jun-1996 |
gpalmer |
Close a file descriptor leak. Possibly closes PR #1212
|
15762 |
13-May-1996 |
phk |
PR: bin/1194: PPP server port not initialized Latest round of changes omitted initialization of tunnel device unit variable.
Submitted by: John Capo <jc@irbs.com>
|
15738 |
11-May-1996 |
phk |
Here is a diff of /usr/src/usr.sbin/ppp against current. The diffs add some logging functionality which I find very useful. 'set debug link' will record just link up/down and address assignments. 'set debug connect' will record the entire chat dialog 'set debug carrier' will record just chat lines including 'CARRIER' (so that I can be sure I'm getting a 28.8 line).
There was a global change required to permit LogPrintf to take a bit mask instead of a bit position value (to permit logging some events on either of two flags, so that no change in 'set debug lcp' would result from the code supporting 'link'. Thus the diffs are rather long for such a small change. The man page is also touched.
Oh, and there was a slight syntax problem in route.c
Reviewed by: phk Submitted by: Tony Kimball <alk@Think.COM>
|
15556 |
02-May-1996 |
mpp |
Xref chat(8) and pppd(8). Also change .It references to .Pa for file name references in the file section.
|
15252 |
13-Apr-1996 |
bde |
Fixed a couple of format strings to match the change of pid_t from long to int32_t. I only fixed the ones that I noticed the warnings for. Perhaps most of the format strings are correct now because they were wrong before. Except of course if int32_t isn't compatible with `int'.
|
15193 |
11-Apr-1996 |
dg |
Fix editing mistake in last commit...sorry.
|
15190 |
11-Apr-1996 |
dg |
Bugfix based on a kernel fix:
When PPP gets an uncompressed packet, it attempts to save off the TCP/IP header for use in decompressing subsequant packets. If PPP gets garbage (such as what happens when there is a port speed mismatch or modem line noise), it will occasionally mistake the packet as a valid uncompressed packet. When it tries to save off the header, it doesn't bother to check for the validity of the header length and will happily clobber not only the PPP VJC data structure, but parts of other process memory that happens to follow it...causing, ahem, undesired behavior.
|
15070 |
06-Apr-1996 |
ache |
Here is a patch for a little bug in the WaitForString routine. The problem is when the matched string spans the end of the inbuff. This fix allocates twice the IBSIZE so that it can keep the last and the current text to search in the inbuff so that the match won't fail if it gets truncated by the read.
It also warns if the search string is to long and truncates it.
Submitted by: Dough Ambrisco <ambrisco@ambrisco.roble.com>
|
14930 |
30-Mar-1996 |
ache |
Put signal number into logfile
|
14921 |
29-Mar-1996 |
ache |
Fix UnrawModem: restore initial (not second level) state not call it for DEV_SYNC issue input flush after restoring
|
14871 |
28-Mar-1996 |
ache |
Directly clear parity area because cfmakeraw not do it
|
14863 |
27-Mar-1996 |
ache |
After real problem is found (flush never occurse), re-enable software flow control, but re-enable it properly, idea taken from taylor 'cu'
|
14861 |
27-Mar-1996 |
ache |
Fix typing bug cause flushing never occurse: TIOCFLUSH -> TCIOFLUSH
|
14859 |
27-Mar-1996 |
ache |
Use cfmakeraw() instead of all those termios settings
|
14857 |
27-Mar-1996 |
ache |
Cleanup both raw & termianl modes termios flags settings
|
14856 |
27-Mar-1996 |
ache |
Disable ^S/^Q flow control!!!
|
14614 |
13-Mar-1996 |
ache |
Better fix for terminal mode
|
14436 |
09-Mar-1996 |
ache |
1) Open /dev/null for std* after setsid() to be shure that modem is *not* our controlling terminal (SIGHUP can coming in other case)
2) Add HUPCL for non-dedicated lines to be shure that modem properly resetted.
3) Correct usage string.
|
14423 |
08-Mar-1996 |
ache |
Prevent dial cycling on the last phone from the list, make phone list copy
|
14422 |
08-Mar-1996 |
ache |
Log phone as LOG_PHASE, it is valuable enough for multi-phone environment. Add missing return when terminal mode can't be re-established due to modem not opened.
|
14418 |
08-Mar-1996 |
ache |
1) Add multi-phone dialing/redialing, several phones separated by ':' 2) Improve on-line help subsystem 3) Make 'term' mode works even carrier dropped (old code close line forever here) 4) Make 'term' mode 8bit clean. 5) Improve manual page 6) #ifdef DEBUG diagnostic about missing optional files. 7) Don't put interactive dialing info to logfile
|
14369 |
04-Mar-1996 |
ache |
Eliminate multiply uucplock.c
|
13760 |
30-Jan-1996 |
phk |
Use libmd's MD5. inline hdlc checksum calculation. make big tables const.
|
13744 |
30-Jan-1996 |
mpp |
Fix a bunch of spelling errors in a bunch of man pages.
|
13733 |
30-Jan-1996 |
dfr |
Some patches to ppp which improve stability. I have been running a ppp based on these patches for about 3 weeks with no downtime.
The original submitters comments:
Two features iijppp has over kernel ppp that I like are predictor1 compression and demand dialing. Here are a few bug fixes.
I expanded the priority queueing scheme and discovered it was broken due to the assignment at ip.c line 300. All packets were being queued at the same priority.
Fixing priority queueing broke predictor1 compression. Packets were compressed before being queued and predictor1 worked as long as the packets were popped off the queue in the same order they were pushed onto the queue.
There were a few byte order problems in IP header tests also.
There is a recursion problem in SendLqrReport(). LcpClose() is called when "Too many echo packets are lost" which winds up in SendLqrReport() again. I believe the original intention was to just stop the LQR timer with the call to StopLqr() but the side effects hurt.
Submitted by: John Capo <jc@irbs.com>
|
13389 |
11-Jan-1996 |
phk |
Final cleanup for now. -Wall is now silent. A couple of bogons found.
|
13385 |
11-Jan-1996 |
peter |
My freshly aborted 'make world' has pointed out that the wait.h include file is <sys/wait.h>, not <wait.h> as was recently committed.
|
13379 |
10-Jan-1996 |
phk |
A random bunch of cleanup changes.
|
11336 |
08-Oct-1995 |
amurai |
1. Add a settable redial timer and logging of the process id in a file. A settable redial timer helps to avoid the problem where both ends of a link want to dial at the same time and the line winds up busy for both ends. The process id is logged in /var/run/PPP.system where system is the name of the called system. When both ends of a link are running in demand dial mode, you need an easy way to get the pid of the ppp on the called end so it can be killed and re-started with -direct or pppd started to handle the incoming ppp session.
2. Add secret description for "set timeout" to man.
Reviewed by: Atsushi Murai <amurai@spec.co.jp> Submitted by: John Capo <jc@irbs.com>
|
10987 |
24-Sep-1995 |
nate |
Completely re-wrote the man-page using -mandoc macros. More cleanups in sentence structure to include more articles, plus fix some mis-spellings and typos.
Reviewed by: gpalmer (Gary Paler)
|
10877 |
18-Sep-1995 |
bde |
Fix a comment that became wrong when it was moved in rev. 1.7. Fix nearby indentation. Cosmetic.
|
10858 |
17-Sep-1995 |
amurai |
1. All fragments (except the first one) of a fragmented packet were dropped - devet@adv.IAEhv.nl (Arjan de Vet) 2. Will not read data from telnet connection - John Capo <jc@irbs.com> 3. Using LQM option could be drop the link due to LcpLayerDown() doesn't stop LQR timer. - Brian <brian@awfulhak.demon.co.uk> 4. Allow to describe a syntax of filters that is not only port number but also by name in /etc/service. - Rich Murphey <rich@lamprey.utmb.edu>
Reviewed by: Atsushi Murai <amurai@spec.co.jp> Submitted by: devet@adv.IAEhv.nl, jc@irbs.com, brian@awfulhak.demon.co.uk, rich@lamprey.utmb.edu
|
10650 |
09-Sep-1995 |
joerg |
Be gentle and allow both magic's (the own one and the other side's one) as a valid answer to an echo request. This makes the log less noisy when connecting to Trumpet Winsock or FreeBSD 2.0.5's pppd. :)
Submitted by: melvin@zytek.com (Stephen Melvin)
|
10528 |
02-Sep-1995 |
amurai |
1. Do not log the password itself to ppp.log ( Mr. Rich Murphey ) 2. Add ability to execute shell commands and suspend back into invoking shell (Mr. J Wunsch)
Reviewed by: amurai@spec.co.jp Submitted by: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) Rich Murphey <rich@lamprey.utmb.edu>
|
9797 |
30-Jul-1995 |
gpalmer |
Typo in log message : errros -> errors
|
9448 |
08-Jul-1995 |
amurai |
1. Clean up log message. 2. Optimize ModemQlen. 3. Sending ProtoReject for Unknow protocol (i.e. IPX) 4. Avoid select looping by reading tun under the high system load. 5. Adding Local version String for maintenance. 6. Just more speak rather silent ignore if you type invalid key words.
|
9440 |
08-Jul-1995 |
amurai |
Some implementation of PPP are required that starting a negotiaion by sending *special* value as my address, even though the standard of PPP is defined full negotiation based. (e.g. "0.0.0.0" or Not "0.0.0.0")
|
9439 |
08-Jul-1995 |
amurai |
Clean up mesage log facility stuff accordng to Joradn's question. Reviewed by: amurai@spec.co.jp
|
9438 |
08-Jul-1995 |
amurai |
>Number: 591 >Category: bin >Synopsis: SPAP request REJexted in stead of NAKed >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs (FreeBSD bugs mailing list) >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Jul 5 01:40:01 1995 >Originator: Dick van den Burg >Organization: >Release: FreeBSD 2.0.5-RELEASE i386 >Environment: >Description:
When trying to connect with ppp to a Shiva Lanrover (version 3.2) the authentication fails because the SPAP (Shiva Secure PAP) configuration request the is sent by Shive is REJected by ppp in stead of NAKed.
Reviewed by: amurai@spec.c.jp and friends Submitted by: burg@is.ge.com
|
9410 |
06-Jul-1995 |
asami |
"anyone in a world" -> "anyone in the world".
(Yes, I'm just testing my ppp connection :)
|
9388 |
04-Jul-1995 |
dg |
Don't convert 0.0.0.0 into 192.0.0.1. I can find no sane reason to do this.
|
9382 |
30-Jun-1995 |
dfr |
Hang up the modem if the dial or login fails. This ensures that we will not hold the line open if the other end has a broken modem or server. This happens to me quite frequently with my ISP.
|
9328 |
26-Jun-1995 |
bde |
`pred1' was documented as `pred'. The problem was not obvious because `disable pred' is silently ignored.
|
9240 |
16-Jun-1995 |
phk |
manupilation -> manipulation.
|
8857 |
30-May-1995 |
rgrimes |
Remove trailing whitespace.
|
8766 |
26-May-1995 |
jkh |
Some edits suggested by Atsushi. Also remove my name from the bottom; just because I edited it doesn't mean I should stick myself in the authors line, even with the qualification I used.
|
8718 |
24-May-1995 |
jkh |
A few more typos fixed and some general cleanup done.
|
8678 |
21-May-1995 |
jkh |
Do my best to translate this into english.. :-)
Some parts were so incomprehensible that I had to excise them entirely, but I did my best with the material provided.
|
8674 |
21-May-1995 |
jkh |
Change device name from cua01 to cuaa0. I'm going to use this doc in the installation, so it was necessary.
|
8165 |
29-Apr-1995 |
ache |
Remove FreeBSD-specific setre*() cheat, we have working thing now
|
7897 |
17-Apr-1995 |
amurai |
Loglevel is a bitmask everywhere except in lqr.c.
Reviewed by: Atsushi Murai <amurai@spec.co.jp> Submitted by: John Capo <jc@irbs.com>
|
7886 |
16-Apr-1995 |
amurai |
Fixing follows and John's fruent explnation than my English....
The first problem I found was that descriptor 0 was being closed. This happens because the modem variable is set to 0 to indicate that it is not valid but there are not enough tests for the modem variable being 0. You can see where I have done this in the patch. Code in OpenModem() dups the modem descriptor if it is < 3. Once this happened the modem was always open and an incomming call would have getty and ppp reading the modem.
Descriptor 1 is closed when the quit command was executed from a telnet connection. The next modem open returns descriptor 1 and this gets duped leaving the modem always open again.
The modem was not being closed when the connection dropped or was closed from the other end. The UUCP lock was also not removed if the modem could not be opened.
Reviewed by: Atsushi Murai <amurai@spec.co.jp> Submitted by: John Capo <jc@irbs.com>
|
7881 |
16-Apr-1995 |
amurai |
Fix for handling a HDLC's escape characters as properly.
Reviewed by: Atsushi Murai <amurai@spec.co.jp> Submitted by: NIIMI Satoshi <sa2c@st.rim.or.jp>
|
7025 |
12-Mar-1995 |
amurai |
Adding GETTING START and so on. Submitted by: amurai@spec.co.jp
|
7002 |
11-Mar-1995 |
amurai |
Add BUGS and few explanation. Submitted by: amurai@spec.co.jp
|
7001 |
11-Mar-1995 |
amurai |
1.Reducing cpu usage at off connection. 2.Implment Redail function as working correctly. 3.Clean up a code as I notice. 4.Now, RTT getting close to 50ms with ISDN/TA 38400bps !!
Reviewed by: amurai@spec.co.jp Submitted by: amurai@spec.co.jp
|
6873 |
04-Mar-1995 |
ache |
Use ASCII lock, like everything else does Submitted by: John Capo <jc@irbs.com>
|
6764 |
27-Feb-1995 |
amurai |
Fixing minor bug and allow help(Not for all command) and quit but not close line connection by "quit all" command if not authorized.
Reviewed by: amurai@spec.co.jp Submitted by: tony-o@iij.ad.jp amurai@spec.co.jp
|
6756 |
27-Feb-1995 |
amurai |
Compile error occured by missing auth.h/cdefs.h Reviewed by: amurai@spec.co.jp
|
6736 |
26-Feb-1995 |
jkh |
I assume someone had a good reason for breaking this? Try again! For now, I'll content myself with fixing the tree.
|
6735 |
26-Feb-1995 |
amurai |
New user Process PPP based on iij-ppp0.94beta2.
o Supporting SYNC SIO device (But need a device driver) - add "set speed sync" o Fixing bug for Predictor-1 function. o Add new parameter that re-sent interval for set timeout commands. o Improving RTT (Round Trip Time) and reducing processor time. - Previous Timer service was using polling, and now using SIGALRM ;-) - A 0.94beta2 will not work correctly....
-- Follows are additinal feature not including 0.94beta2 o Support Proxy ARP - add "enable/disable proxy" commands o Marging common routine in CHAP/PAP. o Enhancing LCP/IPCP log information. o Support local Authfication connection on port 300x and tty. - You can set up pair of your "hostname -s" and password in ppp.secret. if either ppp.secret file nor your hostname line don't exist, It will notify a message and working as same as previous version.(Backword compatibility) - If you did set up them, It's allow connection but nothing to do except help and passwd command. - add "passwd yourpasswd" commands o Support afilter - keep Alive filter that a packet can send/receiving according to ifilter/ofilter but doesn't count it as preventing idle timer expires. - Same syntax of other filters. o Fixing bugs reported by current user for previous one. Thanks !!
Reviewed by: Atsushi Murai (amurai@spec.co.jp)
|
6615 |
22-Feb-1995 |
amurai |
The 'set ifilter'/'set ofilter' commands accept a syntax containing IP addresses and/or protocol+port, but in the case where both are supplied, it happily accepts the command but ignores the proto+port It also attempts to handle the case where the second IP address is omitted, but this doesn't work.
Reviewed by: amurai@spec.co.jp Submitted by: Andrew.Gordon@net-tel.co.uk
|
6111 |
02-Feb-1995 |
amurai |
PPP does not find config files (Wrong path name not a /etc/ppp) Submitted by: Michael Reifenberger <root@rz-wb.fh-sw.de>
|
6060 |
31-Jan-1995 |
amurai |
This commit was generated by cvs2svn to compensate for changes in r6059, which included commits to RCS files with non-trunk default branches.
|
6059 |
31-Jan-1995 |
amurai |
|