How can I get my mac address in python in the form of: \x##\x##\x##\x##\x##\x##?
I'm trying to construct an ethernet header and generate the source hardware address automatically.
I'm using uuid.getnode() to get the mac address as a 48 bit integer. How can I convert it so I can append it to a string already in that format?
ie: eth_header = "\xff\xff\xff\xff\xff\xff" + magicconvert(uuid.getnode())