From owner-freebsd-pf@FreeBSD.ORG Sun Dec 19 14:28:12 2004 Return-Path: Delivered-To: freebsd-pf@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 45DBA16A4CE for ; Sun, 19 Dec 2004 14:28:12 +0000 (GMT) Received: from smtp02.net-yan.com (smtp02.hgcbroadband.com [210.0.255.157]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0FD3143D31 for ; Sun, 19 Dec 2004 14:28:11 +0000 (GMT) (envelope-from sam.wun@authtec.com) Received: (qmail 40281 invoked from network); 19 Dec 2004 14:28:09 -0000 Received: from unknown (HELO [192.168.4.70]) (samwun@hgcbroadband.com@[221.126.236.217]) (envelope-sender ) by localhost (qmail-ldap-1.03) with SMTP for ; 19 Dec 2004 14:28:09 -0000 Message-ID: <41C58FCE.8070609@authtec.com> Date: Sun, 19 Dec 2004 22:27:26 +0800 From: sam wun User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040616 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Max Laier References: <41C3B6CE.4080704@authtec.com> <200412181714.51674.max@love2party.net> <41C5097B.5020606@authtec.com> <200412190633.24331.max@love2party.net> In-Reply-To: <200412190633.24331.max@love2party.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-pf@freebsd.org Subject: PFDEV Device busy X-BeenThere: freebsd-pf@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical discussion and general questions about packet filter (pf) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 19 Dec 2004 14:28:12 -0000 Hi, I know this is going to be difficult to help, anyway I'll give it a shoot to see if any can help me out... I tried to incorporate DIOCADDRULE in this plugins by making 2 different changes: //rule.action = PF_CHANGE_GET_TICKET; rule.action = PF_RULESET_FILTER; //if(ioctl(pfdev, DIOCCHANGERULE, &rule)<0) if(ioctl(pfdev, DIOCADDRULE, &rule)<0) { snprintf(msg, sizeof(msg) - 1, "Error: DIOCADDRULE 1 (auto=1) : %s. PF plugin disabled.", strerror(errno)); .... } By executing the program, I got the following error message: Error: DIOCADDRULE 1: Device busy. PF plugin disabled. I m not sure how to debug this error. Any idea? Thanks Sam