From: Eivind Næss Date: Tue, 20 Jul 2021 08:19:39 +0000 (-0700) Subject: Removing dead code per review by James Carlson X-Git-Tag: ppp-2.5.0~66^2~4 X-Git-Url: http://git.ozlabs.org/?a=commitdiff_plain;h=75f1f5fde9fa6a64d0c35af6dfac5086a0739334;p=ppp.git Removing dead code per review by James Carlson Signed-off-by: Eivind Næss --- 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,