From owner-freebsd-questions@freebsd.org Tue Mar 22 17:37:48 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E7B98AD9DC9 for ; Tue, 22 Mar 2016 17:37:48 +0000 (UTC) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from be-well.ilk.org (be-well.ilk.org [23.30.133.173]) by mx1.freebsd.org (Postfix) with ESMTP id C79D1DCB for ; Tue, 22 Mar 2016 17:37:48 +0000 (UTC) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: by be-well.ilk.org (Postfix, from userid 1147) id 43C3D33C27; Tue, 22 Mar 2016 13:37:39 -0400 (EDT) From: Lowell Gilbert To: freebsd-questions@freebsd.org Cc: "unixreader\@yahoo.com" Subject: Re: some confusion in socket(2) References: <4251199.3261655.1458654057744.JavaMail.yahoo.ref@mail.yahoo.com> <4251199.3261655.1458654057744.JavaMail.yahoo@mail.yahoo.com> Reply-To: freebsd-questions@freebsd.org Date: Tue, 22 Mar 2016 13:37:37 -0400 In-Reply-To: <4251199.3261655.1458654057744.JavaMail.yahoo@mail.yahoo.com> (Teng Zhang via freebsd-questions's message of "Tue, 22 Mar 2016 13:40:57 +0000 (UTC)") Message-ID: <4460weh0ri.fsf@be-well.ilk.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Mar 2016 17:37:49 -0000 Teng Zhang via freebsd-questions writes: > hello, in socket(2), the following sentence:=A0 =A0 =A0 =A0 =A0SOCK_RAW s= ockets > provide access to internal network protocols and interfaces.My > confusion is what are included in the range of "internal network > protocols and interfaces". Could you please tell me the answer or > where i can find relevant information. Raw sockets are nothing more than IP sockets without a transport protocol associated. Routing daemons and ping, for example, use raw sockets to directly control packet headers.