ClientCollectors/ARODataCollector/external/libpcap-1.1.1/gencode.c
static struct slist *
gen_llprefixlen(void)
{
	switch (linktype) {

	case DLT_PRISM_HEADER:
		return gen_prism_llprefixlen();

	case DLT_IEEE802_11_RADIO_AVS:
		return gen_avs_llprefixlen();

	case DLT_IEEE802_11_RADIO:
		return gen_radiotap_llprefixlen();

	case DLT_PPI:
		return gen_ppi_llprefixlen();

	default:
		return NULL;
	}
}
/*
 * Generate code to compute the link-layer header length, if necessary,
 * putting it into the X register, and to return either a pointer to a
 * "struct slist" for the list of statements in that code, or NULL if
 * no code is necessary.
 */
Generate code to compute the link-layer header length, if necessary,
putting it into the X register, and to return either a pointer to a
"struct slist" for the list of statements in that code, or NULL if
no code is necessary.
Generate code to compute the link - layer header length if necessary putting it into the X register and to return either a pointer to a " struct slist " for the list of statements in that code or NULL if no code is necessary .
static struct slist *
gen_llprefixlen(void)
{
	switch (linktype) {
	case DLT_PRISM_HEADER:
		return gen_prism_llprefixlen();
	case DLT_IEEE802_11_RADIO_AVS:
		return gen_avs_llprefixlen();
	case DLT_IEEE802_11_RADIO:
		return gen_radiotap_llprefixlen();
	case DLT_PPI:
		return gen_ppi_llprefixlen();
	default:
		return NULL;
	}
}
static struct slist * gen_llprefixlen ( void ) { switch ( linktype ) { case DLT_PRISM_HEADER : return gen_prism_llprefixlen ( ) ; case DLT_IEEE802_11_RADIO_AVS : return gen_avs_llprefixlen ( ) ; case DLT_IEEE802_11_RADIO : return gen_radiotap_llprefixlen ( ) ; case DLT_PPI : return gen_ppi_llprefixlen ( ) ; default : return NULL ; } }
Generate code to compute the link-layer header length, if necessary,
 putting it into the X register, and to return either a pointer to a
 "struct slist" for the list of statements in that code, or NULL if
 no code is necessary.
Generate code to compute the link - layer header length if necessary putting it into the X register and to return either a pointer to a " struct slist " for the list of statements in that code or NULL if no code is necessary .