Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
if_set_bpf_tap
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

if_set_bpf_tap



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.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.