external_libs/bpf/bpf_api.h
static inline int
bpfjit_run(bpf_h bpfjit, const char *buffer, uint32_t len) {
    bpfjit_func_t func = (bpfjit_func_t)bpfjit;
    bpf_args_t args;
    
    args.pkt     = (const uint8_t *)buffer;
    args.buflen  = len;
    args.wirelen = len;
    
    return func(NULL, &args);
}
/**
 * execute a BPF JIT-compiled program on a buffer
 * 
 * return nonzero in case of a match
 */
execute a BPF JIT-compiled program on a buffer

return nonzero in case of a match
execute a BPF JIT - compiled program on a buffer return nonzero in case of a match
static inline int
bpfjit_run(bpf_h bpfjit, const char *buffer, uint32_t len) {
    bpfjit_func_t func = (bpfjit_func_t)bpfjit;
    bpf_args_t args;
    args.pkt     = (const uint8_t *)buffer;
    args.buflen  = len;
    args.wirelen = len;
    return func(NULL, &args);
}
static inline int bpfjit_run ( bpf_h bpfjit , const char * buffer , uint32_t len ) { bpfjit_func_t func = ( bpfjit_func_t ) bpfjit ; bpf_args_t args ; args . pkt = ( const uint8_t * ) buffer ; args . buflen = len ; args . wirelen = len ; return func ( NULL , & args ) ; }
execute a BPF JIT-compiled program on a buffer
execute a BPF JIT - compiled program on a buffer