-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathechoc.1
80 lines (79 loc) · 2.03 KB
/
echoc.1
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
.\"
.\" Copyright (c) 2012-2015 Matthieu Herrb <[email protected]>
.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
.Dd $Mdocdate: September 29 2015 $
.Dt ECHOC 1
.Os
.Sh NAME
.Nm echoc
.Nd send UDP packets to network hosts and wait for replies
.Sh SYNOPSYS
.Nm echoc
.Bk -words
.Op Fl dv
.Op Fl c Ar count
.Op Fl i Ar ms
.Op Fl l Ar len
.Op Fl p Ar port
.Op Fl t Ar ms
.Ar host
.Ek
.Sh DESCRIPTION
.Nm
sends UDP packets to the
.Dv ECHO
service on the remote
.Ar host .
.Nm
displays the start/end date of loss of connectivity.
The options are as follow:
.Bl -tag -width Ds
.It Fl c Ar count
Stop sending after
.Ar count
packets have been sent.
.It Fl d
Set the
.Dv Don't Fragment
bit on outgoing datagrams, on systems that allow programs to control it.
On some systems (MacOSX, OpenBSD) this option will do nothing and the
generated datagrams will have the DF bit set or not, depending on
system settings.
.It Fl i Ar ms
wait
.Ar ms
milliseconds between every packet (default: 100 ms).
.It Fl l Ar len
Send packets of length
.Ar len
bytes (default: 10).
.It Fl p Ar port
Set destination port to
.Ar port
(default: 7 - echo).
.It Fl t Ar ms
Wait at most
.Ar ms
milliseconds for the reply before declaring the connection dead
(default: 500ms).
.El
.Sh SEE ALSO
.Xr nc 1 ,
.Xr ping 8 ,
.Xr ping6 8
.Sh AUTHOR
The
.Nm
utility was written for tetaneutral.net by Matthieu Herrb.