Home > Archive > Unix Programming > May 2004 > programming sockets
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
programming sockets
|
|
| Andrew Falanga 2004-05-12, 9:08 pm |
| Hello,
Has anyone here ever done any programming with sockets of type
AF_PACKET? I'm looking for a method of sending data to another host
using nothing more than MAC addresses. Ultimately, using something
similar to the DLC/LLC protocol. Unless I'm mistaken, this type of
packet family, could perhaps be a means to this end.
The platform is RedHat linux 9.0.
---------------------------------------------
Andrew R. Falanga (a non-HP employee)
Hewlett-Packard Company
11311 Chinden Blvd.
Boise, Idaho
---------------------------------------------
Please note: The e-mail address is purposely
mangled. I do not wish my account at HP to
become a spam haven.
| |
| Robert Harris 2004-05-12, 9:08 pm |
| Andrew Falanga wrote:
> Hello,
>
> Has anyone here ever done any programming with sockets of type
> AF_PACKET? I'm looking for a method of sending data to another host
> using nothing more than MAC addresses. Ultimately, using something
> similar to the DLC/LLC protocol. Unless I'm mistaken, this type of
> packet family, could perhaps be a means to this end.
>
> The platform is RedHat linux 9.0.
Yes. man packet tells you most of what you need to know.
Robert
| |
| Andrew Falanga 2004-05-12, 9:08 pm |
| Robert Harris wrote:
> Andrew Falanga wrote:
>
>
>
> Yes. man packet tells you most of what you need to know.
>
> Robert
Above you mention that this man page will tell me most of what I need to
know. Any thoughts for where I'll find the rest?
Thanks,
---------------------------------------------
Andrew R. Falanga (a non-HP employee)
Hewlett-Packard Company
11311 Chinden Blvd.
Boise, Idaho
---------------------------------------------
Please note: The e-mail address is purposely
mangled. I do not wish my account at HP to
become a spam haven.
| |
| Robert Harris 2004-05-12, 9:08 pm |
| Andrew Falanga wrote:
> Robert Harris wrote:
>
>
>
>
> Above you mention that this man page will tell me most of what I need to
> know. Any thoughts for where I'll find the rest?
Ah! Well, for the rest you need to study the source of another program
that does it. The best I know is libpcap, see file pcap-linux.c in which
some versions use the socket option PACKET_RX_RING that reads socket
data very efficiently.
Robert
|
|
|
|
|