1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-16 10:20:30 +00:00
freebsd/usr.sbin
Brian Somers 8fa6ebe47d 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 :-)
1998-10-22 02:32:50 +00:00
..
ac /var/log/wtmp entries for ptys are treated differently in ac, since 1998-07-02 05:34:08 +00:00
accton Use err(3). 1997-09-01 06:12:37 +00:00
adduser Removing -batch option from adduser. Adduser was written as 1998-08-17 18:50:29 +00:00
amd Fixed missing libraries in DPADD. 1998-10-17 13:55:22 +00:00
apm o Enable standby mode in apm utility. You need a newer kernel for this 1998-09-04 16:08:54 +00:00
apmconf .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq. 1998-03-23 08:31:20 +00:00
arp Removed most unused includes of <net/if_var.h> outside the kernel. 1998-01-16 17:38:56 +00:00
atm Two patches from the HARP people: 1998-09-17 09:35:02 +00:00
bad144 Change MACHINE to MACHINE_ARCH to support MACHINE=pc98. 1998-09-05 08:22:30 +00:00
bootparamd #include <arpa/inet.h> for inet_* definitions. 1998-06-12 14:39:00 +00:00
btxld Enable client entry point support. 1998-09-13 13:28:07 +00:00
cdcontrol Mention all the environment variables that can be used 1998-06-13 19:28:51 +00:00
chkgrp Inserted missing .Bl in the FILES section. 1998-07-14 07:55:27 +00:00
chown Backed out previous commit. chown(8) doesn't follow symlinks by 1998-05-03 04:17:48 +00:00
chroot Remove unused #include. Statisize usage(). 1997-09-15 06:32:01 +00:00
ckdist Put includes in alphabetical order. various cosmetics. 1997-09-15 06:33:52 +00:00
config Removed unused/unusable "ha" keyword. Device classes should never have 1998-10-16 15:08:30 +00:00
cron Fixed printf format errors. 1998-07-06 20:28:08 +00:00
crunch Temporary use different stubs for the ECOFF case; I'm trying to get this 1998-10-02 11:30:07 +00:00
ctm Paranoia: use mkstemp instead of mktemp. 1998-07-27 22:26:25 +00:00
dev_mkdb Use err(3) instead of local redefinition. 1997-09-17 06:26:06 +00:00
diskpart Fix: too many arguments passed to fprintf(). 1997-11-18 05:56:03 +00:00
dpt Remove useless `BINOWN=root' now that it is the default. 1998-09-19 22:42:14 +00:00
edquota Use err(3). Add prototypes. 1997-09-17 06:29:23 +00:00
fdcontrol .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq. 1998-03-23 08:31:20 +00:00
fdformat mkdosfs(1) is dead, refere to newfs_msdos(8) 1998-09-29 17:31:28 +00:00
fdwrite Typo. 1998-06-27 21:29:35 +00:00
inetd Bruce says that %p is intended to format void pointers only. So use a void * 1998-08-18 02:10:05 +00:00
iostat Change the devstat generation number from an int to a long. The int-sized 1998-09-20 00:11:23 +00:00
ipfstat Initial bmake scaffolding for ipfilter userland stuff. 1998-03-21 13:53:18 +00:00
ipftest Initial bmake scaffolding for ipfilter userland stuff. 1998-03-21 13:53:18 +00:00
ipmon Install ipmon.8 in man8/ not man1/. 1998-08-30 04:48:00 +00:00
ipnat Initial bmake scaffolding for ipfilter userland stuff. 1998-03-21 13:53:18 +00:00
ipresend Initial bmake scaffolding for ipfilter userland stuff. 1998-03-21 13:53:18 +00:00
ipsend Added y.tab.h to SRCS. This should have been used to get dependencies 1998-05-05 13:16:35 +00:00
iptest Initial bmake scaffolding for ipfilter userland stuff. 1998-03-21 13:53:18 +00:00
IPXrouted Major IPXrouted rework. 1997-07-06 07:38:36 +00:00
kbdcontrol Add description on the "quiet" modifier for bell types. 1998-10-12 09:53:17 +00:00
kbdmap /usr/sbin/spkrtest and /usr/sbin/vidfont (aka kbdmap) use very 1998-08-14 06:26:58 +00:00
kernbb Typo fix. 1997-10-12 11:51:25 +00:00
keyadmin Use err(3). Make it -Wall friendly. Typo fix in man page. 1997-09-23 06:32:33 +00:00
keyserv Remove irrelevant section. 1998-10-13 08:14:31 +00:00
kgmon Use err(3). Add usage() and prototypes. 1997-09-23 06:38:54 +00:00
kvm_mkdb Update to use the new elf headers. 1998-08-17 08:47:19 +00:00
lpr Remove useless `BINOWN=root' now that it is the default. 1998-09-19 22:42:14 +00:00
lptcontrol .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq. 1998-03-23 08:31:20 +00:00
mailstats Build sendmail-8.9.1 makemap. 1998-08-04 15:25:32 +00:00
makemap Add snprintf.c to SRCS so that the function quad_to_string exists. The 1998-08-06 23:01:49 +00:00
manctl Stylistic changes in man page. 1997-09-25 06:38:17 +00:00
mixer fix a core dump problem when you don't give -f a parameter... also compare 1998-05-07 14:13:16 +00:00
mount_portalfs Fixed printf format errors. 1998-08-02 16:06:35 +00:00
mountd Spelling. 1998-10-15 13:37:35 +00:00
moused Fix PnP mouse detection routine so that: 1998-10-12 09:36:27 +00:00
mptable .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq. 1998-03-23 08:31:20 +00:00
mrouted Correct use of nonexistent `.SS' macro. 1998-09-29 01:42:07 +00:00
mtest Use AF_LINK rather than AF_UNSPEC to set an ethernet multicast address. 1998-05-28 07:31:30 +00:00
mtree Fixed printf format errors. 1998-08-02 14:41:34 +00:00
named bsd.dep.mk doesn't know about -idirafter, and doesn't parse -I the 1998-06-11 10:42:58 +00:00
named.reload These are no longer shipped with bind, but are a well established 1998-05-03 05:11:52 +00:00
named.restart These are no longer shipped with bind, but are a well established 1998-05-03 05:11:52 +00:00
natd Fix inconsistent port numbering in man page. 1998-07-15 03:32:45 +00:00
ndc ndc hardcodes 'named' instead of using $named_program from rc.conf 1998-07-31 08:47:16 +00:00
newsyslog Remove useless `BINOWN=root' now that it is the default. 1998-09-19 22:42:14 +00:00
nfsd Do not dot terminate syslog() string. Remove unused #includes. Add rcsid. -Wall. 1998-07-15 06:33:15 +00:00
nologin Add Id. .Nm nologin -> .Nm. 1998-07-15 06:37:07 +00:00
nslookup Simplified by using new lex rules. 1998-05-04 20:00:14 +00:00
nsupdate New bind8 program 1998-05-03 05:10:23 +00:00
pccard Keywords "iosize" and "memsize" are unused since 1.5. Removed. 1998-04-25 18:10:10 +00:00
pciconf Revive PCIConf. 1998-09-15 08:21:13 +00:00
pcvt Remove identity crisis in ispcvt(8) man page. Include reference to 1998-08-26 02:46:24 +00:00
periodic .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq. 1998-03-23 08:31:20 +00:00
pkg_install Revert 1.33; lstat() is indeed the wrong thing to do here. I'll 1998-10-14 18:52:04 +00:00
pnpinfo Style police. 1998-03-12 12:54:25 +00:00
portmap Ad #include stdlib.h to get the prototype for malloc(). 1998-08-17 06:05:55 +00:00
ppp Solve the ``first connection'' problem that occurs on 1998-10-22 02:32:50 +00:00
pppctl Sort cross references. 1998-08-31 16:41:09 +00:00
pppd Fix the MS-CHAP support. The code was passing a bit count to 1998-10-11 19:40:38 +00:00
pppstats Remove illegal ".Nm". This file is still using -man, not -mdoc. 1998-07-09 04:53:11 +00:00
praliases Use sendmail-8.9.1 praliases 1998-08-04 15:26:57 +00:00
procctl Use err(3). Change Synopsis to SYNOPSIS (needed for macro expansion) and 1998-01-05 07:19:15 +00:00
pstat Increased column widths for tty input watermark fields so that watermarks 1998-08-19 01:32:28 +00:00
pw Remove useless `BINOWN=root' now that it is the default. 1998-09-19 22:42:14 +00:00
pwd_mkdb Rename a static variable, so it will not shadowed by a local variable. 1998-09-29 20:01:21 +00:00
quot .Sh ENVIRONMENT VARIABLES -> .Sh ENVIRONMENT 1998-05-13 07:57:49 +00:00
quotaon Use err(3). Add prototypes. Cosmetic in usage string. 1997-10-13 11:01:33 +00:00
rarpd Fix bug in rarpd: 1998-04-02 13:20:15 +00:00
repquota Make it compatible with long usernames 1998-06-14 22:56:31 +00:00
rmt Add support for the 'V'ersion rmt command. 1998-09-15 10:30:25 +00:00
rndcontrol .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq. 1998-03-23 08:31:20 +00:00
rpc.lockd Removed bogus dependencies of generated .c files on generated headers. 1998-05-10 16:03:17 +00:00
rpc.statd Removed bogus dependencies of generated .c files on generated headers. 1998-05-10 16:03:17 +00:00
rpc.yppasswdd Protect errno in signal handlers, like in portmap. 1998-06-04 15:11:32 +00:00
rpc.ypupdated Removed bogus dependencies of generated .c files on generated headers. 1998-05-10 16:03:17 +00:00
rpc.ypxfrd Darnit, that last commit was only supposed to change files in the 1998-06-04 15:37:05 +00:00
rtprio PR: 7489 1998-08-04 14:33:42 +00:00
rwhod There is no "rwho" service, it's "who" 1998-04-23 19:12:41 +00:00
sa .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq. 1998-03-23 08:31:20 +00:00
sade Add entries for DiskOnChip2000 Flash device. 1998-10-19 14:58:38 +00:00
sendmail Remove useless `BINOWN=root' now that it is the default. 1998-09-19 22:42:14 +00:00
sgsc .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq. 1998-03-23 08:31:20 +00:00
sicontrol .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq. 1998-03-23 08:31:20 +00:00
sliplogin Remove useless `BINOWN=root' now that it is the default. 1998-09-19 22:42:14 +00:00
slstat Removed bogus #ifdef INET - <net/if_slvar.h> no longer depends on it. 1998-07-06 20:09:36 +00:00
spkrtest /usr/sbin/spkrtest and /usr/sbin/vidfont (aka kbdmap) use very 1998-08-14 06:26:58 +00:00
spray Fix usage in man page. Remove progname. 1997-10-20 12:44:53 +00:00
stallion Remove optind (getopt() already knows about it). 1998-01-12 08:01:40 +00:00
sysctl `kern.maxproc' is not changeable using sysctl(1). Change examples 1998-09-29 02:01:06 +00:00
sysinstall Add entries for DiskOnChip2000 Flash device. 1998-10-19 14:58:38 +00:00
syslogd Submitted by: archie@whistle.com 1998-08-25 21:16:47 +00:00
tcpdump Fix CFLAGS: s/ETHER_NTOA/ETHER_NTOHOST/ 1998-10-02 21:56:30 +00:00
timed Remove useless `BINOWN=root' now that it is the default. 1998-09-19 22:42:14 +00:00
traceroute Remove useless `BINOWN=root' now that it is the default. 1998-09-19 22:42:14 +00:00
trpt Use err(3). Add usage() and prototypes. 1997-10-22 06:23:12 +00:00
tzsetup Minor brace gymnastics so that /etc/wall_cmos_clock is really 1998-01-10 15:55:11 +00:00
vidcontrol - Express various sizes in bytes, rather than Kbytes, in the video 1998-10-01 11:40:22 +00:00
vipw Since vfork() was changed to fork(), we have to pass errno back from the 1998-10-20 11:34:11 +00:00
vnconfig Document meanings of flags to the -r and -s options. 1998-07-30 04:17:12 +00:00
watch .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq. 1998-03-23 08:31:20 +00:00
wlconfig Removed most unused includes of <net/if_var.h> outside the kernel. 1998-01-16 17:38:56 +00:00
wormcontrol Add 'blank' and 'nextwriteable' commands for atapi CD-R/RW support. 1998-09-08 20:51:24 +00:00
xntpd Use sysctl() rather than kvm_read() when getting information 1998-10-19 20:48:08 +00:00
xten .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq. 1998-03-23 08:31:20 +00:00
yp_mkdb .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq. 1998-03-23 08:31:20 +00:00
ypbind .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq. 1998-03-23 08:31:20 +00:00
yppoll .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq. 1998-03-23 08:31:20 +00:00
yppush Don't assume that time_t is long. 1998-06-29 18:15:21 +00:00
ypserv Sort cross references. 1998-08-31 16:41:09 +00:00
ypset .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq. 1998-03-23 08:31:20 +00:00
zic PR: docs/5986 1998-06-06 15:37:23 +00:00
Makefile Add crunch back to general targets. 1998-10-02 11:31:36 +00:00
Makefile.inc