Skip to content

Pytest specifies packet types manually #738

@PlagueCZ

Description

@PlagueCZ

Scapy can recognize the needed packet type (or next-header field) automatically from the connected packet, e.g.:

pkt = Ether() / IP()

will correctly get ethertype IP.

Removing manual setting of these fields make the test more readable, reduces hardcoded integer values and makes reusing the code easier as we do not need to think about the additional values to fill.

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Done

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions