This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
raw socket at link layer
- To: ecos-discuss at sourceware dot cygnus dot com
- Subject: [ECOS] raw socket at link layer
- From: Weilong Li <weilongli2000 at yahoo dot com>
- Date: Wed, 18 Jul 2001 01:51:40 -0700 (PDT)
I am trying to do sniff under ecos.
However, in linux, it eithers give me choice to
use SOCK_PACKET, or use PF_PACKET to make socket
at link layer level,
int fd=socket(PF_PACKET, SOCK_RAW, htons(ETH_P_IP));
or
int fd=socket(AF_INET, SOCK_PACKET, htons(ETH_P_IP));
but under ecos's tcp/ip stack,
it neither gives SOCK_PACKET, or PF_PACKET, or
ETH_P_IP, so how to do the sniff?
thanks,
Weilong
__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/