Commit Graph

19 Commits

Author SHA1 Message Date
Maxim Konovalov
efccc7dc25 o SIOCGIFCONF->getifaddrs(2) conversion.
PR:		bin/9379
Obtained from:	NetBSD
2004-04-09 16:59:05 +00:00
Brooks Davis
51480d2fff Test for the existance of kernel ppp support by seeing if the kernel has
the module compiled in or loaded instead of bogusly checking for ppp0.
Also if and only if the caller is actually root and the kernel does not
have ppp support, try to load the ppp module before giving up.
2002-11-05 05:58:31 +00:00
Jacques Vidrine
24280a8fbb Check for FD_SET overruns.
Approved by:	peter
2002-09-17 15:52:35 +00:00
Peter Wemm
97d92980a9 $Id$ -> $FreeBSD$ 1999-08-28 01:35:59 +00:00
Archie Cobbs
eed2b804bf When incrementing through a SIOCGIFCONF list, enforce a lower limit of
sizeof(ifr->ifr_addr) for the variable length field ifr->ifr_addr.sa_len.
Otherwise the increment will be wrong in certain cases.

Obtained from:  Whistle source tree
For the record: Garrett Wollman <wollman@khavrinen.lcs.mit.edu> suggests
                SIOCGIFCONF should be dropped in favor of a sysctl mechanism.
1999-06-05 05:55:07 +00:00
Peter Wemm
0e40275a28 remove old hack that's no longer needed and now breaks the compile 1998-06-21 04:47:21 +00:00
Peter Wemm
f3af07bd28 Merge ppp 2.3.3 -> 2.3.5 changes onto mainline. 1998-06-20 18:02:16 +00:00
Peter Wemm
1ceb7f1f59 Merge ppp-2.3.3 changes onto mainline 1998-03-22 05:33:08 +00:00
Bruce Evans
cc03533c8d Removed most unused includes of <net/if_var.h> outside the kernel. 1998-01-16 17:38:56 +00:00
Peter Wemm
b6633f4571 *gulp* First pass at merging in ppp-2.3.0's pppd. (this has
dial-on-demand, packet filtering, idle timeouts, etc).  The IPX support
is pretty much there but more work needs to be done in sys-bsd.c for
the interface ioctls (Linux has a very different way of configuring IPX
interfaces).

Along the way some things have temporarily been lost due to very messy
conflicts.  I will recover them shortly when I can think clearer.
The main one is the local:remote address override in pap-secrets and
chap-secrets.  Some other home-grown features (dns1,dns2) have been
implemented differently.  Microsoft's chap client auth hacks have been
implemented.  There are bound to be more rough edges...  The changes for
connect-max-retries doesn't fit well with the dial-on-demand code.
1997-08-19 17:52:48 +00:00
Peter Wemm
476602a9d0 Revert $FreeBSD$ to $Id$ 1997-02-22 16:15:28 +00:00
Jordan K. Hubbard
1130b656e5 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.
1997-01-14 07:20:47 +00:00
Garrett Wollman
702a1d0148 Update to match changes in <net/if.h>. 1997-01-03 20:19:50 +00:00
Peter Wemm
b49090e691 Add RTF_STATIC to flags when creating a default route. Hopefully this
will stop routed from removing it if it is also running.
1996-08-13 09:16:49 +00:00
Poul-Henning Kamp
d52b14d769 Use libmd.
Add support for negotiating (more like "informing peer") about DNS.
Various cleanup of warnings.
1996-03-01 19:29:44 +00:00
Peter Wemm
60f531a365 Bring pppd from ppp-2.2 onto the mainline..
(more work needs to be done here, I'm trying to beat the supscan)
1995-10-31 21:21:51 +00:00
Joerg Wunsch
7c4f0a18ff Finally applied the fix from PR # 701 for the broken prxyarp option of
pppd(8).

Reviewed by:	several people on -hackers, and me
Submitted by:	Stephen McKay <syssgm@devetir.qld.gov.au>
1995-10-03 10:50:42 +00:00
Rodney W. Grimes
709e8f9ae1 Remove trailing whitespace. 1995-05-30 03:57:47 +00:00
Garrett Wollman
08a0aca6e2 Initial revision 1994-09-25 02:11:26 +00:00