Lines Matching refs:code
7 * modification, are permitted provided that: (1) source code distributions
9 * distributions including binary code include the above copyright notice and
302 * A strdup whose allocations are freed after code generation is over.
316 new_block(code)
317 int code;
322 p->s.code = code;
329 new_stmt(code)
330 int code;
335 p->s.code = code;
400 (root->s.code == (BPF_RET|BPF_K) && root->s.k == 0))
682 * Various code constructs need to know the layout of the data link
699 * code to compute that offset; off_ll is 0 in that case.)
739 * code that assumes LANE rather than LLC-encapsulated traffic in SunATM.
921 * XXX - should we generate code to check for SNAP?
942 * XXX - should we generate code to check for SNAP?
949 * values are 20 and 22, as they are in the vanilla code.
971 * XXX - should we generate code to check for SNAP?
1024 * have to check the header in the generated code to
1037 * the code at the beginning to compute the header length.
1038 * Since this code generator of PPI supports bare 802.11
1040 * DLT_IEEE802_11) we generate code to check for this too.
1050 * generate code to compute its length and store it
1124 * XXX - should we generate code to check for SNAP? RFC
1335 * If "s" is non-null, it has code to arrange that the X register
1430 * Generate code to load into the X register the sum of the length of
1518 * Generate code to match a particular packet type.
1581 * XXX - should we generate the same code both
1586 * This generates code to check both for the
1596 * Now we add code to check for SNAP frames with
1603 * Now we generate code to check for 802.3
1644 * SNAP packets with an organization code of
1649 * SNAP packets with an organization code of
1702 * Generate code to match a particular packet type.
1805 * SNAP packets with an organization code of
1810 * SNAP packets with an organization code of
1870 * Prepend to the statements in this block code to load the
1930 * the code at the beginning to compute the header length.
1931 * Since this code generator of PPI supports bare 802.11
1933 code to check for this too.
1942 * Prepend to the statements in this block code to load the
2035 * the code at the beginning to compute the header length.
2036 * Since this code generator of PPI supports bare 802.11
2038 * DLT_IEEE802_11) we generate code to check for this too.
2076 * the code at the beginning to compute the header length.
2077 * Since this code generator of PPI supports bare 802.11
2079 * DLT_IEEE802_11) we generate code to check for this too.
2106 * Generate code to compute the link-layer header length, if necessary,
2108 * "struct slist" for the list of statements in that code, or NULL if
2109 * no code is necessary.
2129 * Generate code to match a particular packet type by matching the
2426 * generate code to compare against the result.
2609 * at "off_linktype", so we don't have to do the code generation
2616 * Check for an LLC SNAP packet with a given organization code and
2620 * code and protocol type in the SNAP header.
2633 snapblock[3] = (orgcode >> 16); /* upper 8 bits of organization code */
2634 snapblock[4] = (orgcode >> 8); /* middle 8 bits of organization code */
2635 snapblock[5] = (orgcode >> 0); /* lower 8 bits of organization code */
2642 * Generate code to match a particular packet type, for link-layer types
2685 * SNAP packets with an organization code of
2689 * XXX - check for an organization code of
2712 * in a SNAP frame with an organization code of
2717 * organization code of 0x000000 (encapsulated
4167 /* gen_portrange code */
4476 no_optimize = 1; /*this code is not compatible with optimzer yet */
4737 * Generate code that checks whether the packet is a packet for protocol
4798 * generates code to check for all the OSI
5648 * If "s" is non-null, it has code to arrange that the
5697 * If "s" is non-null, it has code to arrange that the
5754 * IPv6 support, generate code to load either
5809 gen_relation(code, a0, a1, reversed)
5810 int code;
5819 if (code == BPF_JEQ) {
5821 b = new_block(JMP(code));
5825 b = new_block(BPF_JMP|code|BPF_X);
5911 gen_arth(code, a0, a1)
5912 int code;
5919 s2 = new_stmt(BPF_ALU|BPF_X|code);
6020 * would generate code appropriate to the radio header in question.
6132 * Generate code to test the low-order bit of a MAC address (that's
6515 /* PF firewall log reason code */
6665 * generates an expression tree, and a code generator that
6667 * parser or from some other parser) and generates BPF code,
6744 * to make sure higher level code generators don't try to
6813 * generates an expression tree, and a code generator that
6815 * parser or from some other parser) and generates BPF code,