• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-12-stable/contrib/libpcap/

Lines Matching refs:compiler_state_t

434 bpf_set_error(compiler_state_t *cstate, const char *fmt, ...)
447 static void PCAP_NORETURN bpf_error(compiler_state_t *, const char *, ...)
452 bpf_error(compiler_state_t *cstate, const char *fmt, ...)
464 static int init_linktype(compiler_state_t *, pcap_t *);
466 static void init_regs(compiler_state_t *);
467 static int alloc_reg(compiler_state_t *);
468 static void free_reg(compiler_state_t *, int);
470 static void initchunks(compiler_state_t *cstate);
471 static void *newchunk_nolongjmp(compiler_state_t *cstate, size_t);
472 static void *newchunk(compiler_state_t *cstate, size_t);
473 static void freechunks(compiler_state_t *cstate);
474 static inline struct block *new_block(compiler_state_t *cstate, int);
475 static inline struct slist *new_stmt(compiler_state_t *cstate, int);
476 static struct block *gen_retblk(compiler_state_t *cstate, int);
477 static inline void syntax(compiler_state_t *cstate);
481 static struct block *gen_cmp(compiler_state_t *, enum e_offrel, u_int,
483 static struct block *gen_cmp_gt(compiler_state_t *, enum e_offrel, u_int,
485 static struct block *gen_cmp_ge(compiler_state_t *, enum e_offrel, u_int,
487 static struct block *gen_cmp_lt(compiler_state_t *, enum e_offrel, u_int,
489 static struct block *gen_cmp_le(compiler_state_t *, enum e_offrel, u_int,
491 static struct block *gen_mcmp(compiler_state_t *, enum e_offrel, u_int,
493 static struct block *gen_bcmp(compiler_state_t *, enum e_offrel, u_int,
495 static struct block *gen_ncmp(compiler_state_t *, enum e_offrel, bpf_u_int32,
497 static struct slist *gen_load_absoffsetrel(compiler_state_t *, bpf_abs_offset *,
499 static struct slist *gen_load_a(compiler_state_t *, enum e_offrel, u_int,
501 static struct slist *gen_loadx_iphdrlen(compiler_state_t *);
502 static struct block *gen_uncond(compiler_state_t *, int);
503 static inline struct block *gen_true(compiler_state_t *);
504 static inline struct block *gen_false(compiler_state_t *);
505 static struct block *gen_ether_linktype(compiler_state_t *, int);
506 static struct block *gen_ipnet_linktype(compiler_state_t *, int);
507 static struct block *gen_linux_sll_linktype(compiler_state_t *, int);
508 static struct slist *gen_load_prism_llprefixlen(compiler_state_t *);
509 static struct slist *gen_load_avs_llprefixlen(compiler_state_t *);
510 static struct slist *gen_load_radiotap_llprefixlen(compiler_state_t *);
511 static struct slist *gen_load_ppi_llprefixlen(compiler_state_t *);
512 static void insert_compute_vloffsets(compiler_state_t *, struct block *);
513 static struct slist *gen_abs_offset_varpart(compiler_state_t *,
516 static struct block *gen_linktype(compiler_state_t *, int);
517 static struct block *gen_snap(compiler_state_t *, bpf_u_int32, bpf_u_int32);
518 static struct block *gen_llc_linktype(compiler_state_t *, int);
519 static struct block *gen_hostop(compiler_state_t *, bpf_u_int32, bpf_u_int32,
522 static struct block *gen_hostop6(compiler_state_t *, struct in6_addr *,
525 static struct block *gen_ahostop(compiler_state_t *, const u_char *, int);
526 static struct block *gen_ehostop(compiler_state_t *, const u_char *, int);
527 static struct block *gen_fhostop(compiler_state_t *, const u_char *, int);
528 static struct block *gen_thostop(compiler_state_t *, const u_char *, int);
529 static struct block *gen_wlanhostop(compiler_state_t *, const u_char *, int);
530 static struct block *gen_ipfchostop(compiler_state_t *, const u_char *, int);
531 static struct block *gen_dnhostop(compiler_state_t *, bpf_u_int32, int);
532 static struct block *gen_mpls_linktype(compiler_state_t *, int);
533 static struct block *gen_host(compiler_state_t *, bpf_u_int32, bpf_u_int32,
536 static struct block *gen_host6(compiler_state_t *, struct in6_addr *,
540 static struct block *gen_gateway(compiler_state_t *, const u_char *,
543 static struct block *gen_ipfrag(compiler_state_t *);
544 static struct block *gen_portatom(compiler_state_t *, int, bpf_int32);
545 static struct block *gen_portrangeatom(compiler_state_t *, int, bpf_int32,
547 static struct block *gen_portatom6(compiler_state_t *, int, bpf_int32);
548 static struct block *gen_portrangeatom6(compiler_state_t *, int, bpf_int32,
550 struct block *gen_portop(compiler_state_t *, int, int, int);
551 static struct block *gen_port(compiler_state_t *, int, int, int);
552 struct block *gen_portrangeop(compiler_state_t *, int, int, int, int);
553 static struct block *gen_portrange(compiler_state_t *, int, int, int, int);
554 struct block *gen_portop6(compiler_state_t *, int, int, int);
555 static struct block *gen_port6(compiler_state_t *, int, int, int);
556 struct block *gen_portrangeop6(compiler_state_t *, int, int, int, int);
557 static struct block *gen_portrange6(compiler_state_t *, int, int, int, int);
558 static int lookup_proto(compiler_state_t *, const char *, int);
559 static struct block *gen_protochain(compiler_state_t *, int, int, int);
560 static struct block *gen_proto(compiler_state_t *, int, int, int);
561 static struct slist *xfer_to_x(compiler_state_t *, struct arth *);
562 static struct slist *xfer_to_a(compiler_state_t *, struct arth *);
563 static struct block *gen_mac_multicast(compiler_state_t *, int);
564 static struct block *gen_len(compiler_state_t *, int, int);
565 static struct block *gen_check_802_11_data_frame(compiler_state_t *);
566 static struct block *gen_geneve_ll_check(compiler_state_t *cstate);
568 static struct block *gen_ppi_dlt_check(compiler_state_t *);
569 static struct block *gen_atmfield_code_internal(compiler_state_t *, int,
571 static struct block *gen_atmtype_llc(compiler_state_t *);
572 static struct block *gen_msg_abbrev(compiler_state_t *, int type);
575 initchunks(compiler_state_t *cstate)
587 newchunk_nolongjmp(compiler_state_t *cstate, size_t n)
627 newchunk(compiler_state_t *cstate, size_t n)
640 freechunks(compiler_state_t *cstate)
656 sdup(compiler_state_t *cstate, const char *s)
668 new_block(compiler_state_t *cstate, int code)
680 new_stmt(compiler_state_t *cstate, int code)
691 gen_retblk(compiler_state_t *cstate, int v)
700 syntax(compiler_state_t *cstate)
712 compiler_state_t cstate;
931 finish_parse(compiler_state_t *cstate, struct block *p)
1015 gen_cmp(compiler_state_t *cstate, enum e_offrel offrel, u_int offset,
1022 gen_cmp_gt(compiler_state_t *cstate, enum e_offrel offrel, u_int offset,
1029 gen_cmp_ge(compiler_state_t *cstate, enum e_offrel offrel, u_int offset,
1036 gen_cmp_lt(compiler_state_t *cstate, enum e_offrel offrel, u_int offset,
1043 gen_cmp_le(compiler_state_t *cstate, enum e_offrel offrel, u_int offset,
1050 gen_mcmp(compiler_state_t *cstate, enum e_offrel offrel, u_int offset,
1057 gen_bcmp(compiler_state_t *cstate, enum e_offrel offrel, u_int offset,
1109 gen_ncmp(compiler_state_t *cstate, enum e_offrel offrel, bpf_u_int32 offset,
1133 init_linktype(compiler_state_t *cstate, pcap_t *p)
1730 gen_load_absoffsetrel(compiler_state_t *cstate, bpf_abs_offset *abs_offset,
1770 gen_load_a(compiler_state_t *cstate, enum e_offrel offrel, u_int offset,
1861 gen_loadx_iphdrlen(compiler_state_t *cstate)
1916 gen_uncond(compiler_state_t *cstate, int rsense)
1930 gen_true(compiler_state_t *cstate)
1936 gen_false(compiler_state_t *cstate)
1959 gen_ether_linktype(compiler_state_t *cstate, int proto)
2129 gen_loopback_linktype(compiler_state_t *cstate, int proto)
2168 gen_ipnet_linktype(compiler_state_t *cstate, int proto)
2197 gen_linux_sll_linktype(compiler_state_t *cstate, int proto)
2343 gen_load_prism_llprefixlen(compiler_state_t *cstate)
2453 gen_load_avs_llprefixlen(compiler_state_t *cstate)
2493 gen_load_radiotap_llprefixlen(compiler_state_t *cstate)
2563 gen_load_ppi_llprefixlen(compiler_state_t *cstate)
2629 gen_load_802_11_header_len(compiler_state_t *cstate, struct slist *s, struct slist *snext)
2868 insert_compute_vloffsets(compiler_state_t *cstate, struct block *b)
2966 gen_ppi_dlt_check(compiler_state_t *cstate)
3005 gen_abs_offset_varpart(compiler_state_t *cstate, bpf_abs_offset *off)
3090 gen_prevlinkhdr_check(compiler_state_t *cstate)
3136 gen_linktype(compiler_state_t *cstate, int proto)
3657 gen_snap(compiler_state_t *cstate, bpf_u_int32 orgcode, bpf_u_int32 ptype)
3676 gen_llc_internal(compiler_state_t *cstate)
3748 gen_llc(compiler_state_t *cstate)
3761 gen_llc_i(compiler_state_t *cstate)
3792 gen_llc_s(compiler_state_t *cstate)
3818 gen_llc_u(compiler_state_t *cstate)
3844 gen_llc_s_subtype(compiler_state_t *cstate, bpf_u_int32 subtype)
3869 gen_llc_u_subtype(compiler_state_t *cstate, bpf_u_int32 subtype)
3906 gen_llc_linktype(compiler_state_t *cstate, int proto)
3981 gen_hostop(compiler_state_t *cstate, bpf_u_int32 addr, bpf_u_int32 mask,
4046 gen_hostop6(compiler_state_t *cstate, struct in6_addr *addr,
4121 gen_ehostop(compiler_state_t *cstate, const u_char *eaddr, int dir)
4177 gen_fhostop(compiler_state_t *cstate, const u_char *eaddr, int dir)
4233 gen_thostop(compiler_state_t *cstate, const u_char *eaddr, int dir)
4290 gen_wlanhostop(compiler_state_t *cstate, const u_char *eaddr, int dir)
4714 gen_ipfchostop(compiler_state_t *cstate, const u_char *eaddr, int dir)
4785 gen_dnhostop(compiler_state_t *cstate, bpf_u_int32 addr, int dir)
4881 gen_mpls_linktype(compiler_state_t *cstate, int proto)
4909 gen_host(compiler_state_t *cstate, bpf_u_int32 addr, bpf_u_int32 mask,
5061 gen_host6(compiler_state_t *cstate, struct in6_addr *addr,
5202 gen_gateway(compiler_state_t *cstate, const u_char *eaddr,
5308 gen_proto_abbrev_internal(compiler_state_t *cstate, int proto)
5548 gen_proto_abbrev(compiler_state_t *cstate, int proto)
5561 gen_ipfrag(compiler_state_t *cstate)
5586 gen_portatom(compiler_state_t *cstate, int off, bpf_int32 v)
5592 gen_portatom6(compiler_state_t *cstate, int off, bpf_int32 v)
5598 gen_portop(compiler_state_t *cstate, int port, int proto, int dir)
5663 gen_port(compiler_state_t *cstate, int port, int ip_proto, int dir)
5709 gen_portop6(compiler_state_t *cstate, int port, int proto, int dir)
5748 gen_port6(compiler_state_t *cstate, int port, int ip_proto, int dir)
5779 gen_portrangeatom(compiler_state_t *cstate, int off, bpf_int32 v1,
5804 gen_portrangeop(compiler_state_t *cstate, int port1, int port2, int proto,
5870 gen_portrange(compiler_state_t *cstate, int port1, int port2, int ip_proto,
5901 gen_portrangeatom6(compiler_state_t *cstate, int off, bpf_int32 v1,
5926 gen_portrangeop6(compiler_state_t *cstate, int port1, int port2, int proto,
5966 gen_portrange6(compiler_state_t *cstate, int port1, int port2, int ip_proto,
5997 lookup_proto(compiler_state_t *cstate, const char *name, int proto)
6048 gen_protochain(compiler_state_t *cstate, int v, int proto, int dir)
6339 gen_check_802_11_data_frame(compiler_state_t *cstate)
6374 gen_proto(compiler_state_t *cstate, int v, int proto, int dir)
6634 gen_scode(compiler_state_t *cstate, const char *name, struct qual q)
6944 gen_mcode(compiler_state_t *cstate, const char *s1, const char *s2,
7002 gen_ncode(compiler_state_t *cstate, const char *s, bpf_u_int32 v, struct qual q)
7122 gen_mcode6(compiler_state_t *cstate, const char *s1, const char *s2,
7187 gen_ecode(compiler_state_t *cstate, const char *s, struct qual q)
7254 xfer_to_x(compiler_state_t *cstate, struct arth *a)
7264 xfer_to_a(compiler_state_t *cstate, struct arth *a)
7281 gen_load_internal(compiler_state_t *cstate, int proto, struct arth *inst, int size)
7554 gen_load(compiler_state_t *cstate, int proto, struct arth *inst, int size)
7567 gen_relation_internal(compiler_state_t *cstate, int code, struct arth *a0,
7611 gen_relation(compiler_state_t *cstate, int code, struct arth *a0,
7625 gen_loadlen(compiler_state_t *cstate)
7650 gen_loadi_internal(compiler_state_t *cstate, int val)
7671 gen_loadi(compiler_state_t *cstate, int val)
7689 gen_neg(compiler_state_t *cstate, struct arth *a_arg)
7719 gen_arth(compiler_state_t *cstate, int code, struct arth *a0_arg,
7778 init_regs(compiler_state_t *cstate)
7788 alloc_reg(compiler_state_t *cstate)
7809 free_reg(compiler_state_t *cstate, int n)
7815 gen_len(compiler_state_t *cstate, int jmp, int n)
7829 gen_greater(compiler_state_t *cstate, int n)
7845 gen_less(compiler_state_t *cstate, int n)
7873 gen_byteop(compiler_state_t *cstate, int op, int idx, int val)
7919 gen_broadcast(compiler_state_t *cstate, int proto)
7991 gen_mac_multicast(compiler_state_t *cstate, int offset)
8005 gen_multicast(compiler_state_t *cstate, int proto)
8198 gen_inbound(compiler_state_t *cstate, int dir)
8348 gen_pf_ifname(compiler_state_t *cstate, const char *ifname)
8378 gen_pf_ruleset(compiler_state_t *cstate, char *ruleset)
8407 gen_pf_rnr(compiler_state_t *cstate, int rnr)
8430 gen_pf_srnr(compiler_state_t *cstate, int srnr)
8453 gen_pf_reason(compiler_state_t *cstate, int reason)
8476 gen_pf_action(compiler_state_t *cstate, int action)
8498 gen_pf_ifname(compiler_state_t *cstate, const char *ifname _U_)
8512 gen_pf_ruleset(compiler_state_t *cstate, char *ruleset _U_)
8526 gen_pf_rnr(compiler_state_t *cstate, int rnr _U_)
8540 gen_pf_srnr(compiler_state_t *cstate, int srnr _U_)
8554 gen_pf_reason(compiler_state_t *cstate, int reason _U_)
8568 gen_pf_action(compiler_state_t *cstate, int action _U_)
8584 gen_p80211_type(compiler_state_t *cstate, int type, int mask)
8614 gen_p80211_fcdir(compiler_state_t *cstate, int fcdir)
8645 gen_acode(compiler_state_t *cstate, const char *s, struct qual q)
8680 gen_ahostop(compiler_state_t *cstate, const u_char *eaddr, int dir)
8734 gen_vlan_tpid_test(compiler_state_t *cstate)
8750 gen_vlan_vid_test(compiler_state_t *cstate, bpf_u_int32 vlan_num)
8760 gen_vlan_no_bpf_extensions(compiler_state_t *cstate, bpf_u_int32 vlan_num,
8786 gen_vlan_vloffset_add(compiler_state_t *cstate, bpf_abs_offset *off, int v, struct slist *s)
8811 gen_vlan_patch_tpid_test(compiler_state_t *cstate, struct block *b_tpid)
8831 gen_vlan_patch_vid_test(compiler_state_t *cstate, struct block *b_vid)
8875 gen_vlan_bpf_extensions(compiler_state_t *cstate, bpf_u_int32 vlan_num,
8922 gen_vlan(compiler_state_t *cstate, bpf_u_int32 vlan_num, int has_vlan_tag)
9020 gen_mpls(compiler_state_t *cstate, bpf_u_int32 label_num_arg,
9102 gen_pppoed(compiler_state_t *cstate)
9116 gen_pppoes(compiler_state_t *cstate, bpf_u_int32 sess_num, int has_sess_num)
9178 gen_geneve_check(compiler_state_t *cstate,
9179 struct block *(*gen_portfn)(compiler_state_t *, int, int, int),
9214 gen_geneve4(compiler_state_t *cstate, bpf_u_int32 vni, int has_vni)
9240 gen_geneve6(compiler_state_t *cstate, bpf_u_int32 vni, int has_vni)
9283 gen_geneve_offsets(compiler_state_t *cstate)
9418 gen_geneve(compiler_state_t *cstate, bpf_u_int32 vni, int has_vni)
9455 gen_geneve_ll_check(compiler_state_t *cstate)
9482 gen_atmfield_code_internal(compiler_state_t *cstate, int atmfield,
9537 gen_atmtype_metac(compiler_state_t *cstate)
9548 gen_atmtype_sc(compiler_state_t *cstate)
9559 gen_atmtype_llc(compiler_state_t *cstate)
9569 gen_atmfield_code(compiler_state_t *cstate, int atmfield,
9584 gen_atmtype_abbrev(compiler_state_t *cstate, int type)
9691 gen_mtp2type_abbrev(compiler_state_t *cstate, int type)
9770 gen_mtp3field_code(compiler_state_t *cstate, int mtp3field,
9880 gen_msg_abbrev(compiler_state_t *cstate, int type)
9921 gen_atmmulti_abbrev(compiler_state_t *cstate, int type)