X-Git-Url: http://git.ozlabs.org/?p=ppp.git;a=blobdiff_plain;f=pppd%2Fsys-ultrix.c;h=92ba6c770f0e1db6ea3cd7e2788900438cd49033;hp=ec05e7fb75d7e4d98122a56a1b9b7125bbad2859;hb=573c1e58a8463fd19f4bfb3c3573427030606118;hpb=7173a14a57e110a75b316d0ad6de58f2eea5057c diff --git a/pppd/sys-ultrix.c b/pppd/sys-ultrix.c index ec05e7f..92ba6c7 100644 --- a/pppd/sys-ultrix.c +++ b/pppd/sys-ultrix.c @@ -21,7 +21,7 @@ */ #ifndef lint -static char rcsid[] = "$Id: sys-ultrix.c,v 1.17 1996/05/26 23:58:03 paulus Exp $"; +static char rcsid[] = "$Id: sys-ultrix.c,v 1.19 1996/08/28 06:42:54 paulus Exp $"; #endif /* @@ -141,8 +141,7 @@ void sys_check_options() { if (demand) { - fprintf(stderr, - "Sorry - demand-dialling is not supported under Ultrix\n"); + option_error("Sorry - demand-dialling is not supported under Ultrix\n"); exit(1); } } @@ -599,6 +598,7 @@ wait_input(timo) * loopback, for the length of time specified by *timo (indefinite * if timo is NULL). */ +void wait_loop_output(timo) struct timeval *timo; { @@ -610,6 +610,7 @@ wait_loop_output(timo) * wait_time - wait for a given length of time or until a * signal is received. */ +void wait_time(timo) struct timeval *timo; { @@ -803,31 +804,6 @@ get_idle_time(u, ip) } -/* - * set_filters - transfer the pass and active filters to the kernel. - */ -int -set_filters(pass, active) - struct bpf_program *pass, *active; -{ - int ret = 1; - - if (pass->bf_len > 0) { - if (ioctl(ppp_fd, PPPIOCSPASS, pass) < 0) { - syslog(LOG_ERR, "Couldn't set pass-filter in kernel: %m"); - ret = 0; - } - } - if (active->bf_len > 0) { - if (ioctl(ppp_fd, PPPIOCSACTIVE, active) < 0) { - syslog(LOG_ERR, "Couldn't set active-filter in kernel: %m"); - ret = 0; - } - } - return ret; -} - - /* * sifvjcomp - config tcp header compression */