if_set_bpf_tap
if_set_bpf_tap
- Subject: if_set_bpf_tap
- From: Samuel Lellouche <email@hidden>
- Date: Sun, 10 Mar 2002 03:40:59 +0100
Hi..
Has anyone managed to use the if_set_bpf_tap function documented in
Network Kernel Extension ?
Here is what I got when i try to load a network kext i'm developping.
(I'm on OSX 10.1.3)
[g4:~sam/OSX-PF] root# more OSX_PF.c
#include <gen.h>
#include <sys/systm.h>
#include <mach/mach_types.h>
kern_return_t OSX_PF_start (kmod_info_t * ki, void * d)
{
int test;
printf("Module has loaded!\n");
test = 0;
if_set_bpf_tap(test,test,test);
return KERN_SUCCESS;
}
kern_return_t OSX_PF_stop (kmod_info_t * ki, void * d)
{
printf("Module will be unloaded\n");
return KERN_SUCCESS;
}
[g4:~sam/OSX-PF] root# kextload build/OSX-PF.kext
kmodload: kld(): kmodload: Undefined symbols:kmodload:
kmodload: _if_set_bpf_tap
kmodload: kld_load() failed.Error loading module: kmod load error.
[g4:~sam/OSX-PF] root#
Thanx for any help.
--
Samuel Lellouche - Omatis
Expert Systhmes, riseaux et securiti
E-mail: email@hidden
Tel: 01 53 14 59 14 / 01 53 14 59 31
_______________________________________________
darwin-kernel mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/darwin-kernel
Do not post admin requests to the list. They will be ignored.