Lines Matching refs:block
153 static __thread struct block *root;
202 static inline struct block *new_block(int);
204 static struct block *gen_retblk(int);
207 static void backpatch(struct block *, struct block *);
208 static void merge(struct block *, struct block *);
209 static struct block *gen_cmp(enum e_offrel, u_int, u_int, bpf_int32);
210 static struct block *gen_cmp_gt(enum e_offrel, u_int, u_int, bpf_int32);
211 static struct block *gen_cmp_ge(enum e_offrel, u_int, u_int, bpf_int32);
212 static struct block *gen_cmp_lt(enum e_offrel, u_int, u_int, bpf_int32);
213 static struct block *gen_cmp_le(enum e_offrel, u_int, u_int, bpf_int32);
214 static struct block *gen_mcmp(enum e_offrel, u_int, u_int, bpf_int32, bpf_u_int32);
215 static struct block *gen_bcmp(enum e_offrel, u_int, u_int, const u_char *);
216 static struct block *gen_ncmp(enum e_offrel, bpf_u_int32, bpf_u_int32,
222 static struct block *gen_uncond(int);
223 static inline struct block *gen_true(void);
224 static inline struct block *gen_false(void);
225 static struct block *gen_ether_linktype(int);
226 static struct block *gen_ipnet_linktype(int);
227 static struct block *gen_linux_sll_linktype(int);
232 static void insert_compute_vloffsets(struct block *);
236 static struct block *gen_linktype(int);
237 static struct block *gen_snap(bpf_u_int32, bpf_u_int32);
238 static struct block *gen_llc_linktype(int);
239 static struct block *gen_hostop(bpf_u_int32, bpf_u_int32, int, int, u_int, u_int);
241 static struct block *gen_hostop6(struct in6_addr *, struct in6_addr *, int, int, u_int, u_int);
243 static struct block *gen_ahostop(const u_char *, int);
244 static struct block *gen_ehostop(const u_char *, int);
245 static struct block *gen_fhostop(const u_char *, int);
246 static struct block *gen_thostop(const u_char *, int);
247 static struct block *gen_wlanhostop(const u_char *, int);
248 static struct block *gen_ipfchostop(const u_char *, int);
249 static struct block *gen_dnhostop(bpf_u_int32, int);
250 static struct block *gen_mpls_linktype(int);
251 static struct block *gen_host(bpf_u_int32, bpf_u_int32, int, int, int);
253 static struct block *gen_host6(struct in6_addr *, struct in6_addr *, int, int, int);
256 static struct block *gen_gateway(const u_char *, bpf_u_int32 **, int, int);
258 static struct block *gen_ipfrag(void);
259 static struct block *gen_portatom(int, bpf_int32);
260 static struct block *gen_portrangeatom(int, bpf_int32, bpf_int32);
262 static struct block *gen_portatom6(int, bpf_int32);
263 static struct block *gen_portrangeatom6(int, bpf_int32, bpf_int32);
265 struct block *gen_portop(int, int, int);
266 static struct block *gen_port(int, int, int);
267 struct block *gen_portrangeop(int, int, int, int);
268 static struct block *gen_portrange(int, int, int, int);
270 struct block *gen_portop6(int, int, int);
271 static struct block *gen_port6(int, int, int);
272 struct block *gen_portrangeop6(int, int, int, int);
273 static struct block *gen_portrange6(int, int, int, int);
276 static struct block *gen_protochain(int, int, int);
277 static struct block *gen_proto(int, int, int);
280 static struct block *gen_mac_multicast(int);
281 static struct block *gen_len(int, int);
282 static struct block *gen_check_802_11_data_frame(void);
284 static struct block *gen_ppi_dlt_check(void);
285 static struct block *gen_msg_abbrev(int type);
347 static inline struct block *new_block(code) in new_block()
350 struct block *p;
352 p = (struct block *) newchunk(sizeof(*p));
370 static struct block *gen_retblk(v) in gen_retblk()
373 struct block *b = new_block(BPF_RET | BPF_K);
466 struct block *list, *target; in backpatch()
468 struct block *next;
491 struct block *b0, *b1; in merge()
493 register struct block **p = &b0;
504 struct block *p; in finish_parse()
506 struct block *ppi_dlt_check;
544 struct block *b0, *b1; in gen_and()
555 struct block *b0, *b1; in gen_or()
565 struct block *b; in gen_not()
570 static struct block *gen_cmp(offrel, offset, size, v) in gen_cmp()
578 static struct block *gen_cmp_gt(offrel, offset, size, v) in gen_cmp_gt()
586 static struct block *gen_cmp_ge(offrel, offset, size, v) in gen_cmp_ge()
594 static struct block *gen_cmp_lt(offrel, offset, size, v) in gen_cmp_lt()
602 static struct block *gen_cmp_le(offrel, offset, size, v) in gen_cmp_le()
610 static struct block *gen_mcmp(offrel, offset, size, v, mask) in gen_mcmp()
619 static struct block *gen_bcmp(offrel, offset, size, v) in gen_bcmp()
624 register struct block *b, *tmp;
665 static struct block *gen_ncmp(offrel, offset, size, mask, jtype, reverse, v) in gen_ncmp()
672 struct block *b;
1758 static struct block *gen_uncond(rsense) in gen_uncond()
1761 struct block *b;
1772 static inline struct block *gen_true() in gen_true()
1777 static inline struct block *gen_false() in gen_false()
1799 static struct block *gen_ether_linktype(proto) in gen_ether_linktype()
1802 struct block *b0, *b1;
1975 static struct block *gen_ipnet_linktype(proto) in gen_ipnet_linktype()
2004 static struct block *gen_linux_sll_linktype(proto) in gen_linux_sll_linktype()
2007 struct block *b0, *b1;
2659 struct block *b; in insert_compute_vloffsets()
2723 static struct block *gen_ppi_dlt_check(void) in gen_ppi_dlt_check()
2726 struct block *b; in gen_ppi_dlt_check()
2968 static struct block *gen_linktype(proto) in gen_linktype()
2971 struct block *b0, *b1, *b2;
3496 static struct block *gen_snap(orgcode, ptype) in gen_snap()
3525 static struct block *gen_llc_linktype(proto) in gen_llc_linktype()
3603 static struct block *gen_hostop(addr, mask, dir, proto, src_off, dst_off) in gen_hostop()
3609 struct block *b0, *b1;
3646 static struct block *gen_hostop6(addr, mask, dir, proto, src_off, dst_off) in gen_hostop6()
3652 struct block *b0, *b1;
3699 static struct block *gen_ehostop(eaddr, dir) in gen_ehostop()
3703 register struct block *b0, *b1;
3733 static struct block *gen_fhostop(eaddr, dir) in gen_fhostop()
3737 struct block *b0, *b1;
3775 static struct block *gen_thostop(eaddr, dir) in gen_thostop()
3779 register struct block *b0, *b1;
3810 static struct block *gen_wlanhostop(eaddr, dir) in gen_wlanhostop()
3814 register struct block *b0, *b1, *b2;
4160 static struct block *gen_ipfchostop(eaddr, dir) in gen_ipfchostop()
4164 register struct block *b0, *b1;
4209 static struct block *gen_dnhostop(addr, dir) in gen_dnhostop()
4213 struct block *b0, *b1, *b2, *tmp;
4282 static struct block *gen_mpls_linktype(proto) in gen_mpls_linktype()
4285 struct block *b0, *b1;
4311 static struct block *gen_host(addr, mask, proto, dir, type) in gen_host()
4318 struct block *b0, *b1;
4443 static struct block *gen_host6(addr, mask, proto, dir, type) in gen_host6()
4561 static struct block *gen_gateway(eaddr, alist, proto, dir) in gen_gateway()
4567 struct block *b0, *b1, *tmp;
4637 struct block *gen_proto_abbrev(proto) in gen_proto_abbrev()
4640 struct block *b0;
4641 struct block *b1;
4884 static struct block *gen_ipfrag() in gen_ipfrag()
4887 struct block *b; in gen_ipfrag()
4908 static struct block *gen_portatom(off, v) in gen_portatom()
4916 static struct block *gen_portatom6(off, v) in gen_portatom6()
4924 struct block *gen_portop(port, proto, dir) in gen_portop()
4927 struct block *b0, *b1, *tmp;
4965 static struct block *gen_port(port, ip_proto, dir) in gen_port()
4970 struct block *b0, *b1, *tmp;
5015 struct block *gen_portop6(port, proto, dir) in gen_portop6()
5018 struct block *b0, *b1, *tmp;
5054 static struct block *gen_port6(port, ip_proto, dir) in gen_port6()
5059 struct block *b0, *b1, *tmp;
5089 static struct block *gen_portrangeatom(off, v1, v2) in gen_portrangeatom()
5093 struct block *b1, *b2;
5115 struct block *gen_portrangeop(port1, port2, proto, dir) in gen_portrangeop()
5120 struct block *b0, *b1, *tmp;
5158 static struct block *gen_portrange(port1, port2, ip_proto, dir) in gen_portrange()
5163 struct block *b0, *b1, *tmp;
5192 static struct block *gen_portrangeatom6(off, v1, v2) in gen_portrangeatom6()
5196 struct block *b1, *b2;
5218 struct block *gen_portrangeop6(port1, port2, proto, dir) in gen_portrangeop6()
5223 struct block *b0, *b1, *tmp;
5259 static struct block *gen_portrange6(port1, port2, ip_proto, dir) in gen_portrange6()
5264 struct block *b0, *b1, *tmp;
5339 static struct block *gen_protochain(v, proto, dir) in gen_protochain()
5347 struct block *b0, *b;
5654 static struct block *gen_check_802_11_data_frame() in gen_check_802_11_data_frame()
5657 struct block *b0, *b1; in gen_check_802_11_data_frame()
5688 static struct block *gen_proto(v, proto, dir) in gen_proto()
5693 struct block *b0, *b1;
5895 struct block *gen_scode(name, q) in gen_scode()
5913 struct block *b, *tmp;
6209 struct block *gen_mcode(s1, s2, masklen, q) in gen_mcode()
6262 struct block *gen_ncode(s, v, q) in gen_ncode()
6328 struct block *b;
6351 struct block *b;
6380 struct block *gen_mcode6(s1, s2, masklen, q) in gen_mcode6()
6388 struct block *b;
6441 struct block *gen_ecode(eaddr, q) in gen_ecode()
6445 struct block *b, *tmp;
6540 struct block *b;
6776 struct block *gen_relation(code, a0, a1, reversed) in gen_relation()
6782 struct block *b, *tmp;
6951 static struct block *gen_len(jmp, n) in gen_len()
6955 struct block *b;
6965 struct block *gen_greater(n) in gen_greater()
6974 struct block *gen_less(n) in gen_less()
6977 struct block *b;
6995 struct block *gen_byteop(op, idx, val) in gen_byteop()
6998 struct block *b;
7035 struct block *gen_broadcast(proto) in gen_broadcast()
7039 struct block *b0, *b1, *b2;
7115 static struct block *gen_mac_multicast(offset) in gen_mac_multicast()
7118 register struct block *b0;
7129 struct block *gen_multicast(proto) in gen_multicast()
7132 register struct block *b0, *b1, *b2;
7328 struct block *gen_inbound(dir) in gen_inbound()
7331 register struct block *b0;
7441 struct block *gen_pf_ifname(const char *ifname) in gen_pf_ifname()
7443 struct block *b0; in gen_pf_ifname()
7463 struct block *gen_pf_ruleset(char *ruleset) in gen_pf_ruleset()
7465 struct block *b0; in gen_pf_ruleset()
7485 struct block *gen_pf_rnr(int rnr) in gen_pf_rnr()
7487 struct block *b0; in gen_pf_rnr()
7500 struct block *gen_pf_srnr(int srnr) in gen_pf_srnr()
7502 struct block *b0; in gen_pf_srnr()
7515 struct block *gen_pf_reason(int reason) in gen_pf_reason()
7517 struct block *b0; in gen_pf_reason()
7530 struct block *gen_pf_action(int action) in gen_pf_action()
7532 struct block *b0; in gen_pf_action()
7544 struct block *gen_pf_ifname(const char *ifname) in gen_pf_ifname()
7551 struct block *gen_pf_ruleset(char *ruleset) in gen_pf_ruleset()
7558 struct block *gen_pf_rnr(int rnr) in gen_pf_rnr()
7565 struct block *gen_pf_srnr(int srnr) in gen_pf_srnr()
7572 struct block *gen_pf_reason(int reason) in gen_pf_reason()
7579 struct block *gen_pf_action(int action) in gen_pf_action()
7588 struct block *gen_p80211_type(int type, int mask) in gen_p80211_type()
7590 struct block *b0; in gen_p80211_type()
7610 struct block *gen_p80211_fcdir(int fcdir) in gen_p80211_fcdir()
7612 struct block *b0; in gen_p80211_fcdir()
7633 struct block *gen_acode(eaddr, q) in gen_acode()
7660 static struct block *gen_ahostop(eaddr, dir) in gen_ahostop()
7664 register struct block *b0, *b1;
7695 struct block *gen_vlan(vlan_num) in gen_vlan()
7698 struct block *b0, *b1;
7766 struct block *gen_mpls(label_num) in gen_mpls()
7769 struct block *b0, *b1;
7836 struct block *gen_pppoed() in gen_pppoed()
7842 struct block *gen_pppoes() in gen_pppoes()
7844 struct block *b0; in gen_pppoes()
7908 struct block *gen_atmfield_code(atmfield, jvalue, jtype, reverse) in gen_atmfield_code()
7914 struct block *b0;
7961 struct block *gen_atmtype_abbrev(type) in gen_atmtype_abbrev()
7964 struct block *b0, *b1;
8069 struct block *gen_mtp2type_abbrev(type) in gen_mtp2type_abbrev()
8072 struct block *b0, *b1;
8104 struct block *gen_mtp3field_code(mtp3field, jvalue, jtype, reverse) in gen_mtp3field_code()
8110 struct block *b0;
8177 static struct block *gen_msg_abbrev(type) in gen_msg_abbrev()
8180 struct block *b1;
8219 struct block *gen_atmmulti_abbrev(type) in gen_atmmulti_abbrev()
8222 struct block *b0, *b1;