[Prev][Next][Index][Thread]

Re: socket in linux



> From: yaoyyuan@263.net
> Subject: socket in linux
> 
> I have a question in oskit.
> I want to use SOCK_PACKET which defined in linix/socket.h .It is used in
> the socket function only in Linux. But in oskit the oskit/net/socket.h is
> from BSD and no such definition.It has only SOCK_STREAM ,SOCK_RAW ,etc
> definition .  So how can I use it?

I think the short answer is that you cannot. The OSKIT uses the Linux
device drivers, but FreeBSD networking, which does not implement that.

As an aside, what is SOCK_PACKET? Kinda looks like SOCK_RAW to me, but I'm
not sure what the differences are. 

Lbs

---------------------------------------------------------------------------
Leigh B. Stoller                     Computer Science - Flux Research Group
stoller@cs.utah.edu                  University of Utah
http://www.cs.utah.edu/~stoller      Salt Lake City, Utah 84112
Voice: (541) 758-6252                FAX: (801) 585-3743
---------------------------------------------------------------------------