Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Ethernet Driver
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Ethernet Driver



Hi,

> I am trying to write an ethernet level driver,
> something that I can capture all the frames/packets
> at the driver level and/or below. I simply am going
> to filter for a particular frame type, if my frame,
> do some magic and put back in the stack (network),
> if not my frame type, drop.

why do u want to capture packets at driver/kernel
level ?
You can use the raw socket interface at the
application layer and
capture packets in user space.
u can use like socket(.... , SOCK_RAW, ...).

raw sockets are processed before it is delivered to
any other sockets, so there is nonting like remove
from stack, and put back.

Yes, u will add delay in delivery of these frames to
the final socket because u are going to access them
from user space.

Regards,
Parav Pandit


________________________________________________________________________
Yahoo! India Matrimony: Find your life partner online
Go to: http://yahoo.shaadi.com/india-matrimony
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-drivers mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.