OpenBSD CVS

CVS log for src/usr.sbin/ppp/Attic/main.c


[BACK] Up to [local] / src / usr.sbin / ppp

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.21, Mon Aug 31 00:21:10 1998 UTC (25 years, 9 months ago) by brian
Branch: MAIN
CVS Tags: HEAD
Changes since 1.20: +1 -1 lines
FILE REMOVED

Upgrade ppp to version 2.0

This adds a number of features including:
o Multilink
o Callback (including CBCP)
o DNS negotiation (client & server)
o Easy to configure masquerading/packet aliasing
o Any number of diagnostic socket connections (limits DOS attacks)
o Sticky routes (ppp updates the routing table when the IP number is changed)

See the file README.changes for things that effect current
configurations.

Revision 1.20 / (download) - annotate - [select for diffs], Sun Jun 28 09:41:43 1998 UTC (25 years, 11 months ago) by brian
Branch: MAIN
Changes since 1.19: +5 -5 lines
Diff to previous 1.19 (colored)

Don't assume sizeof(long) == 4

Revision 1.19 / (download) - annotate - [select for diffs], Sat Jun 27 12:06:46 1998 UTC (25 years, 11 months ago) by brian
Branch: MAIN
Changes since 1.18: +1 -2 lines
Diff to previous 1.18 (colored)

Fix ``sizeof(u_long) == 4'' errors.
Suggested by: theo

Revision 1.18 / (download) - annotate - [select for diffs], Wed Feb 11 19:45:03 1998 UTC (26 years, 4 months ago) by brian
Branch: MAIN
CVS Tags: OPENBSD_2_3_BASE, OPENBSD_2_3
Changes since 1.17: +6 -3 lines
Diff to previous 1.17 (colored)

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.

Revision 1.17 / (download) - annotate - [select for diffs], Thu Jan 29 00:35:33 1998 UTC (26 years, 4 months ago) by brian
Branch: MAIN
Changes since 1.16: +5 -2 lines
Diff to previous 1.16 (colored)

Don't moan about not creating tunX.pid and ttyX.if if RELEASE_CRUNCH
is defined.

Revision 1.16 / (download) - annotate - [select for diffs], Thu Jan 29 00:34:32 1998 UTC (26 years, 4 months ago) by brian
Branch: MAIN
Changes since 1.15: +3 -15 lines
Diff to previous 1.15 (colored)

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.

Revision 1.15 / (download) - annotate - [select for diffs], Wed Jan 21 02:13:36 1998 UTC (26 years, 4 months ago) by brian
Branch: MAIN
Changes since 1.14: +3 -6 lines
Diff to previous 1.14 (colored)

Remove unused #includes.
Make various bits static.
Remove unused variables.
Submitted by: eivind

Revision 1.14 / (download) - annotate - [select for diffs], Tue Jan 20 22:46:27 1998 UTC (26 years, 4 months ago) by brian
Branch: MAIN
Changes since 1.13: +9 -13 lines
Diff to previous 1.13 (colored)

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.

Revision 1.13 / (download) - annotate - [select for diffs], Sun Jan 11 17:55:19 1998 UTC (26 years, 5 months ago) by brian
Branch: MAIN
Changes since 1.12: +1 -4 lines
Diff to previous 1.12 (colored)

Lose <net/if_var.h> (was a FreeBSD brokenness) !

Revision 1.12 / (download) - annotate - [select for diffs], Thu Jan 8 23:47:08 1998 UTC (26 years, 5 months ago) by brian
Branch: MAIN
Changes since 1.11: +2 -1 lines
Diff to previous 1.11 (colored)

Zap any addresses on the network side of the `tun' as soon
as we've successfully opened the /dev side.

Revision 1.11 / (download) - annotate - [select for diffs], Tue Dec 30 23:22:37 1997 UTC (26 years, 5 months ago) by brian
Branch: MAIN
Changes since 1.10: +30 -28 lines
Diff to previous 1.10 (colored)

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 :-(

Revision 1.10 / (download) - annotate - [select for diffs], Sun Dec 28 21:54:24 1997 UTC (26 years, 5 months ago) by brian
Branch: MAIN
Changes since 1.9: +6 -7 lines
Diff to previous 1.9 (colored)

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>

Revision 1.9 / (download) - annotate - [select for diffs], Sun Dec 28 02:46:58 1997 UTC (26 years, 5 months ago) by brian
Branch: MAIN
Changes since 1.8: +5 -15 lines
Diff to previous 1.8 (colored)

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.

Revision 1.8 / (download) - annotate - [select for diffs], Sat Dec 27 13:45:20 1997 UTC (26 years, 5 months ago) by brian
Branch: MAIN
Changes since 1.7: +9 -4 lines
Diff to previous 1.7 (colored)

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().

Revision 1.7 / (download) - annotate - [select for diffs], Wed Dec 24 09:30:41 1997 UTC (26 years, 5 months ago) by brian
Branch: MAIN
Changes since 1.6: +9 -7 lines
Diff to previous 1.6 (colored)

Cosmetic (style):
  sizeof(var) -> sizeof var
  sizeof type -> sizeof(type)

Suggested by: J Wunsch <j@uriah.heep.sax.de>

Revision 1.6 / (download) - annotate - [select for diffs], Mon Dec 22 02:28:33 1997 UTC (26 years, 5 months ago) by brian
Branch: MAIN
Changes since 1.5: +3 -3 lines
Diff to previous 1.5 (colored)

Don't forget to ntohs(sin.sin_port) (DUH!)

Revision 1.5 / (download) - annotate - [select for diffs], Wed Dec 17 21:18:03 1997 UTC (26 years, 5 months ago) by brian
Branch: MAIN
Changes since 1.4: +32 -8 lines
Diff to previous 1.4 (colored)

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>

Revision 1.4 / (download) - annotate - [select for diffs], Wed Dec 17 21:17:55 1997 UTC (26 years, 5 months ago) by brian
Branch: MAIN
Changes since 1.3: +12 -1 lines
Diff to previous 1.3 (colored)

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>

Revision 1.3 / (download) - annotate - [select for diffs], Mon Dec 15 22:44:54 1997 UTC (26 years, 5 months ago) by brian
Branch: MAIN
Changes since 1.2: +2 -2 lines
Diff to previous 1.2 (colored)

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).

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.

Revision 1.2 / (download) - annotate - [select for diffs], Sat Dec 6 12:09:00 1997 UTC (26 years, 6 months ago) by brian
Branch: MAIN
Changes since 1.1: +38 -43 lines
Diff to previous 1.1 (colored)

Add DEFLATE capabilities (rfc1979).

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Sun Nov 23 20:27:34 1997 UTC (26 years, 6 months ago) by brian
Branch: BRIAN
CVS Tags: PPP1_5
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

Import version 1.5 of ppp.

<sales>
This is a user-level ppp implementation that uses the
tun driver.  It was originally created by a Japanese
ISP.  It's now piled with features.  Check the man pages
for details.
</sales>

The sources are identical to the ones in FreeBSD, except
for the Makefile.

IP aliasing (NAT) is disabled, and can be enabled by simply
doing a ``make install'' of libalias, then rebuilding
ppp.  I'll create libalias as a port soon.

Revision 1.1 / (download) - annotate - [select for diffs], Sun Nov 23 20:27:34 1997 UTC (26 years, 6 months ago) by brian
Branch: MAIN

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.