diff options
author | brian <brian@FreeBSD.org> | 1999-02-25 20:05:55 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1999-02-25 20:05:55 +0000 |
commit | 909314a3a7d15c37f170149208b7e71611ae2a35 (patch) | |
tree | afdc682e8f39824684da2407e9680b1c33720bb8 /usr.sbin/ppp/defs.h | |
parent | a3fa9785d059a69334c6d4842a24d0e8300c8300 (diff) | |
download | FreeBSD-src-909314a3a7d15c37f170149208b7e71611ae2a35.zip FreeBSD-src-909314a3a7d15c37f170149208b7e71611ae2a35.tar.gz |
Parse IP addresses more securely - specifically, don't allow
a bum name to return as 0.0.0.0... we don't want ``delete xxx''
to delete the default route when xxx doesn't resolve.
Support IP number specifications as the host when specifying
a tcp-style device (rather than *just* hostnames).
Diffstat (limited to 'usr.sbin/ppp/defs.h')
-rw-r--r-- | usr.sbin/ppp/defs.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/ppp/defs.h b/usr.sbin/ppp/defs.h index ea64cdf..686df25 100644 --- a/usr.sbin/ppp/defs.h +++ b/usr.sbin/ppp/defs.h @@ -15,7 +15,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id: defs.h,v 1.38 1999/02/11 10:14:08 brian Exp $ + * $Id: defs.h,v 1.39 1999/02/16 00:16:56 brian Exp $ * * TODO: */ @@ -93,3 +93,4 @@ extern void randinit(void); extern ssize_t fullread(int, void *, size_t); extern const char *mode2Nam(int); extern int Nam2mode(const char *); +extern struct in_addr GetIpAddr(const char *); |