IcmpMatch

class IcmpMatch[source]

Match against the fields of the ICMP header

icmp_type() IcmpTypeCriterion[source]

Criterion for matching against the ICMP type

to_iptables_args() List[str][source]

Returns iptables(8) arguments for this match


IcmpTypeCriterion

class IcmpTypeCriterion(match: Match)[source]

Compare with the ICMP type.

The comparison value is the tuple (icmp-type-name, icmp-type-value, icmp-code); icmp-type-name is a string, icmp-type-value is an integer, and icmp-code is a string.