Migration page

Sometimes, I break the API. Here is what you need to do to have your stuff work with new Scapy versions.

The Scapy split

Imports

Replace

import scapy

by

from scapy import all as scapy

Replace

from scapy import ...

by

from scapy.all import ...

The length fields API change

The Packet.post_build() API change