X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=pppd%2Fsys-solaris.c;h=809b506a3640d34879fd8d9be303912bc81b5caa;hb=69c516a36ddeac5fd41d4ef8879f16fd5db88266;hp=a0b1e3a11ebd13543f997f05a70ab9c71d37f17b;hpb=2883dd07101bf851e2ea368f0c04c91aea85cff2;p=ppp.git diff --git a/pppd/sys-solaris.c b/pppd/sys-solaris.c index a0b1e3a..809b506 100644 --- a/pppd/sys-solaris.c +++ b/pppd/sys-solaris.c @@ -1644,33 +1644,6 @@ get_ppp_stats(int u, struct pppd_stats *stats) return 1; } -#ifdef PPP_FILTER -/* - * set_filters - transfer the pass and active filters to the kernel. - */ -int -set_filters(struct bpf_program *pass, struct bpf_program *active) -{ - int ret = 1; - - if (pass->bf_len > 0) { - if (strioctl(pppfd, PPPIO_PASSFILT, pass, - sizeof(struct bpf_program), 0) < 0) { - error("Couldn't set pass-filter in kernel: %m"); - ret = 0; - } - } - if (active->bf_len > 0) { - if (strioctl(pppfd, PPPIO_ACTIVEFILT, active, - sizeof(struct bpf_program), 0) < 0) { - error("Couldn't set active-filter in kernel: %m"); - ret = 0; - } - } - return ret; -} -#endif - /* * ccp_fatal_error - returns 1 if decompression was disabled as a * result of an error detected after decompression of a packet,