MCPcopy Create free account
hub / github.com/F-Stack/f-stack / monitor_input

Function monitor_input

freebsd/net80211/ieee80211_monitor.c:129–142  ·  view source on GitHub ↗

* Process a received frame in monitor mode. */

Source from the content-addressed store, hash-verified

127 * Process a received frame in monitor mode.
128 */
129static int
130monitor_input(struct ieee80211_node *ni, struct mbuf *m,
131 const struct ieee80211_rx_stats *rxs, int rssi, int nf)
132{
133 struct ieee80211vap *vap = ni->ni_vap;
134 struct ifnet *ifp = vap->iv_ifp;
135
136 if_inc_counter(ifp, IFCOUNTER_IPACKETS, 1);
137
138 if (ieee80211_radiotap_active_vap(vap))
139 ieee80211_radiotap_rx(vap, m);
140 m_freem(m);
141 return -1;
142}

Callers

nothing calls this directly

Calls 4

if_inc_counterFunction · 0.85
ieee80211_radiotap_rxFunction · 0.85
m_freemFunction · 0.50

Tested by

no test coverage detected