Changeset View
Changeset View
Standalone View
Standalone View
share/man/man4/icmp.4
Show All 22 Lines | |||||||||
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||||||||
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||||||||
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||||||||
.\" SUCH DAMAGE. | .\" SUCH DAMAGE. | ||||||||
.\" | .\" | ||||||||
.\" @(#)icmp.4 8.1 (Berkeley) 6/5/93 | .\" @(#)icmp.4 8.1 (Berkeley) 6/5/93 | ||||||||
.\" $FreeBSD$ | .\" $FreeBSD$ | ||||||||
.\" | .\" | ||||||||
.Dd July 20, 2022 | .Dd August 1, 2022 | ||||||||
.Dt ICMP 4 | .Dt ICMP 4 | ||||||||
.Os | .Os | ||||||||
.Sh NAME | .Sh NAME | ||||||||
.Nm icmp | .Nm icmp | ||||||||
.Nd Internet Control Message Protocol | .Nd Internet Control Message Protocol | ||||||||
.Sh SYNOPSIS | .Sh SYNOPSIS | ||||||||
.In sys/types.h | .In sys/types.h | ||||||||
.In sys/socket.h | .In sys/socket.h | ||||||||
▲ Show 20 Lines • Show All 108 Lines • ▼ Show 20 Lines | |||||||||
.It 1 Ta reassemb Ta timex Ta "Time exceeded in reassembly" | .It 1 Ta reassemb Ta timex Ta "Time exceeded in reassembly" | ||||||||
.It 0 Ta badhead Ta paramprob Ta "Invalid option pointer" | .It 0 Ta badhead Ta paramprob Ta "Invalid option pointer" | ||||||||
.It 1 Ta optmiss Ta paramprob Ta "Missing option" | .It 1 Ta optmiss Ta paramprob Ta "Missing option" | ||||||||
.It 2 Ta badlen Ta paramprob Ta "Invalid length" | .It 2 Ta badlen Ta paramprob Ta "Invalid length" | ||||||||
.It 1 Ta unknown-ind Ta photuris Ta "Unknown security index" | .It 1 Ta unknown-ind Ta photuris Ta "Unknown security index" | ||||||||
.It 2 Ta auth-fail Ta photuris Ta "Authentication failed" | .It 2 Ta auth-fail Ta photuris Ta "Authentication failed" | ||||||||
.It 3 Ta decrypt-fail Ta photuris Ta "Decryption failed" | .It 3 Ta decrypt-fail Ta photuris Ta "Decryption failed" | ||||||||
.El | .El | ||||||||
.Ss MIB Variables | .Ss MIB (sysctl) Variables | ||||||||
The | The | ||||||||
.Tn ICMP | .Tn ICMP | ||||||||
protocol implements a number of variables in the | protocol implements a number of variables in the | ||||||||
.Va net.inet.icmp | .Va net.inet.icmp | ||||||||
branch of the | branch of the | ||||||||
.Xr sysctl 3 | .Xr sysctl 3 | ||||||||
MIB. | MIB, which can also be read or modified with | ||||||||
.Xr sysctl 8 . | |||||||||
pauamma_gundo.comUnsubmitted Not Done Inline Actions
pauamma_gundo.com: | |||||||||
Done Inline ActionsThe reason I used "and" is that the variables can be read or modified with sysctl(3) as well. Is there a better way to reflect that? sysctl(8) is far more common, so I wanted to mention it. karels: The reason I used "and" is that the variables can be read or modified with sysctl(3) as well. | |||||||||
Done Inline ActionsMaybe "which can also be read or modified with sysctl(8)"? karels: Maybe "which can also be read or modified with sysctl(8)"? | |||||||||
Done Inline Actions
That works. pauamma_gundo.com: > Maybe "which can also be read or modified with sysctl(8)"?
That works. | |||||||||
.Bl -tag -width ".Va icmplim_output" | .Bl -tag -width ".Va icmplim_output" | ||||||||
.It Va bmcastecho | .It Va bmcastecho | ||||||||
.Pq Vt boolean | .Pq Vt boolean | ||||||||
Enable/disable ICMP replies received via broadcast or multicast. | Enable/disable ICMP replies received via broadcast or multicast. | ||||||||
Defaults to false. | Defaults to false. | ||||||||
.It Va drop_redirect | .It Va drop_redirect | ||||||||
.Pq Vt boolean | .Pq Vt boolean | ||||||||
Enable/disable dropping of ICMP Redirect packets. | Enable/disable dropping of ICMP Redirect packets. | ||||||||
Show All 23 Lines | |||||||||
.Pq Vt boolean | .Pq Vt boolean | ||||||||
Enable/disable replies to ICMP Address Mask Request packets. | Enable/disable replies to ICMP Address Mask Request packets. | ||||||||
Defaults to false. | Defaults to false. | ||||||||
.It Va quotelen | .It Va quotelen | ||||||||
.Pq Vt integer | .Pq Vt integer | ||||||||
Number of bytes from original packet to quote in ICMP reply. | Number of bytes from original packet to quote in ICMP reply. | ||||||||
This number is internally enforced to be at least 8 bytes (per RFC792) | This number is internally enforced to be at least 8 bytes (per RFC792) | ||||||||
and at most the maximal space left in the ICMP reply mbuf. | and at most the maximal space left in the ICMP reply mbuf. | ||||||||
.It Va redirtimeout | |||||||||
.Pq Vt integer | |||||||||
Delay in seconds before expiring route created by ICMP redirect. | |||||||||
.It Va reply_from_interface | .It Va reply_from_interface | ||||||||
.Pq Vt boolean | .Pq Vt boolean | ||||||||
Use the IP address of the interface the packet came through in for | Use the IP address of the interface the packet came in through for | ||||||||
Done Inline Actions
While here pauamma_gundo.com: While here | |||||||||
responses to packets which are not directly addressed to us. | responses to packets which are not directly addressed to us. | ||||||||
If enabled, this rule is processed before all others. | If enabled, this rule is processed before all others. | ||||||||
By default, continue with normal source selection. | By default, continue with normal source selection. | ||||||||
Enabling this option is particularly useful on routers because it | Enabling this option is particularly useful on routers because it | ||||||||
makes external traceroutes show the actual path a packet has taken | makes external traceroutes show the actual path a packet has taken | ||||||||
instead of the possibly different return path. | instead of the possibly different return path. | ||||||||
.It Va reply_src | .It Va reply_src | ||||||||
.Pq Vt str | .Pq Vt str | ||||||||
Show All 22 Lines | |||||||||
.It Bq Er EADDRNOTAVAIL | .It Bq Er EADDRNOTAVAIL | ||||||||
when an attempt is made to create a | when an attempt is made to create a | ||||||||
socket with a network address for which no network interface | socket with a network address for which no network interface | ||||||||
exists. | exists. | ||||||||
.El | .El | ||||||||
.Sh SEE ALSO | .Sh SEE ALSO | ||||||||
.Xr recv 2 , | .Xr recv 2 , | ||||||||
.Xr send 2 , | .Xr send 2 , | ||||||||
.Xr sysctl 3 , | |||||||||
.Xr inet 4 , | .Xr inet 4 , | ||||||||
.Xr intro 4 , | .Xr intro 4 , | ||||||||
.Xr ip 4 , | .Xr ip 4 , | ||||||||
.Xr pf.conf 5 | .Xr pf.conf 5 , | ||||||||
.Xr sysctl 8 | |||||||||
.Sh HISTORY | .Sh HISTORY | ||||||||
The | The | ||||||||
.Nm | .Nm | ||||||||
protocol appeared in | protocol implementation appeared in | ||||||||
.Bx 4.3 . | .Bx 4.2 . |