S
shama.bell
Hello,
I am a newbie and i have problems filling an array with the mac address
read from the command line.
The mac address is FF:FF:FF:FF:FF:FF
options, args = parser.parse_args()
# options.d contains the address
destAddress = options.d
data = array('L', '\0' * 24)
The array should contain the data as follows:
data[0] = 0xFF
data[1] = 0xFF
.........
data[5] = 0xFF
Any help is appreciated
-SB
I am a newbie and i have problems filling an array with the mac address
read from the command line.
The mac address is FF:FF:FF:FF:FF:FF
options, args = parser.parse_args()
# options.d contains the address
destAddress = options.d
data = array('L', '\0' * 24)
The array should contain the data as follows:
data[0] = 0xFF
data[1] = 0xFF
.........
data[5] = 0xFF
Any help is appreciated
-SB