#
303975 |
|
11-Aug-2016 |
gjb |
Copy stable/11@r303970 to releng/11.0 as part of the 11.0-RELEASE cycle.
Prune svn:mergeinfo from the new branch, and rename it to RC1.
Update __FreeBSD_version.
Use the quarterly branch for the default FreeBSD.conf pkg(8) repo and the dvd1.iso packages population.
Approved by: re (implicit) Sponsored by: The FreeBSD Foundation |
#
302408 |
|
08-Jul-2016 |
gjb |
Copy head@r302406 to stable/11 as part of the 11.0-RELEASE cycle. Prune svn:mergeinfo from the new branch, as nothing has been merged here.
Additional commits post-branch will follow.
Approved by: re (implicit) Sponsored by: The FreeBSD Foundation
|
#
277857 |
|
28-Jan-2015 |
dim |
Fix multiple instances of the following clang 3.6.0 warning in ppp:
usr.sbin/ppp/command.c:2054:74: error: address of array 'arg->bundle->radius.cfg.file' will always evaluate to 'true' [-Werror,-Wpointer-bool-conversion] if (arg->bundle->radius.alive.interval && !arg->bundle->radius.cfg.file) { ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
In all cases, the file field of struct radius is a char array, but the intent was to check whether the string is empty, so add an indirection to achieve that. Use a similar approach for the sockname field of struct server.
|
#
214011 |
|
18-Oct-2010 |
glebius |
Log if fopen() fails.
Reviewed by: brian
|
#
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
|
#
177100 |
|
12-Mar-2008 |
piso |
Update to the "new" libalias API (and thus fix world breakage).
|
#
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
|
#
139973 |
|
10-Jan-2005 |
brian |
Integrate some OpenBSD alignment fixes. This hopefully also fixes PR 38058...
Obtained from: Brad <brad@comstyle.com>
|
#
134789 |
|
05-Sep-2004 |
brian |
Make ppp WARNS=5 clean
|
#
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
|
#
116588 |
|
19-Jun-2003 |
ume |
Do RADIUS accounting on IPV6CP.
MFC after: 1 week
|
#
108533 |
|
01-Jan-2003 |
schweikh |
Correct typos, mostly s/ a / an / where appropriate. Some whitespace cleanup, especially in troff files.
|
#
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
|
#
102500 |
|
27-Aug-2002 |
brian |
Include the correct file (stdarg.h) and use va_list rather than _BSD_VA_LIST_
Suggested by: mike
|
#
98243 |
|
15-Jun-2002 |
brian |
Remove whitespace at the end of lines.
|
#
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>
|
#
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
|
#
89422 |
|
16-Jan-2002 |
brian |
socket()s first argument should be a protocol family rather than an address family.
|
#
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>
|
#
81693 |
|
15-Aug-2001 |
brian |
Add a missing newline
|
#
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>
|
#
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
|
#
78189 |
|
13-Jun-2001 |
brian |
Convert IIJ copyrights to BSD copyrights.
Approved by: Toshiharu OHNO <tohno@sirius.ocn.ne.jp>
|
#
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.
|
#
75212 |
|
05-Apr-2001 |
brian |
When we change the interface MTU, run through the routing table and tweak all route MTUs too.
|
#
74049 |
|
09-Mar-2001 |
brian |
MAXHOSTNAME includes space for a NUL
|
#
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 ""
|
#
71356 |
|
22-Jan-2001 |
brian |
Handle SECDNS being rejected when PRIDNS is not
Submitted by: OGAWA Takaya <t-ogawa@triaez.kaisei.org> PR: 24518
|
#
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.
|
#
64637 |
|
14-Aug-2000 |
brian |
Don't delete sticky routes when unconfiguring the interface. Deleting all routes that match the interface is sufficient.
|
#
63484 |
|
19-Jul-2000 |
brian |
Support link identification from rfc1570 Two new commands are available; ``ident'' and ``sendident''.
|
#
61430 |
|
08-Jun-2000 |
brian |
Allow ``set urgent none'' to disable all urgent ports and IPTOS_LOWDELAY prioritisation.
Requested by: luigi
|
#
60922 |
|
25-May-2000 |
brian |
Fix a topy (if (expr); command;)
Submitted by: Renaud Waldura <renaud@guppy.evolunet.com>
|
#
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 !
|
#
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.
|
#
58042 |
|
14-Mar-2000 |
brian |
Fix some printf-style argument bugs
|
#
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.
|
#
58034 |
|
14-Mar-2000 |
brian |
When ppp can't identify the relevant name, don't use "???", use <nnn> or <0xxxx> instead.
|
#
55146 |
|
27-Dec-1999 |
brian |
Add a bunch of `const's and fix a typo.
Submitted by: Rich Neswold <rneswold@MCS.Net>
|
#
54912 |
|
20-Dec-1999 |
brian |
Cosmetic: Make struct mbuf more like kernel mbufs.
|
#
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>
|
#
51449 |
|
20-Sep-1999 |
brian |
NetBSD has moved ``extern int errno;'' to signal.h :-/
Submitted by: Kazuyoshi Kato <kazk@yyy.or.jp>
|
#
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.
|
#
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''.
|
#
50479 |
|
28-Aug-1999 |
peter |
$Id$ -> $FreeBSD$
|
#
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''.
|
#
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).
|
#
47844 |
|
08-Jun-1999 |
brian |
Don't use static variables if we don't have to.
|
#
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.
|
#
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().
|
#
47648 |
|
31-May-1999 |
brian |
Remember if MYADDR or HISADDR is used in a filter add tweak all filters any time either value changes.
|
#
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''.
|
#
46086 |
|
26-Apr-1999 |
brian |
Add support for NetBSD
|
#
46085 |
|
26-Apr-1999 |
brian |
#include <errno.h>, not <sys/errno.h>
|
#
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.
|
#
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.
|
#
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.
|
#
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
|
#
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
|
#
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 :-)
|
#
39395 |
|
17-Sep-1998 |
brian |
Sync with OpenBSD ifdefs
|
#
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.
|
#
38557 |
|
26-Aug-1998 |
brian |
Put the IP buffer queues into struct ipcp. Forgotten by: me
|
#
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.
|
#
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
|
#
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.
|
#
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.
|
#
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.
|
#
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.
|
#
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>
|
#
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>
|
#
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.
|
#
36285 |
|
21-May-1998 |
brian |
MFMP: Make ppp multilink capable. See the file README.changes, and re-read the man page.
|
#
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.
|
#
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".
|
#
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.
|
#
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().
|
#
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
|
#
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!).
|
#
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.
|
#
31585 |
|
06-Dec-1997 |
brian |
Correct cftypes128 index.
|
#
31540 |
|
04-Dec-1997 |
brian |
Remove duplicate REJECTED macro. Remove extraneous pointers.
|
#
31514 |
|
03-Dec-1997 |
brian |
Abstract the CCP layer a level. Add DEFLATE support.
|
#
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).
|
#
31272 |
|
18-Nov-1997 |
brian |
Add throughput logging (disabled by default). Use "enable throughput" to see modem & IPCP throughput. Removed an extraneous prompt()
|
#
31171 |
|
14-Nov-1997 |
brian |
Update the cftypes arrays according to rfc1700. Log IPCP reqests as IPCP.
|
#
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).
|
#
31034 |
|
08-Nov-1997 |
brian |
Don't pass global vars as args. Remove local/global conflicts.
|
#
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
|
#
30500 |
|
17-Oct-1997 |
brian |
Ask for VJ slot id compression by default.
|
#
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.
|
#
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.
|
#
28974 |
|
31-Aug-1997 |
brian |
Cosmetic: Make LogPrintf() calls consistent.
|
#
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.
|
#
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.
|
#
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.
|
#
27763 |
|
29-Jul-1997 |
brian |
Set up the alias address before executing the contents of ppp.linkup.
|
#
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
|
#
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.
|
#
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
|
#
26098 |
|
24-May-1997 |
brian |
Fix the reconnect option, and add an explanation to vars.h
|
#
26031 |
|
23-May-1997 |
brian |
Use the latest alias engine - now in libalias.
Submitted by: Charles Mott <cmott@srv.net>
|
#
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().
|
#
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>
|
#
25630 |
|
10-May-1997 |
brian |
Tidy up the code - bounds checking, return value checking etc.
Submitted by: eivind
|
#
22997 |
|
22-Feb-1997 |
peter |
Revert $FreeBSD$ to $Id$
|
#
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.
|
#
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
|
#
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>
|
#
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>
|
#
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>
|
#
13389 |
|
11-Jan-1996 |
phk |
Final cleanup for now. -Wall is now silent. A couple of bogons found.
|
#
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")
|
#
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.
|
#
8857 |
|
30-May-1995 |
rgrimes |
Remove trailing whitespace.
|
#
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
|
#
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)
|
#
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 |
|