divert.4 (8624f4347e8133911b0554e816f6bedb56dc5fb3) | divert.4 (f1fb051716625d29d9dea599c6d7d20d773fe6e3) |
---|---|
1.\" $FreeBSD$ 2.\" 3.Dd August 30, 2022 4.Dt DIVERT 4 5.Os 6.Sh NAME 7.Nm divert 8.Nd kernel packet diversion mechanism --- 145 unchanged lines hidden (view full) --- 154.Pp 155Packets are received and sent unchanged, except that 156packets read as outgoing have invalid IP header checksums, and 157packets written as outgoing have their IP header checksums overwritten 158with the correct value. 159Packets written as incoming and having incorrect checksums will be dropped. 160Otherwise, all header fields are unchanged (and therefore in network order). 161.Pp | 1.\" $FreeBSD$ 2.\" 3.Dd August 30, 2022 4.Dt DIVERT 4 5.Os 6.Sh NAME 7.Nm divert 8.Nd kernel packet diversion mechanism --- 145 unchanged lines hidden (view full) --- 154.Pp 155Packets are received and sent unchanged, except that 156packets read as outgoing have invalid IP header checksums, and 157packets written as outgoing have their IP header checksums overwritten 158with the correct value. 159Packets written as incoming and having incorrect checksums will be dropped. 160Otherwise, all header fields are unchanged (and therefore in network order). 161.Pp |
162Binding to port numbers less than 1024 requires super-user access, as does 163creating a | 162Creating a |
164.Nm | 163.Nm |
165socket. | 164socket requires super-user access. |
166.Sh ERRORS 167Writing to a divert socket can return these errors, along with 168the usual errors possible when writing raw packets: 169.Bl -tag -width Er 170.It Bq Er EINVAL 171The packet had an invalid header, or the IP options in the packet 172and the socket options set were incompatible. 173.It Bq Er EADDRNOTAVAIL --- 27 unchanged lines hidden --- | 165.Sh ERRORS 166Writing to a divert socket can return these errors, along with 167the usual errors possible when writing raw packets: 168.Bl -tag -width Er 169.It Bq Er EINVAL 170The packet had an invalid header, or the IP options in the packet 171and the socket options set were incompatible. 172.It Bq Er EADDRNOTAVAIL --- 27 unchanged lines hidden --- |