A
ashtonn
Hello,
I am trying to fill an array with source and destination mac address.
The first 6 bytes hold the destination mac address and the next six
bytes hold the source mac address. Here's a snippet for filling in
broadcast address for the destination mac.
# Get destination address
data = array('B', '\0' * 512)
for i in range(6):
data = 0xFF
How do i fill in a command line passed mac address for both source and
destination(default is FFFFFFFFFFFF). The first six bytes of data
should contain destination mac and the next six bytes of data should
contain the source mac address.
Thanks,
Ashton
I am trying to fill an array with source and destination mac address.
The first 6 bytes hold the destination mac address and the next six
bytes hold the source mac address. Here's a snippet for filling in
broadcast address for the destination mac.
# Get destination address
data = array('B', '\0' * 512)
for i in range(6):
data = 0xFF
How do i fill in a command line passed mac address for both source and
destination(default is FFFFFFFFFFFF). The first six bytes of data
should contain destination mac and the next six bytes of data should
contain the source mac address.
Thanks,
Ashton