From - Wed Oct 29 11:11:24 1997 Path: news.mitre.org!blanket.mitre.org!news.tufts.edu!cam-news-feed5.bbnplanet.com!cam-news-hub1.bbnplanet.com!su-news-hub1.bbnplanet.com!news.bbnplanet.com!news1.best.com!newshub1.home.com!news.home.com!Supernews60!supernews.com!uunet!in1.uu.net!lard.ftp.com!not-for-mail From: "kwok c. lee" Newsgroups: comp.os.ms-windows.programmer.nt.kernel-mode Subject: Re: Sending packets in Intermediate driver Date: Tue, 28 Oct 1997 16:06:21 -0500 Organization: FTP Software, North Andover, Massachusetts Lines: 42 Message-ID: <635k6f$lr8$1@lard.ftp.com> References: <634isp$opf@news.csie.nctu.edu.tw> NNTP-Posting-Host: ranma.ftp.com X-Newsreader: Microsoft Outlook Express 4.71.1008.3 X-MimeOle: Produced By Microsoft MimeOLE Engine V4.71.1008.3 Ren-Shiou(Jason) Liu wrote in article <634isp$opf@news.csie.nctu.edu.tw>... > > Dear NT device gurus: > For some reason, I have to reply an ICMP message by myself. > I tried to reply ICMP echo request as my first step. I added > my code in CLReceiveIndication (ProtocolReceive handler). > What I did is shown as following. > > //Copy lookahead buffer to my own buffer > .... > //Modified header.... > ... did you call NdisAdjustBufferLength() and NDIS_SET_PACKET_HEADER_SIZE()?? > NdisChainBufferAtFront(OurPacket, OurNdisBuffer); > NdisSendPackets(Adapter->LowerMPHandle, &OurPacket, 1); > Return NDIS_STATUS_SUCCESS; > I will schedul the echo reply process rather than calling NdisSendPackets() within ProtocolReceive routine. > Everytime I ping my machine, the screen just turns blue. :( > Did I do anything wrong? Thank you for your replies! Try to use softice or windbg instead of relying on the info from the blue screen. >-- >Ren-Shiou(Jason) Liu, >National Chiao Tung University, >Hsinchu,Taiwan. >E-Mail:rsliu@csie.nctu.edu.tw