File: ICMP.html

package info (click to toggle)
python-libtrace 1.6%2Bgit20161027-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 2,124 kB
  • ctags: 1,357
  • sloc: ansic: 6,890; python: 3,228; makefile: 70; sh: 49
file content (110 lines) | stat: -rw-r--r-- 3,291 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html><head>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /><title>IProtocol Decodes: ICMP</title>

<meta name="generator" content="KompoZer" />
<link rel="stylesheet" type="text/css" href="plt-doc.css" /></head><body>
<h2 style="text-align: left;">Network Layer Decodes</h2>
<h3>Class ICMP</h3>
<p>Provides access to fields in an (IPv4) ICMP header.</p>

<table class="indent1">
<tbody>
<tr>
<td class="heading" colspan="2">Instance Variables</td>
</tr>
<tr>
<td class="name methodwidth"><strong>type</strong></td>
<td class="name descriptionwidth"><em>icmp.type -&gt;
anInteger</em></td>
</tr>
<tr>
<td><br />
</td>
<td class="description">ICMP message type </td>
</tr>
<tr>
<td class="name"><strong>code</strong></td>
<td class="name"><em>icmp.code -&gt;
anInteger</em></td>
</tr>
<tr>
<td><br />
</td>
<td class="description">ICMP message code </td>
</tr>
<tr>
<td class="name"><strong>checksum</strong></td>
<td class="name"><em>icmp.checksum -&gt;
anInteger</em></td>
</tr>
<tr>
<td><br />
</td>
<td class="description">ICMP checksum </td>
</tr>
<tr><td style="font-weight: bold;" class="name">data</td><td class="name"><em>icmp.data -&gt;
aByteArray</em></td>
</tr>
<tr>
<td><br />
</td><td class="description">All the ICMP bytes, i.e. header and payload. 
&nbsp;Use this if you need to work with some of the ICMP message types that
python-libtrace doesn't decode fully</td>
</tr>
<tr>
<td style="font-weight: bold;" class="name">payload</td><td class="name"><em>icmp.payload -&gt;anIP for types 3, 4, 5, 11 and 12, otherwise aByteArray</em></td>
</tr>
<tr>
<td><br />
</td><td class="description">Most ICMP messages carry some content
from the packet that triggered them; &nbsp;icmp.payload returns as much
as it can of the triggering packet</td>
</tr>
</tbody>
</table>
<p>The content of an&nbsp; (IPv4) ICMP header varies depending on its <span style="font-style: italic;">type</span> field. &nbsp;python-libtrace decodes the following types ...<span style="font-style: italic;" /></p>


<span style="font-weight: bold;" /><table class="indent1"><tbody><tr><td class="heading" colspan="2">Echo Request (type 8) and Echo Reply (type 0)</td></tr><tr><td class="name methodwidth"><strong style="font-weight: bold;" /><span style="font-weight: bold;">ident</span></td>
<td class="name descriptionwidth"><em>icmp.echo.ident -&gt;
anInteger</em></td>
</tr>
<tr>
<td><br />
</td>
<td class="description">Echo identifier </td>
</tr>
<tr>
<td class="name"><strong>sequence&nbsp;</strong></td>
<td class="name"><em>icmp.echo.sequence -&gt;
anInteger</em></td>
</tr>
<tr>
<td><br />
</td>
<td class="description">Echo sequence number </td>
</tr>
</tbody>
</table><br /><table class="indent1"><tbody><tr><td class="heading" colspan="2">Redirect (type 5)</td></tr><tr><td class="name methodwidth"><strong style="font-weight: bold;" /><span style="font-weight: bold;">gateway</span></td>
<td class="name descriptionwidth"><em>icmp.redirect.gateway -&gt;
anIPprefix</em></td>
</tr>
<tr>
<td><br />
</td>
<td class="description">Returns IPv4 address of the gateway</td>
</tr>






</tbody>
</table>

<br /><p>Nevil Brownlee<br />
Sat, 22 Oct 16 (NZDT)</p>
</body></html>