[Pkg-netmeasure-discuss] Bug#887804: python3-scapy: scapy.pton_ntop.inet_pton(socket.AF_INET6, '2000::') fails

Daniel Kahn Gillmor dkg at fifthhorseman.net
Sun Jan 21 23:43:25 UTC 2018


Control: clone 887804 -1
Control: retitle -1 python3-scapy: IPv6.summary() throws "TypeError: inet_pton() argument 2 must be str, not map" when dst is series
Control: tags -1 + patch
Control: forwarded -1 https://github.com/phaethon/scapy/issues/233

On Fri 2018-01-19 23:51:35 -0500, Daniel Kahn Gillmor wrote:
> even worse, this gets triggered whenever creating a series of packets
> from a series of addresses in IPv6 on python3.

hm, i take it back -- the error described when calling summary() in
python3 is not the same as the error described in 887804 -- on a
properly-configured python3-scapy system on debian, the functions from
scapy.pton_ntop shouldn't ever be loaded because the system inet_pton
and inet_ntop should be used instead.

This second failure can be fixed with the attached patch. one of the two
hunks of this patch is already applied upstream in 0.23, but the other
isn't yet fixed upstream, though it has been reported (see the
"forwarded" URL).

        --dkg

-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix-map-list.diff
Type: text/x-diff
Size: 919 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-netmeasure-discuss/attachments/20180121/18b638d8/attachment.diff>


More information about the Pkg-netmeasure-discuss mailing list