Package onep :: Package policyservice :: Module match :: Class ICMP
[frames] | no frames]

Class ICMP


ICMP match class.

Assign ICMP type, ICMP code, or both. Use class variable ICMPV4 or ICMPV6 for Protocol parameter.

Instance Methods
 
__init__(self, icmp_type=0, icmp_code=0, protocol=None)
Constructs Match.
 
__eq__(self, obj)
 
__str__(self)
str(x)

Inherited from Match: check_match_support, get_match_type, match_type, set_negate

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __subclasshook__

Class Variables
  IPV4 = 1
  IPV6 = 58

Inherited from Match: MatchOpCode, MatchType, __metaclass__

Properties

Inherited from object: __class__

Method Details

__init__(self, icmp_type=0, icmp_code=0, protocol=None)
(Constructor)

 

Constructs Match.

Parameters:
  • icmp_type (int) - ICMP type.
  • icmp_code (int) - ICMP code.
  • protocol (int) - ICMP.ICMPV4 or ICMP.ICMPV6
Raises:
Overrides: object.__init__

__str__(self)
(Informal representation operator)

 

str(x)

Overrides: object.__str__
(inherited documentation)