|
From: Stuart D. G. <st...@bm...> - 2007-05-21 20:47:45
|
Pyspf currently expects to get str for IP6 addresses. I *think* the
AAAA support added (not by me) will break this by returning a human
readable form instead. I guess they wanted to be consistent with
A and getaddr(), which returns a human readable form.
1) What is the purpose of 4*I format for IP6 addresses? If you're
masking and stuff (which pydns isn't), then long is what you want (and
that is consistent with addr2bin for IP4). If you want compact, then
a simple binary str is what you want. Even 8*H would make pure python
conversion to human readable form simpler. But 4*I ? Should we change pydns
to use str as the binary form internally?
2) Should I change pydns to return binary str for AAAA to be consistent
with 2.3.0? Or change the pydns driver in pyspf to check version?
Perhaps an option to request binary str data (maybe it's already there)?
Unfortunately, some 16 byte IP6 addresses look like a human readable
form as ASCII, and vice versa - so auto-detection is out.
--
Stuart D. Gathman <st...@bm...>
Business Management Systems Inc. Phone: 703 591-0911 Fax: 703 591-6154
"Confutatis maledictis, flammis acribus addictis" - background song for
a Microsoft sponsored "Where do you want to go from here?" commercial.
|