From owner-freebsd-current Thu Sep 19 00:42:30 1996 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id AAA23656 for current-outgoing; Thu, 19 Sep 1996 00:42:30 -0700 (PDT) Received: from citrine.cyberstation.net (hannibal@citrine.cyberstation.net [205.167.0.5]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id AAA23638 for ; Thu, 19 Sep 1996 00:42:27 -0700 (PDT) Received: from localhost (hannibal@localhost) by citrine.cyberstation.net (8.6.12/8.6.12) with SMTP id CAA02054 for ; Thu, 19 Sep 1996 02:42:26 -0500 Date: Thu, 19 Sep 1996 02:42:26 -0500 (CDT) From: Dan Walters To: freebsd-current@freebsd.org Subject: patch for ijppp... Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-current@freebsd.org X-Loop: FreeBSD.org Precedence: bulk ppp won't let you set a filter like "set ifilter 0 tcp estab", you have to specify a port relation of some sort or it just ignores the whole line. Here's a one-liner that seems to fix it... *** usr.sbin/ppp/filter.c.orig Thu Sep 19 02:37:53 1996 --- usr.sbin/ppp/filter.c Thu Sep 19 02:40:04 1996 *************** *** 206,212 **** filterdata.opt.srcop = filterdata.opt.dstop = A_NONE; return(1); } ! if (argc < 3) { #ifdef notdef printf("bad udp syntax.\n"); #endif --- 206,212 ---- filterdata.opt.srcop = filterdata.opt.dstop = A_NONE; return(1); } ! if ((argc < 3) && (argc != 1 || !STREQ(*argv, "estab"))) { #ifdef notdef printf("bad udp syntax.\n"); #endif ====================================================================== Dan Walters hannibal@cyberstation.net ======================================================================