With scapy we can to this :
p = Ether() / IP()
What kind of operation does '
<Ether ... | IP ...>
' mean in this case ?
I was trying to change the field dst of IP after creating p without recreating the object entirely, but I didn't manage to do it as I don't know what kind of object I am facing.
Thank you.
鸿沟 /
操作符在Scapy中用于 叠层:
该操作符已被用作两层之间的合成操作符。在这样做的时候,下层可以根据上层的情况,使其一个或多个默认字段过载。
该 |
在您的打印输出中,只是一个文本分隔符,以帮助您区分堆叠层。