Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IPv6 w/ hostname causes "TypeError: 'map' object is not subscriptable" #217

Open
hmijail opened this issue Nov 10, 2017 · 2 comments
Open

Comments

@hmijail
Copy link

hmijail commented Nov 10, 2017

scapy-python3 (0.22), python 3.5.2

from scapy.all import *
packet = IPv6(dst="hostname")/UDP(dport=123)/Raw(bytes(100))
send(packet)

causes

TypeError: 'map' object is not subscriptable

If the IPv6 dst is a numerical address, it works OK.

phaethon added a commit that referenced this issue Nov 23, 2017
Fix TypeError becouse of python2-3 difference. This may solve Issue #217
@phaethon
Copy link
Owner

@hmijail please, comment, if the commit changed anything for you.

@hmijail
Copy link
Author

hmijail commented Nov 23, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants