|
Home > Archive > CCIE > December 2001 > bit swapping
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
| darthfeces 2001-12-02, 11:17 pm |
| ok,
now for bit swapping cannonical to non-cannonical
mac addresses.
best methods ??? | |
|
|
| MadChef 2001-12-03, 6:24 am |
| quote: Originally posted by engel
[B]
I did it by grouping the binary to 4 numbers in pairs, and reverse it and change to binary again.
/B]
That's how I've always done it. Hex to binary, flip, binary to hex.
MadChef | |
| strikeattack 2001-12-04, 10:13 am |
| Does that have anything to do with wife swapping? If it does, please explain. If it does not, forget that I asked this ridiculous question.
 | |
| sidodgers 2001-12-10, 5:01 pm |
| quote: Originally posted by strikeattack
Does that have anything to do with wife swapping? If it does, please explain. If it does not, forget that I asked this ridiculous question.
Yes, somewhat, in that both bit-swapping and wife-swapping are dark, arcane arts which may set you up for life-crushing family court cases and....
oh, shit. wrong answer. 
In a nutshell, bit swapping works on the following general principal (i prefer to think of it more as 'bit reversal' than 'bit swapping', and which idiot at IBM decided to represent token ring addresses in non-canonical form anyways? huh? we're waiting, IBM...) :
let's say that the first octet of the MAC address of an ethernet card is 2F. This can be represented as 0010 1111 in binary.
swapping them, we get 0100 1111, which is 4F.
wash, rinse, repeat for the other 5 octets, and you're done.
Sid  | |
| sidodgers 2001-12-10, 5:23 pm |
| quote: Originally posted by sidodgers
Yes, somewhat, in that both bit-swapping and wife-swapping are dark, arcane arts which may set you up for life-crushing family court cases and....
oh, shit. wrong answer. 
In a nutshell, bit swapping works on the following general principal (i prefer to think of it more as 'bit reversal' than 'bit swapping', and which idiot at IBM decided to represent token ring addresses in non-canonical form anyways? huh? we're waiting, IBM...) :
let's say that the first octet of the MAC address of an ethernet card is 2F. This can be represented as 0010 1111 in binary.
swapping them, we get 0100 1111, which is 4F.
wash, rinse, repeat for the other 5 octets, and you're done.
Sid
Shit, oops.
Having a bad day... i MEANT, by bit swapping, we get 1111 0100, which is F4.
Apologies
Sid  |
|
|
|
|