• Home
  • Raw
  • Download

Lines Matching refs:compiler_state_t

438 bpf_set_error(compiler_state_t *cstate, const char *fmt, ...)  in bpf_set_error()
463 static void PCAP_NORETURN bpf_error(compiler_state_t *, const char *, ...)
468 bpf_error(compiler_state_t *cstate, const char *fmt, ...) in bpf_error()
480 static int init_linktype(compiler_state_t *, pcap_t *);
482 static void init_regs(compiler_state_t *);
483 static int alloc_reg(compiler_state_t *);
484 static void free_reg(compiler_state_t *, int);
486 static void initchunks(compiler_state_t *cstate);
487 static void *newchunk_nolongjmp(compiler_state_t *cstate, size_t);
488 static void *newchunk(compiler_state_t *cstate, size_t);
489 static void freechunks(compiler_state_t *cstate);
490 static inline struct block *new_block(compiler_state_t *cstate, int);
491 static inline struct slist *new_stmt(compiler_state_t *cstate, int);
492 static struct block *gen_retblk(compiler_state_t *cstate, int);
493 static inline void syntax(compiler_state_t *cstate);
497 static struct block *gen_cmp(compiler_state_t *, enum e_offrel, u_int,
499 static struct block *gen_cmp_gt(compiler_state_t *, enum e_offrel, u_int,
501 static struct block *gen_cmp_ge(compiler_state_t *, enum e_offrel, u_int,
503 static struct block *gen_cmp_lt(compiler_state_t *, enum e_offrel, u_int,
505 static struct block *gen_cmp_le(compiler_state_t *, enum e_offrel, u_int,
507 static struct block *gen_mcmp(compiler_state_t *, enum e_offrel, u_int,
509 static struct block *gen_bcmp(compiler_state_t *, enum e_offrel, u_int,
511 static struct block *gen_ncmp(compiler_state_t *, enum e_offrel, u_int,
513 static struct slist *gen_load_absoffsetrel(compiler_state_t *, bpf_abs_offset *,
515 static struct slist *gen_load_a(compiler_state_t *, enum e_offrel, u_int,
517 static struct slist *gen_loadx_iphdrlen(compiler_state_t *);
518 static struct block *gen_uncond(compiler_state_t *, int);
519 static inline struct block *gen_true(compiler_state_t *);
520 static inline struct block *gen_false(compiler_state_t *);
521 static struct block *gen_ether_linktype(compiler_state_t *, bpf_u_int32);
522 static struct block *gen_ipnet_linktype(compiler_state_t *, bpf_u_int32);
523 static struct block *gen_linux_sll_linktype(compiler_state_t *, bpf_u_int32);
524 static struct slist *gen_load_prism_llprefixlen(compiler_state_t *);
525 static struct slist *gen_load_avs_llprefixlen(compiler_state_t *);
526 static struct slist *gen_load_radiotap_llprefixlen(compiler_state_t *);
527 static struct slist *gen_load_ppi_llprefixlen(compiler_state_t *);
528 static void insert_compute_vloffsets(compiler_state_t *, struct block *);
529 static struct slist *gen_abs_offset_varpart(compiler_state_t *,
532 static struct block *gen_linktype(compiler_state_t *, bpf_u_int32);
533 static struct block *gen_snap(compiler_state_t *, bpf_u_int32, bpf_u_int32);
534 static struct block *gen_llc_linktype(compiler_state_t *, bpf_u_int32);
535 static struct block *gen_hostop(compiler_state_t *, bpf_u_int32, bpf_u_int32,
538 static struct block *gen_hostop6(compiler_state_t *, struct in6_addr *,
541 static struct block *gen_ahostop(compiler_state_t *, const u_char *, int);
542 static struct block *gen_ehostop(compiler_state_t *, const u_char *, int);
543 static struct block *gen_fhostop(compiler_state_t *, const u_char *, int);
544 static struct block *gen_thostop(compiler_state_t *, const u_char *, int);
545 static struct block *gen_wlanhostop(compiler_state_t *, const u_char *, int);
546 static struct block *gen_ipfchostop(compiler_state_t *, const u_char *, int);
547 static struct block *gen_dnhostop(compiler_state_t *, bpf_u_int32, int);
548 static struct block *gen_mpls_linktype(compiler_state_t *, bpf_u_int32);
549 static struct block *gen_host(compiler_state_t *, bpf_u_int32, bpf_u_int32,
552 static struct block *gen_host6(compiler_state_t *, struct in6_addr *,
556 static struct block *gen_gateway(compiler_state_t *, const u_char *,
559 static struct block *gen_ipfrag(compiler_state_t *);
560 static struct block *gen_portatom(compiler_state_t *, int, bpf_u_int32);
561 static struct block *gen_portrangeatom(compiler_state_t *, u_int, bpf_u_int32,
563 static struct block *gen_portatom6(compiler_state_t *, int, bpf_u_int32);
564 static struct block *gen_portrangeatom6(compiler_state_t *, u_int, bpf_u_int32,
566 static struct block *gen_portop(compiler_state_t *, u_int, u_int, int);
567 static struct block *gen_port(compiler_state_t *, u_int, int, int);
568 static struct block *gen_portrangeop(compiler_state_t *, u_int, u_int,
570 static struct block *gen_portrange(compiler_state_t *, u_int, u_int, int, int);
571 struct block *gen_portop6(compiler_state_t *, u_int, u_int, int);
572 static struct block *gen_port6(compiler_state_t *, u_int, int, int);
573 static struct block *gen_portrangeop6(compiler_state_t *, u_int, u_int,
575 static struct block *gen_portrange6(compiler_state_t *, u_int, u_int, int, int);
576 static int lookup_proto(compiler_state_t *, const char *, int);
577 static struct block *gen_protochain(compiler_state_t *, bpf_u_int32, int);
578 static struct block *gen_proto(compiler_state_t *, bpf_u_int32, int, int);
579 static struct slist *xfer_to_x(compiler_state_t *, struct arth *);
580 static struct slist *xfer_to_a(compiler_state_t *, struct arth *);
581 static struct block *gen_mac_multicast(compiler_state_t *, int);
582 static struct block *gen_len(compiler_state_t *, int, int);
583 static struct block *gen_check_802_11_data_frame(compiler_state_t *);
584 static struct block *gen_geneve_ll_check(compiler_state_t *cstate);
586 static struct block *gen_ppi_dlt_check(compiler_state_t *);
587 static struct block *gen_atmfield_code_internal(compiler_state_t *, int,
589 static struct block *gen_atmtype_llc(compiler_state_t *);
590 static struct block *gen_msg_abbrev(compiler_state_t *, int type);
593 initchunks(compiler_state_t *cstate) in initchunks()
605 newchunk_nolongjmp(compiler_state_t *cstate, size_t n) in newchunk_nolongjmp()
645 newchunk(compiler_state_t *cstate, size_t n) in newchunk()
658 freechunks(compiler_state_t *cstate) in freechunks()
674 sdup(compiler_state_t *cstate, const char *s) in sdup()
686 new_block(compiler_state_t *cstate, int code) in new_block()
698 new_stmt(compiler_state_t *cstate, int code) in new_stmt()
709 gen_retblk(compiler_state_t *cstate, int v) in gen_retblk()
718 syntax(compiler_state_t *cstate) in syntax()
730 compiler_state_t cstate; in pcap_compile()
950 finish_parse(compiler_state_t *cstate, struct block *p) in finish_parse()
1034 gen_cmp(compiler_state_t *cstate, enum e_offrel offrel, u_int offset, in gen_cmp()
1041 gen_cmp_gt(compiler_state_t *cstate, enum e_offrel offrel, u_int offset, in gen_cmp_gt()
1048 gen_cmp_ge(compiler_state_t *cstate, enum e_offrel offrel, u_int offset, in gen_cmp_ge()
1055 gen_cmp_lt(compiler_state_t *cstate, enum e_offrel offrel, u_int offset, in gen_cmp_lt()
1062 gen_cmp_le(compiler_state_t *cstate, enum e_offrel offrel, u_int offset, in gen_cmp_le()
1069 gen_mcmp(compiler_state_t *cstate, enum e_offrel offrel, u_int offset, in gen_mcmp()
1076 gen_bcmp(compiler_state_t *cstate, enum e_offrel offrel, u_int offset, in gen_bcmp()
1118 gen_ncmp(compiler_state_t *cstate, enum e_offrel offrel, u_int offset, in gen_ncmp()
1142 init_linktype(compiler_state_t *cstate, pcap_t *p) in init_linktype()
1739 gen_load_absoffsetrel(compiler_state_t *cstate, bpf_abs_offset *abs_offset, in gen_load_absoffsetrel()
1779 gen_load_a(compiler_state_t *cstate, enum e_offrel offrel, u_int offset, in gen_load_a()
1870 gen_loadx_iphdrlen(compiler_state_t *cstate) in gen_loadx_iphdrlen()
1925 gen_uncond(compiler_state_t *cstate, int rsense) in gen_uncond()
1939 gen_true(compiler_state_t *cstate) in gen_true()
1945 gen_false(compiler_state_t *cstate) in gen_false()
1968 gen_ether_linktype(compiler_state_t *cstate, bpf_u_int32 ll_proto) in gen_ether_linktype()
2136 gen_loopback_linktype(compiler_state_t *cstate, bpf_u_int32 ll_proto) in gen_loopback_linktype()
2175 gen_ipnet_linktype(compiler_state_t *cstate, bpf_u_int32 ll_proto) in gen_ipnet_linktype()
2203 gen_linux_sll_linktype(compiler_state_t *cstate, bpf_u_int32 ll_proto) in gen_linux_sll_linktype()
2348 gen_load_prism_llprefixlen(compiler_state_t *cstate) in gen_load_prism_llprefixlen()
2458 gen_load_avs_llprefixlen(compiler_state_t *cstate) in gen_load_avs_llprefixlen()
2498 gen_load_radiotap_llprefixlen(compiler_state_t *cstate) in gen_load_radiotap_llprefixlen()
2568 gen_load_ppi_llprefixlen(compiler_state_t *cstate) in gen_load_ppi_llprefixlen()
2634 gen_load_802_11_header_len(compiler_state_t *cstate, struct slist *s, struct slist *snext) in gen_load_802_11_header_len()
2873 insert_compute_vloffsets(compiler_state_t *cstate, struct block *b) in insert_compute_vloffsets()
2971 gen_ppi_dlt_check(compiler_state_t *cstate) in gen_ppi_dlt_check()
3010 gen_abs_offset_varpart(compiler_state_t *cstate, bpf_abs_offset *off) in gen_abs_offset_varpart()
3095 gen_prevlinkhdr_check(compiler_state_t *cstate) in gen_prevlinkhdr_check()
3141 gen_linktype(compiler_state_t *cstate, bpf_u_int32 ll_proto) in gen_linktype()
3647 gen_snap(compiler_state_t *cstate, bpf_u_int32 orgcode, bpf_u_int32 ptype) in gen_snap()
3666 gen_llc_internal(compiler_state_t *cstate) in gen_llc_internal()
3738 gen_llc(compiler_state_t *cstate) in gen_llc()
3751 gen_llc_i(compiler_state_t *cstate) in gen_llc_i()
3782 gen_llc_s(compiler_state_t *cstate) in gen_llc_s()
3808 gen_llc_u(compiler_state_t *cstate) in gen_llc_u()
3834 gen_llc_s_subtype(compiler_state_t *cstate, bpf_u_int32 subtype) in gen_llc_s_subtype()
3859 gen_llc_u_subtype(compiler_state_t *cstate, bpf_u_int32 subtype) in gen_llc_u_subtype()
3896 gen_llc_linktype(compiler_state_t *cstate, bpf_u_int32 ll_proto) in gen_llc_linktype()
3970 gen_hostop(compiler_state_t *cstate, bpf_u_int32 addr, bpf_u_int32 mask, in gen_hostop()
4035 gen_hostop6(compiler_state_t *cstate, struct in6_addr *addr, in gen_hostop6()
4111 gen_ehostop(compiler_state_t *cstate, const u_char *eaddr, int dir) in gen_ehostop()
4167 gen_fhostop(compiler_state_t *cstate, const u_char *eaddr, int dir) in gen_fhostop()
4223 gen_thostop(compiler_state_t *cstate, const u_char *eaddr, int dir) in gen_thostop()
4280 gen_wlanhostop(compiler_state_t *cstate, const u_char *eaddr, int dir) in gen_wlanhostop()
4704 gen_ipfchostop(compiler_state_t *cstate, const u_char *eaddr, int dir) in gen_ipfchostop()
4775 gen_dnhostop(compiler_state_t *cstate, bpf_u_int32 addr, int dir) in gen_dnhostop()
4876 gen_mpls_linktype(compiler_state_t *cstate, bpf_u_int32 ll_proto) in gen_mpls_linktype()
4906 gen_host(compiler_state_t *cstate, bpf_u_int32 addr, bpf_u_int32 mask, in gen_host()
5058 gen_host6(compiler_state_t *cstate, struct in6_addr *addr, in gen_host6()
5199 gen_gateway(compiler_state_t *cstate, const u_char *eaddr, in gen_gateway()
5305 gen_proto_abbrev_internal(compiler_state_t *cstate, int proto) in gen_proto_abbrev_internal()
5545 gen_proto_abbrev(compiler_state_t *cstate, int proto) in gen_proto_abbrev()
5558 gen_ipfrag(compiler_state_t *cstate) in gen_ipfrag()
5583 gen_portatom(compiler_state_t *cstate, int off, bpf_u_int32 v) in gen_portatom()
5589 gen_portatom6(compiler_state_t *cstate, int off, bpf_u_int32 v) in gen_portatom6()
5595 gen_portop(compiler_state_t *cstate, u_int port, u_int proto, int dir) in gen_portop()
5660 gen_port(compiler_state_t *cstate, u_int port, int ip_proto, int dir) in gen_port()
5706 gen_portop6(compiler_state_t *cstate, u_int port, u_int proto, int dir) in gen_portop6()
5745 gen_port6(compiler_state_t *cstate, u_int port, int ip_proto, int dir) in gen_port6()
5776 gen_portrangeatom(compiler_state_t *cstate, u_int off, bpf_u_int32 v1, in gen_portrangeatom()
5801 gen_portrangeop(compiler_state_t *cstate, u_int port1, u_int port2, in gen_portrangeop()
5867 gen_portrange(compiler_state_t *cstate, u_int port1, u_int port2, int ip_proto, in gen_portrange()
5899 gen_portrangeatom6(compiler_state_t *cstate, u_int off, bpf_u_int32 v1, in gen_portrangeatom6()
5924 gen_portrangeop6(compiler_state_t *cstate, u_int port1, u_int port2, in gen_portrangeop6()
5964 gen_portrange6(compiler_state_t *cstate, u_int port1, u_int port2, int ip_proto, in gen_portrange6()
5996 lookup_proto(compiler_state_t *cstate, const char *name, int proto) in lookup_proto()
6047 gen_protochain(compiler_state_t *cstate, bpf_u_int32 v, int proto) in gen_protochain()
6349 gen_check_802_11_data_frame(compiler_state_t *cstate) in gen_check_802_11_data_frame()
6384 gen_proto(compiler_state_t *cstate, bpf_u_int32 v, int proto, int dir) in gen_proto()
6644 gen_scode(compiler_state_t *cstate, const char *name, struct qual q) in gen_scode()
6954 gen_mcode(compiler_state_t *cstate, const char *s1, const char *s2, in gen_mcode()
7012 gen_ncode(compiler_state_t *cstate, const char *s, bpf_u_int32 v, struct qual q) in gen_ncode()
7132 gen_mcode6(compiler_state_t *cstate, const char *s1, const char *s2, in gen_mcode6()
7197 gen_ecode(compiler_state_t *cstate, const char *s, struct qual q) in gen_ecode()
7264 xfer_to_x(compiler_state_t *cstate, struct arth *a) in xfer_to_x()
7274 xfer_to_a(compiler_state_t *cstate, struct arth *a) in xfer_to_a()
7291 gen_load_internal(compiler_state_t *cstate, int proto, struct arth *inst, in gen_load_internal()
7567 gen_load(compiler_state_t *cstate, int proto, struct arth *inst, in gen_load()
7581 gen_relation_internal(compiler_state_t *cstate, int code, struct arth *a0, in gen_relation_internal()
7625 gen_relation(compiler_state_t *cstate, int code, struct arth *a0, in gen_relation()
7639 gen_loadlen(compiler_state_t *cstate) in gen_loadlen()
7664 gen_loadi_internal(compiler_state_t *cstate, bpf_u_int32 val) in gen_loadi_internal()
7685 gen_loadi(compiler_state_t *cstate, bpf_u_int32 val) in gen_loadi()
7703 gen_neg(compiler_state_t *cstate, struct arth *a_arg) in gen_neg()
7733 gen_arth(compiler_state_t *cstate, int code, struct arth *a0_arg, in gen_arth()
7786 init_regs(compiler_state_t *cstate) in init_regs()
7796 alloc_reg(compiler_state_t *cstate) in alloc_reg()
7817 free_reg(compiler_state_t *cstate, int n) in free_reg()
7823 gen_len(compiler_state_t *cstate, int jmp, int n) in gen_len()
7837 gen_greater(compiler_state_t *cstate, int n) in gen_greater()
7853 gen_less(compiler_state_t *cstate, int n) in gen_less()
7881 gen_byteop(compiler_state_t *cstate, int op, int idx, bpf_u_int32 val) in gen_byteop()
7927 gen_broadcast(compiler_state_t *cstate, int proto) in gen_broadcast()
7999 gen_mac_multicast(compiler_state_t *cstate, int offset) in gen_mac_multicast()
8013 gen_multicast(compiler_state_t *cstate, int proto) in gen_multicast()
8197 gen_ifindex(compiler_state_t *cstate, int ifindex) in gen_ifindex()
8253 gen_inbound(compiler_state_t *cstate, int dir) in gen_inbound()
8402 gen_pf_ifname(compiler_state_t *cstate, const char *ifname) in gen_pf_ifname()
8432 gen_pf_ruleset(compiler_state_t *cstate, char *ruleset) in gen_pf_ruleset()
8461 gen_pf_rnr(compiler_state_t *cstate, int rnr) in gen_pf_rnr()
8484 gen_pf_srnr(compiler_state_t *cstate, int srnr) in gen_pf_srnr()
8507 gen_pf_reason(compiler_state_t *cstate, int reason) in gen_pf_reason()
8530 gen_pf_action(compiler_state_t *cstate, int action) in gen_pf_action()
8552 gen_pf_ifname(compiler_state_t *cstate, const char *ifname _U_) in gen_pf_ifname()
8566 gen_pf_ruleset(compiler_state_t *cstate, char *ruleset _U_) in gen_pf_ruleset()
8580 gen_pf_rnr(compiler_state_t *cstate, int rnr _U_) in gen_pf_rnr()
8594 gen_pf_srnr(compiler_state_t *cstate, int srnr _U_) in gen_pf_srnr()
8608 gen_pf_reason(compiler_state_t *cstate, int reason _U_) in gen_pf_reason()
8622 gen_pf_action(compiler_state_t *cstate, int action _U_) in gen_pf_action()
8638 gen_p80211_type(compiler_state_t *cstate, bpf_u_int32 type, bpf_u_int32 mask) in gen_p80211_type()
8667 gen_p80211_fcdir(compiler_state_t *cstate, bpf_u_int32 fcdir) in gen_p80211_fcdir()
8698 gen_acode(compiler_state_t *cstate, const char *s, struct qual q) in gen_acode()
8733 gen_ahostop(compiler_state_t *cstate, const u_char *eaddr, int dir) in gen_ahostop()
8787 gen_vlan_tpid_test(compiler_state_t *cstate) in gen_vlan_tpid_test()
8803 gen_vlan_vid_test(compiler_state_t *cstate, bpf_u_int32 vlan_num) in gen_vlan_vid_test()
8813 gen_vlan_no_bpf_extensions(compiler_state_t *cstate, bpf_u_int32 vlan_num, in gen_vlan_no_bpf_extensions()
8839 gen_vlan_vloffset_add(compiler_state_t *cstate, bpf_abs_offset *off, in gen_vlan_vloffset_add()
8865 gen_vlan_patch_tpid_test(compiler_state_t *cstate, struct block *b_tpid) in gen_vlan_patch_tpid_test()
8885 gen_vlan_patch_vid_test(compiler_state_t *cstate, struct block *b_vid) in gen_vlan_patch_vid_test()
8929 gen_vlan_bpf_extensions(compiler_state_t *cstate, bpf_u_int32 vlan_num, in gen_vlan_bpf_extensions()
8976 gen_vlan(compiler_state_t *cstate, bpf_u_int32 vlan_num, int has_vlan_tag) in gen_vlan()
9074 gen_mpls(compiler_state_t *cstate, bpf_u_int32 label_num_arg, in gen_mpls()
9156 gen_pppoed(compiler_state_t *cstate) in gen_pppoed()
9170 gen_pppoes(compiler_state_t *cstate, bpf_u_int32 sess_num, int has_sess_num) in gen_pppoes()
9231 gen_geneve_check(compiler_state_t *cstate, in gen_geneve_check()
9232 struct block *(*gen_portfn)(compiler_state_t *, u_int, int, int), in gen_geneve_check() argument
9266 gen_geneve4(compiler_state_t *cstate, bpf_u_int32 vni, int has_vni) in gen_geneve4()
9292 gen_geneve6(compiler_state_t *cstate, bpf_u_int32 vni, int has_vni) in gen_geneve6()
9335 gen_geneve_offsets(compiler_state_t *cstate) in gen_geneve_offsets()
9470 gen_geneve(compiler_state_t *cstate, bpf_u_int32 vni, int has_vni) in gen_geneve()
9507 gen_geneve_ll_check(compiler_state_t *cstate) in gen_geneve_ll_check()
9534 gen_atmfield_code_internal(compiler_state_t *cstate, int atmfield, in gen_atmfield_code_internal()
9589 gen_atmtype_metac(compiler_state_t *cstate) in gen_atmtype_metac()
9600 gen_atmtype_sc(compiler_state_t *cstate) in gen_atmtype_sc()
9611 gen_atmtype_llc(compiler_state_t *cstate) in gen_atmtype_llc()
9621 gen_atmfield_code(compiler_state_t *cstate, int atmfield, in gen_atmfield_code()
9636 gen_atmtype_abbrev(compiler_state_t *cstate, int type) in gen_atmtype_abbrev()
9743 gen_mtp2type_abbrev(compiler_state_t *cstate, int type) in gen_mtp2type_abbrev()
9830 gen_mtp3field_code(compiler_state_t *cstate, int mtp3field, in gen_mtp3field_code()
9940 gen_msg_abbrev(compiler_state_t *cstate, int type) in gen_msg_abbrev()
9981 gen_atmmulti_abbrev(compiler_state_t *cstate, int type) in gen_atmmulti_abbrev()