Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Mar 2016 03:00:26 +0000 (UTC)
From:      Teng Zhang <unixreader@yahoo.com>
To:        "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org>
Subject:   =?UTF-8?Q?=E5=9B=9E=E5=A4=8D=EF=BC=9ARe:_some_confusion_in_socket(2)?=
Message-ID:  <1318373531.3863333.1458702026447.JavaMail.yahoo@mail.yahoo.com>
In-Reply-To: <4460weh0ri.fsf@be-well.ilk.org>
References:  <4460weh0ri.fsf@be-well.ilk.org>

next in thread | previous in thread | raw e-mail | index | archive | help

ok, i see that. That is to say, this kind of socket just refer to the network layer protocol such as the arp,icmp,ip protocols rather than transport layer protocols such as tcp protool.
 
 
  在 2016年3月23日周三 时间:1:37,Lowell Gilbert<freebsd-questions-local@be-well.ilk.org> 写道:   Teng Zhang via freebsd-questions <freebsd-questions@freebsd.org> writes:

> hello, in socket(2), the following sentence:         SOCK_RAW sockets
> 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.  



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1318373531.3863333.1458702026447.JavaMail.yahoo>