allow changing of mac address
This commit is contained in:
@@ -5,7 +5,35 @@
|
||||
<key>ieee802_11_ofdm_mac</key>
|
||||
<category>IEEE802.11</category>
|
||||
<import>import ieee802_11</import>
|
||||
<make>ieee802_11.ofdm_mac()</make>
|
||||
<make>ieee802_11.ofdm_mac($src_mac, $dst_mac, $bss_mac)</make>
|
||||
|
||||
<param>
|
||||
<name>SRC MAC</name>
|
||||
<key>src_mac</key>
|
||||
<value>[0x23, 0x23, 0x23, 0x23, 0x23, 0x23]</value>
|
||||
<type>int_vector</type>
|
||||
</param>
|
||||
|
||||
<param>
|
||||
<name>DST MAC</name>
|
||||
<key>dst_mac</key>
|
||||
<value>[0x42, 0x42, 0x42, 0x42, 0x42, 0x42]</value>
|
||||
<type>int_vector</type>
|
||||
</param>
|
||||
|
||||
<param>
|
||||
<name>BSS MAC</name>
|
||||
<key>bss_mac</key>
|
||||
<value>[0xff, 0xff, 0xff, 0xff, 0xff, 0xff]</value>
|
||||
<type>int_vector</type>
|
||||
</param>
|
||||
|
||||
<check>len($src_mac) == 6</check>
|
||||
<check>len($dst_mac) == 6</check>
|
||||
<check>len($bss_mac) == 6</check>
|
||||
<check>all([x >= 0 and 255 >= x for x in $src_mac])</check>
|
||||
<check>all([x >= 0 and 255 >= x for x in $dst_mac])</check>
|
||||
<check>all([x >= 0 and 255 >= x for x in $bss_mac])</check>
|
||||
|
||||
<sink>
|
||||
<name>app in</name>
|
||||
|
||||
Reference in New Issue
Block a user