Home
last modified time | relevance | path

Searched refs:fcode (Results 1 – 5 of 5) sorted by relevance

/mOS-networking-stack/core/src/bpf/
H A Dmain.c12 struct sfbpf_program fcode; in main() local
19 if (sfbpf_compile(1514, DLT_EN10MB, &fcode, filter, 1, 0) < 0) { in main()
24 if (fcode.bf_insns && sfbpf_filter(fcode.bf_insns, data, len, len) == 0) { in main()
28 sfbpf_freecode(&fcode); in main()
/mOS-networking-stack/core/src/
H A Dtcp.c33 struct sfbpf_program fcode; in DetectStreamType() local
49 fcode = walk->stream_syn_fcode; in DetectStreamType()
50 if (!(ISSET_BPFFILTER(fcode) && pctx && in DetectStreamType()
51 EVAL_BPFFILTER(fcode, (uint8_t *)pctx->p.iph - sizeof(struct ethhdr), in DetectStreamType()
481 struct sfbpf_program fcode; in ProcessInTCPPacket() local
489 fcode = walk->stream_orphan_fcode; in ProcessInTCPPacket()
490 if (!(ISSET_BPFFILTER(fcode) && pctx && in ProcessInTCPPacket()
491 EVAL_BPFFILTER(fcode, (uint8_t *)pctx->p.iph - sizeof(struct ethhdr), in ProcessInTCPPacket()
H A Devent_callback.c600 struct sfbpf_program fcode; in HandleCallback() local
643 fcode = MLSNR(socket)->stream_orphan_fcode; in HandleCallback()
645 if (ISSET_BPFFILTER(fcode) && pctx && EVAL_BPFFILTER(fcode, in HandleCallback()
651 fcode = MLSNR(socket)->raw_pkt_fcode; in HandleCallback()
653 if (ISSET_BPFFILTER(fcode) && pctx && EVAL_BPFFILTER(fcode, in HandleCallback()
H A Dscalable_event.c1027 struct sfbpf_program fcode; in HandleCallback() local
1067 fcode = MLSNR(socket)->stream_orphan_fcode; in HandleCallback()
1069 if (ISSET_BPFFILTER(fcode) && pctx && EVAL_BPFFILTER(fcode, in HandleCallback()
1075 fcode = MLSNR(socket)->raw_pkt_fcode; in HandleCallback()
1077 if (ISSET_BPFFILTER(fcode) && pctx && EVAL_BPFFILTER(fcode, in HandleCallback()
H A Dapi.c952 eval_bpf_5tuple(struct sfbpf_program fcode, in eval_bpf_5tuple() argument
976 return EVAL_BPFFILTER(fcode, (uint8_t *)iph - sizeof(struct ethhdr), in eval_bpf_5tuple()
994 struct sfbpf_program fcode; in mtcp_connect() local
1086 fcode = walk->stream_syn_fcode; in mtcp_connect()
1087 if (!(ISSET_BPFFILTER(fcode) && in mtcp_connect()
1088 eval_bpf_5tuple(fcode, socket->saddr.sin_addr.s_addr, in mtcp_connect()