clientMac = "00:00:01:00:11:03" bootp = BOOTP(op = opcode,chaddr = clientMac, ciaddr = "0.0.0.0",xid = 0x01020304,flags= 0x8000)
Here, I try to create bootp part for a DHCP offer packet. But in the packet capture, the clientMac is shown as 30 30 3a 30 30 3a. I get a junk mac address. When I convert my original clientmac into ascii, its coming as 30 30 3a 30 30 3a. ie,
ASCII
: -> 3a (hex)
0 -> 30 (hex)
1 -> 31 (hex)
Here how to give clientMac for BOOTP(), in DHCP scapy?
This way, its worked.