message_type Property

The type of the ICMP message (part of the ICMP header).

Syntax

def get_message_type() -> int: ...
def set_message_type(value: int) -> None: ...

message_type = property(get_message_type, set_message_type)

Default Value

0

Remarks

This property contains the type of the ICMP message (part of the ICMP header). The ICMP message type is a byte value representing the message class. The message type defines the structure and meaning of the message data assigned to data_to_send.

Types for ICMP messages are defined in the various internet RFCs and other documentation associated with TCP/IP. The following are a few examples of ICMP message types:

0 Echo reply ('ping' reply).
3 Destination unreachable.
4 Source quench.
5 Redirect (change a route).
8 Echo request ('ping' request).
11 Time exceeded for datagram.
12 Parameter problem on datagram.
13 Timestamp request.
14 Timestamp reply.
17 Address mask request.
18 Address mask reply.

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks 2020 Python Edition - Version 20.0 [Build 8307]