Hi,

I’m trying to parse and alter AAAA (IPv6) DNS responses with POX, but I get the 
following error:
��B�)'packet:(dns) parsing answers: Bad address format

The error stems from around line 398 in addresses.py. At that point in the 
execution, my IPv6 address (converted to hex from binary) is 
20010db8000000000000ff0000428329, which is correct. However, it appears that 
POX is attempting to split, based on colons, but these shouldn’t be in the 
binary representation of the IP -- (isinstance(addr, bytes) and not raw) is 
True.

I’ve attempted to alter addresses.py change addr from bytes to a IPv6 string 
separated by colons (2001:0db8:0000:0000:0000:ff00:0042:8329), but I only break 
things later down the line (dns.py for me). I also see nothing irregular with 
the OpenFlow traffic to the controller.

My current setup:
POX - 0.2.0 (carp) - l3_learning (also shows parsing error as above)
Mininet with custom topology
BIND9 - the entry in question looks like "server1       IN      AAAA    
2001:db8::ff00:42:8329”. Wireshark shows nothing wrong with the DNS 
request/response.

Any help would be appreciated. 

Cheers,
Curtis

Reply via email to