2
>>> ans, unans = srp([your

packet here], iface='wlan0')

ans.summary()

This gives me error : "AttributeError: 'NoneType' object has no attribute 'summary' "

2
  • Your srp function returned a NoneType object that you stored in the ans variable. Trying to call the summary() or any other function on this NoneType object will return an AttributeError. The srp function probably have a documentation detailing how to use it. Commented Aug 12, 2018 at 22:09
  • help(srp). This means that no answer packet were received Commented Aug 13, 2018 at 11:55

1 Answer 1

1

When no answer is received in time (timeout), None is returned by srp

You should be checking for a None result

Sign up to request clarification or add additional context in comments.

1 Comment

Yes The "None Type" was because no answer was returned i.e. None. type(None)="None Type"

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.