Re: proxy arp
- From: "Skywing [MVP]" <skywing_NO_SPAM_@xxxxxxxxxxxxxxxxxxx>
- Date: Mon, 8 Jan 2007 11:30:58 -0500
Essentially, yes, that is what I was proposing.
You should be careful about indicating the packet to NDIS in the same call stack as where you got the packet sent to you from NDIS, though; we ran into some problems < http://www.nynaeve.net/?p=60 > with this on Vista, where increased kernel stack usage internal to NDIS and TCPIP sometimes caused a stack overflow if you looped back a packet to NDIS in the same call stack as said packet was sent to you by NDIS. The simplest solution to that problem is to just post to a worker thread which does an indication up to NDIS (and since ARPs are fairly rare events as far as performance critical things go, posting isn't really so bad in my experience).
--
Ken Johnson (Skywing)
Windows SDK MVP
http://www.nynaeve.net
"miki" <michael.waksman@xxxxxxxxx> wrote in message news:1168242141.606821.177990@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I am not sure I fully understood you:
Do you mean that the miniport should inpect each packet it gets from
NDIS and if its an ARP packet it should create an ARP reply and
indicate it to NDIS?
I was hoping that there is some solution which does not involve coding
but a simple configuration, I guess there isn't.
Miki
Skywing [MVP] wrote:A simple (though perhaps not very elegant) solution is to just build an arp
responder into your virtual ethernet miniport (or whatever is actually
picking up the ethernet frames that are sent to the adapter) that claims all
requested addresses. I haven't ever had any problems with this approach.
--
Ken Johnson (Skywing)
Windows SDK MVP
http://www.nynaeve.net
"miki" <michael.waksman@xxxxxxxxx> wrote in message
news:1168174693.431556.58170@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> Hi
> I need to build a miniport for Vista.
> The miniport presents itself to NDIS as an ethernet driver, though it
> actually use another phy and does not use the MAC addresses for
> transmitting the packets.
>
> I would like that ARP requests packets will not be transmitted through
> the miniport's interface.
> But applications need the ARP.
> Since I don't know the range of IP addresses that may flow through the
> interface I can't configure static arp entries for them.
>
> Currently the only solution I can think of is intercepting the ARP
> requests packets and immediately producing arp replies (The content of
> the reply is not important since as I said I don't really use the MAC
> address for transmition)
>
> Is there a simpler way to bypass this problem - something like a
> default entry in the arp table which applies to all ip which does not
> have explicit entries (like in the route table)?
>
> I read about the proxy arp but I understand it replies to external ARP
> requests. Can I configure a proxy only to answer arp request originates
> locally on a certain interface?
>
>
> Thanks
> Miki
>
.
- References:
- proxy arp
- From: miki
- Re: proxy arp
- From: Skywing [MVP]
- Re: proxy arp
- From: miki
- proxy arp
- Prev by Date: Re: How to prepare a kernel driver pdb file for TraceView
- Next by Date: Re: Text capture
- Previous by thread: Re: proxy arp
- Next by thread: Re: proxy arp
- Index(es):
Relevant Pages
|