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

	if (off_macpl_is_variable) {
		if (reg_off_macpl == -1) {
			/*
			 * We haven't yet assigned a register for the offset
			 * of the MAC-layer payload; allocate one.
			 */
			reg_off_macpl = alloc_reg();
		}

		/*
		 * Load the register containing the offset of the MAC-layer
		 * payload into the X register.
		 */
		s = new_stmt(BPF_LDX|BPF_MEM);
		s->s.k = reg_off_macpl;
		return s;
	} else {
		/*
		 * That offset isn't variable, so we don't need to
		 * generate any code.
		 */
		return NULL;
	}
}
/*
 * Generate code to load the register containing the offset of the
 * MAC-layer payload into the X register; if no register for that offset
 * has been allocated, allocate it first.
 */
Generate code to load the register containing the offset of the
MAC-layer payload into the X register; if no register for that offset
has been allocated, allocate it first.
Generate code to load the register containing the offset of the MAC - layer payload into the X register ; if no register for that offset has been allocated allocate it first .
static struct slist *
gen_off_macpl(void)
{
	struct slist *s;
	if (off_macpl_is_variable) {
		if (reg_off_macpl == -1) {
			reg_off_macpl = alloc_reg();
		}
		s = new_stmt(BPF_LDX|BPF_MEM);
		s->s.k = reg_off_macpl;
		return s;
	} else {
		return NULL;
	}
}
static struct slist * gen_off_macpl ( void ) { struct slist * s ; if ( off_macpl_is_variable ) { if ( reg_off_macpl == -1 ) { reg_off_macpl = alloc_reg ( ) ; } s = new_stmt ( BPF_LDX | BPF_MEM ) ; s -> s . k = reg_off_macpl ; return s ; } else { return NULL ; } }
Generate code to load the register containing the offset of the
 MAC-layer payload into the X register; if no register for that offset
 has been allocated, allocate it first.
Generate code to load the register containing the offset of the MAC - layer payload into the X register ; if no register for that offset has been allocated allocate it first .
/*
			 * We haven't yet assigned a register for the offset
			 * of the MAC-layer payload; allocate one.
			 */ /*
		 * Load the register containing the offset of the MAC-layer
		 * payload into the X register.
		 */ /*
		 * That offset isn't variable, so we don't need to
		 * generate any code.
		 */