mac address

shama.bell at gmail.com shama.bell at gmail.com
Thu Jun 2 18:58:41 EDT 2005


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




More information about the Python-list mailing list