nopasaran.utils.set_IP_df

nopasaran.utils.set_IP_df(packet)

Set the Don’t Fragment (DF) flag on an IP packet.

Scapy represents flags for the IP packet as an integer. The value 2 (binary 010) corresponds to the DF flag.