Пример #1
0
void print_packet(struct smartconfig *sc, const struct pkthdr *h, const u_char * sp)
{
#if 0
	static u_int packets_captured = 0;
	printf("packets_captured = %u\n", packets_captured++);
#endif

	ieee802_11_radio_if_print(sc, h, sp);
}
Пример #2
0
void
hostapd_print_ieee80211(u_int dlt, u_int verbose, u_int8_t *buf, u_int len)
{
	if (verbose)
		vflag = 1;
	else
		vflag = 0;

	if (dlt == DLT_IEEE802_11)
		ieee802_11_if_print(buf, len);
	else
		ieee802_11_radio_if_print(buf, len);
}