/* Check for an LLC SNAP packet with a given organization code and protocol type; we check the entire contents of the 802.2 LLC and snap headers, checking for DSAP and SSAP of SNAP and a control field of 0x03 in the LLC header, and for the specified organization code and protocol type in the SNAP header.  */
static struct block * gen_snap(compiler_state_t *, bpf_u_int32, bpf_u_int32)
/* Check for an LLC SNAP packet with a given organization code and protocol type; we check the entire contents of the 802.2 LLC and snap headers, checking for DSAP and SSAP of SNAP and a control field of 0x03 in the LLC header, and for the specified organization code and protocol type in the SNAP header.  */
static struct block * gen_snap(compiler_state_t *, bpf_u_int32, bpf_u_int32)
{
	u_char snapblock[8];
	snapblock[0] = LLCSAP_SNAP;
	snapblock[1] = LLCSAP_SNAP;
	snapblock[2] = 0x03;
	snapblock[3] = (u_char)(orgcode >> 16);
	snapblock[4] = (u_char)(orgcode >> 8);
	snapblock[5] = (u_char)(orgcode >> 0);
	snapblock[6] = (u_char)(ptype >> 8);
	snapblock[7] = (u_char)(ptype >> 0);
	return gen_bcmp(cstate, OR_LLC, 0, 8, snapblock);
}