Lizhong Li writes:
> For testing, we are developing a test "fake" NIC driver which is able to
> pose as a wired or wireless NIC, this is supposed to simulate link

I'm not sure who "we" are here, but this has already been done --
Rishi Srivatsavai created a driver called "simlink" that simulates a
point-to-point Ethernet (wired or wireless) connection.

It should be in ARC review shortly.

> up/down, device plug/unplug, and such events, without require any
> physical infrastructure support. Cecilia has a question about it,
> whether the "fake" driver could simulate the real behavior like real
> wifi drivers since the different wifi drivers have the different
> policies to deal with some events, e.g., they'll wait various time to
> retry when they lose the connection to AP, then the 'fake' driver how to
> handle it ?

That's a good question.  The current 'simlink' just has a simple
connected state and a programmable scan list.  But a better approach
would be to develop an API that can be used on the AP side of the
simulated link, and have all of the client-side requests come through
that API to user space where we can emulate any sort of behavior
(including errors) that we want.

-- 
James Carlson, Solaris Networking              <james.d.carlson at sun.com>
Sun Microsystems / 35 Network Drive        71.232W   Vox +1 781 442 2084
MS UBUR02-212 / Burlington MA 01803-2757   42.496N   Fax +1 781 442 1677

Reply via email to