コード例 #1
0
ファイル: ieee80211_monitor.c プロジェクト: Alkzndr/freebsd
/*
 * Process a received frame in monitor mode.
 */
static int
monitor_input(struct ieee80211_node *ni, struct mbuf *m, int rssi, int nf)
{
	struct ieee80211vap *vap = ni->ni_vap;
	struct ifnet *ifp = vap->iv_ifp;

	if_inc_counter(ifp, IFCOUNTER_IPACKETS, 1);

	if (ieee80211_radiotap_active_vap(vap))
		ieee80211_radiotap_rx(vap, m);
	m_freem(m);
	return -1;
}
コード例 #2
0
/*
 * Process a received frame in monitor mode.
 */
static int
monitor_input(struct ieee80211_node *ni, struct mbuf *m, int rssi, int nf)
{
    struct ieee80211vap *vap = ni->ni_vap;
    struct ifnet *ifp = vap->iv_ifp;

    IFNET_STAT_INC(ifp, ipackets, 1);

    if (ieee80211_radiotap_active_vap(vap))
        ieee80211_radiotap_rx(vap, m);
    m_freem(m);
    return -1;
}