467,858 Members | 1,706 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,858 developers. It's quick & easy.

store mac address

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[i] = 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[i]
should contain destination mac and the next six bytes of data[i] should
contain the source mac address.


Jul 19 '05 #1
  • viewed: 1644

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Lars Behrens | last post: by
5 posts views Thread by Wei-Chao Hsu | last post: by
3 posts views Thread by Mochuelo | last post: by
7 posts views Thread by Nash | last post: by
reply views Thread by jack112 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.