[Tutor] Converting MAC address . Need Help

Sudarshana KS sudarshana.ks at gmail.com
Mon Feb 27 16:27:44 CET 2006


Hi,

I am using scapy for writing a dhcp client.

The problem i am facing is the mac address i have is in the form
00:11:22:33:44:55 need to convert to '\x00\x11\x22\x33\x44\x55'
Please help me out with this problem. The chaddr field in dhcp ( SCAPY)
requires '\x00\x11\x22\x33\x44\x55'  format.

I want this to be assinged through variables. Please let me know if this i
doable.

Thanks in advance,
Sudarshana K S
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20060227/397e1461/attachment.html 


More information about the Tutor mailing list