Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Dec 2004 22:27:26 +0800
From:      sam wun <sam.wun@authtec.com>
To:        Max Laier <max@love2party.net>
Cc:        freebsd-pf@freebsd.org
Subject:   PFDEV Device busy
Message-ID:  <41C58FCE.8070609@authtec.com>
In-Reply-To: <200412190633.24331.max@love2party.net>
References:  <41C3B6CE.4080704@authtec.com> <200412181714.51674.max@love2party.net> <41C5097B.5020606@authtec.com> <200412190633.24331.max@love2party.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?41C58FCE.8070609>