On Wed, Aug 30, 2006 at 06:01:10PM +0530, Rajkumar S wrote:
R> and messaging the bpf: using the following code fragment.
R> 
R>        if (NgSendMsg(cfd, "bpf:", NGM_GENERIC_COOKIE,
R>                      NGM_BPF_SET_PROGRAM, bpf_hookprog, (sizeof
R> (struct ng_bpf_hookprog) + fp.bf_len * sizeof (struct bpf_insn))) < 0)
R> {
R>                perror ("Setup bpf program");
R>                return (-1);
R>        }

The cookie shouldn't be NGM_GENERIC_COOKIE, but should be NGM_BPF_COOKIE.

-- 
Totus tuus, Glebius.
GLEBIUS-RIPN GLEB-RIPE
_______________________________________________
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to