Date: Thu, 19 Sep 1996 02:42:26 -0500 (CDT) From: Dan Walters <hannibal@cyberstation.net> To: freebsd-current@freebsd.org Subject: patch for ijppp... Message-ID: <Pine.BSI.3.95.960919023746.1943A-100000@citrine.cyberstation.net>
next in thread | raw e-mail | index | archive | help
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
======================================================================
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSI.3.95.960919023746.1943A-100000>
