Skip to content

Commit

Permalink
add a tracker to srcr config. move pseudo-ibss.click to radiotap head…
Browse files Browse the repository at this point in the history
…ers.
  • Loading branch information
jbicket committed May 3, 2005
1 parent c39ad66 commit a555a76
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
9 changes: 8 additions & 1 deletion conf/wifi/gen_config_roofnet.pl
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,14 @@ ($)
elementclass SniffDevice {
\$device, \$promisc|
from_dev :: FromDevice(\$device, PROMISC \$promisc) -> output;
// we only want txf for NODS packets
// ether[2:2] == 0x1200 means it has an ath_rx_radiotap header (it is 18 bytes long)
// ether[2:2] == 0x1000 means it has an ath_tx_radiotap header (it is 16 bytes long)
// ether[18] == 0x08 means NODS
from_dev :: FromDevice(\$device,
BPF_FILTER "(ether[2:2] == 0x1200 and ether[18] == 0x08) or (ether[2:2] == 0x1000 and ether[16] == 0x08)",
PROMISC \$promisc)
-> output;
input -> to_dev :: ToDevice(\$device);
}
Expand Down
8 changes: 5 additions & 3 deletions conf/wifi/pseudo-ibss.click
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,16 @@ FromHost(safe, safe_addr, ETHER safe_addr)
-> encap :: WifiEncap(0x0, WIRELESS_INFO winfo)
-> set_power :: SetTXPower(63)
-> set_rate :: SetTXRate(2)
-> extra_encap :: ExtraEncap()
-> to_dev :: ToDevice(ath0);
-> radiotap_encap :: RadiotapEncap()
-> to_dev :: ToDevice(ath0raw);



from_dev :: FromDevice(ath0)
from_dev :: FromDevice(ath0raw,
BPF_FILTER "ether[18:4] == 0x08 and ")
-> prism2_decap :: Prism2Decap()
-> extra_decap :: ExtraDecap()
-> radiotap_decap :: RadiotapDecap()
-> phyerr_filter :: FilterPhyErr()
-> tx_filter :: FilterTX()
-> dupe :: WifiDupeFilter()
Expand Down

0 comments on commit a555a76

Please sign in to comment.