diff options
author | brian <brian@FreeBSD.org> | 2001-08-15 13:53:38 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 2001-08-15 13:53:38 +0000 |
commit | 1b1f9ae87849ba39b6e788293de28036e0b1dd38 (patch) | |
tree | eaaf26c704b6c4694590d7b0932894ce1fe8067f /usr.sbin/ppp/main.c | |
parent | bbebfb9f8c06d991af6a4d982893bb211e80d572 (diff) | |
download | FreeBSD-src-1b1f9ae87849ba39b6e788293de28036e0b1dd38.zip FreeBSD-src-1b1f9ae87849ba39b6e788293de28036e0b1dd38.tar.gz |
Probe for the availability of AF_INET6 at startup. If it's not
available, default ipv6cp to disabled and refuse to let the user
enable it.
Diffstat (limited to 'usr.sbin/ppp/main.c')
-rw-r--r-- | usr.sbin/ppp/main.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.sbin/ppp/main.c b/usr.sbin/ppp/main.c index bfef701..387cec7 100644 --- a/usr.sbin/ppp/main.c +++ b/usr.sbin/ppp/main.c @@ -304,6 +304,8 @@ main(int argc, char **argv) struct prompt *prompt; struct switches sw; + probe_Init(); + /* * We open 3 descriptors to ensure that STDIN_FILENO, STDOUT_FILENO and * STDERR_FILENO are always open. These are closed before DoLoop(), @@ -531,9 +533,6 @@ DoLoop(struct bundle *bundle) { fd_set *rfds, *wfds, *efds; int i, nfds, nothing_done; - struct probe probe; - - probe_Init(&probe); if ((rfds = mkfdset()) == NULL) { log_Printf(LogERROR, "DoLoop: Cannot create fd_set\n"); |