ClientCollectors/ARODataCollector/external/libpcap-1.1.1/gencode.c
static struct slist *
gen_ppi_llprefixlen(void)
{
	struct slist *s;

	if (reg_off_ll == -1) {
		/*
		 * We haven't yet assigned a register for the length
		 * of the radiotap header; allocate one.
		 */
		reg_off_ll = alloc_reg();
	}

	/*
	 * Load the register containing the PPI length
	 * into the X register.
	 */
	s = new_stmt(BPF_LDX|BPF_MEM);
	s->s.k = reg_off_ll;
	return s;
}
/* 
 * At the moment we treat PPI as normal Radiotap encoded
 * packets. The difference is in the function that generates
 * the code at the beginning to compute the header length.
 * Since this code generator of PPI supports bare 802.11
 * encapsulation only (i.e. the encapsulated DLT should be
 * DLT_IEEE802_11) we generate code to check for this too.
 */
At the moment we treat PPI as normal Radiotap encoded
packets. The difference is in the function that generates
the code at the beginning to compute the header length.
Since this code generator of PPI supports bare 802.11
encapsulation only  we generate code to check for this too.
At the moment we treat PPI as normal Radiotap encoded packets . The difference is in the function that generates the code at the beginning to compute the header length . Since this code generator of PPI supports bare 802 . 11 encapsulation only we generate code to check for this too .
static struct slist *
gen_ppi_llprefixlen(void)
{
	struct slist *s;
	if (reg_off_ll == -1) {
		reg_off_ll = alloc_reg();
	}
	s = new_stmt(BPF_LDX|BPF_MEM);
	s->s.k = reg_off_ll;
	return s;
}
static struct slist * gen_ppi_llprefixlen ( void ) { struct slist * s ; if ( reg_off_ll == -1 ) { reg_off_ll = alloc_reg ( ) ; } s = new_stmt ( BPF_LDX | BPF_MEM ) ; s -> s . k = reg_off_ll ; return s ; }
At the moment we treat PPI as normal Radiotap encoded
 packets.
At the moment we treat PPI as normal Radiotap encoded packets .
/*
		 * We haven't yet assigned a register for the length
		 * of the radiotap header; allocate one.
		 */ /*
	 * Load the register containing the PPI length
	 * into the X register.
	 */