From 3335b3bcacd4c123ccdb02b68a032b1655d872e9 Mon Sep 17 00:00:00 2001 From: glebius Date: Fri, 17 Dec 2004 11:24:33 +0000 Subject: [PATCH] Note that send(2) is no longer applicable to divert(4) sockets. Noticed by: Dmitry Dvoinikov Wording by: cperciva MFC after: 3 days --- share/man/man4/divert.4 | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/share/man/man4/divert.4 b/share/man/man4/divert.4 index 420bcc57c6e7..30397bf716c5 100644 --- a/share/man/man4/divert.4 +++ b/share/man/man4/divert.4 @@ -57,13 +57,11 @@ if it fits. .Sh WRITING PACKETS Writing to a divert socket is similar to writing to a raw IP socket; the packet is injected ``as is'' into the normal kernel IP packet -processing and minimal error checking is done. -Packets are written as either incoming or outgoing: -if -.Xr write 2 -or -.Xr send 2 -is used to deliver the packet, or if +processing using +.Xr sendto 2 +and minimal error checking is done. +Packets are distinguished as either incoming or outgoing. +If .Xr sendto 2 is used with a destination IP address of .Dv INADDR_ANY ,