* How to receive IP and RAW frames on the same ethernet device ?
@ 2002-09-09 17:23 gguevel
2002-09-09 19:34 ` Wolfgang Denk
0 siblings, 1 reply; 2+ messages in thread
From: gguevel @ 2002-09-09 17:23 UTC (permalink / raw)
To: linuxppc-embedded
Hi,
I work on a custom 860 board with Linux 2.2.14.
I want to receive and send IP and RAW frames simultaneously on the same
ethernet device.
I don't know if I can use ethertap driver or something else.
I don't understand why I must "ifconfig" the ethertap with an ip address if
I just want raw
frames like LLC frames.
Has anybody a good idea ?
Thanks
Gérard Guével
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: How to receive IP and RAW frames on the same ethernet device ?
2002-09-09 17:23 How to receive IP and RAW frames on the same ethernet device ? gguevel
@ 2002-09-09 19:34 ` Wolfgang Denk
0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Denk @ 2002-09-09 19:34 UTC (permalink / raw)
To: gguevel; +Cc: linuxppc-embedded
Dear Gérard,
in message <000001c25825$a572e5c0$3101a8c0@DOMAIN> you wrote:
>
> I work on a custom 860 board with Linux 2.2.14.
What a day is this? Seems everybody using this old stuff is active
today ;-)
> I want to receive and send IP and RAW frames simultaneously on the same
> ethernet device.
Use a raw socket; something like
socket(PF_PACKET, SOCK_RAW, htons(ETH_P_ALL));
should be all that's needed; get yourself a copy of libnet, and/or
libpcap.
However, I have no idea if this ever worked in 2.2.14; you might want
to use a more recent kernel version.
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd@denx.de
As far as we know, our computer has never had an undetected error.
-- Weisert
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-09-09 19:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-09 17:23 How to receive IP and RAW frames on the same ethernet device ? gguevel
2002-09-09 19:34 ` Wolfgang Denk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).