summaryrefslogtreecommitdiff
path: root/usr.sbin/ppp
AgeCommit message (Collapse)Author
1997-12-15Include iplist.c (forgotten when updating for dynamicbrian
IP support).
1997-12-15Do 2 passes when "delete all"ing. The first pass removesbrian
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 ! This code is based on the definition of RTF_WASCLONED which isn't available (yet). Also: Enhance the route operation failure diagnostics. Make portability #ifdefs a bit more generic.
1997-12-15Allow random IP number allocation to peer.brian
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.
1997-12-08Deal with inflate() returning avail_in == avail_out == 0brian
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 !
1997-12-08Correct usage of `add' and `delete'.brian
1997-12-07Fix PAP, CHAP & LQR req (I broke the byte ordering whenbrian
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.
1997-12-07Add forgotten files.brian
1997-12-07Only allow one arg to `delete' - the mask & gateway aren't necessary.brian
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....
1997-12-06Correct cftypes128 index.brian
1997-12-06Understand ``sockaddr_dl''s where sdl_nlen != 0brian
1997-12-06Remove duplicate REJECTED macro.brian
Remove extraneous pointers.
1997-12-06Initialize ccpstate when CCP comes down.brian
Remove extraneous pointers.
1997-12-06Parenthesise the REJECTED macro.brian
1997-12-06Identify rejected protocol types according to rfc1700.brian
1997-12-06Add DEFLATE capabilities (rfc1979).brian
1997-12-06Show uptime as zero if a connection has never been made.brian
1997-11-26Don't look for /usr/include/alias.h in the Makefile,brian
expect ``make -DHAVE_LIBALIAS'' instead. alias.h poo poo'd by: Theo
1997-11-23Remove trash directory (duh!)brian
1997-11-23Import version 1.5 of ppp.brian
<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.