Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Aug 2001 09:05:57 -0700 (PDT)
From:      ioann velikiy <ioannvelikiy@yahoo.com>
To:        hackers@freebsd.org
Subject:   socket question
Message-ID:  <20010815160558.95697.qmail@web13601.mail.yahoo.com>

next in thread | raw e-mail | index | archive | help
hi all,
little socket question.

In Developer Handbook, chapter 5.5, i can see the
following:

"...If you wanted to be in charge of the low-level
protocols (such as IP), or even network interfaces
(e.g., the Ethernet),
you would need to specify SOCK_RAW ..."

PF_INET socket, with type SOCK_RAW, always
incapsulates data into IP datagram, so how can i
control link level stuff using socket interface ?
i looked over PF_LINK socket, so i did
socket(PF_LINK, SOCK_RAW, 0);
and got `unsupported protocol' error message,
quick grep on DOMAIN_SET in /usr/src/sys says
that PF_LINK domain is not registered.

so, the question is:
how can i control link-level headers using socket
interface ?

thanks,
-sergey

__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




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