With scapy we can:
p = Ether() / IP()
What operation does // really do? Which object is returning? If I find p in the python interpreter, it returns this
<Ether ... | IP ...>
What does '|' mean in this case?
I tried to change the dst IP field after creating p without completely recreating the object, but I was not able to do this because I do not know which object I am facing.
Thanks.
source
share