阅读:1794回复:2
奇怪的LOG!
monitor Reader thread started (channel 1 = Default)
monitor Channel \'Default\' opened -2140.861361 Default ==>PtReceive(1615 PacketSize=64) -2140.861318 Default ==>PtReceive(1616 LookAheadBuffer=[fde43d1a]--Size:64) -2140.861283 Default ==>PtReceive(1616 HeaderBuffer=[fde43d0c]--Size:14) -2140.861130 Default ==>PtReceiveComplete(1615) -2140.629826 Default ==>MPSend(1612) -2140.629791 Default ==>MPSend(1613 Status == NDIS_STATUS_SUCCESS) -2140.629701 Default ==>PtSendComplete(1612) -2086.238665 Default ==>PtReceive(1616 PacketSize=331) -2086.238621 Default ==>PtReceive(1617 LookAheadBuffer=[fde43d72]--Size:128) -2086.238585 Default ==>PtReceive(1617 HeaderBuffer=[fde43d64]--Size:14) -2086.238545 Default ==>MPTransferData(277) -2086.238475 Default ==>PtReceiveComplete(1616) -2086.238245 Default ==>MPQueryInformation(1823,OID=65799) -2086.238213 Default ==>MPQueryInformation(0,OID=65799 default) -2086.238180 Default ==>PtRequestComplete(1832) -2086.238157 Default ==>MPQueryInformation(0,OID=65799 default) -2086.238031 Default ==>MPQueryInformation(1824,OID=65799) -2086.238004 Default ==>MPQueryInformation(0,OID=65799 default) -2086.237974 Default ==>PtRequestComplete(1833) -2086.237952 Default ==>MPQueryInformation(0,OID=65799 default) -2086.236765 Default ==>MPSend(1613) -2086.236731 Default ==>MPSend(1614 Status == NDIS_STATUS_SUCCESS) -2086.236615 Default ==>PtSendComplete(1613) -2080.855221 Default ==>PtReceive(1617 PacketSize=64) -2080.855177 Default ==>PtReceive(1618 LookAheadBuffer=[fde43ed6]--Size:64) -2080.855142 Default ==>PtReceive(1618 HeaderBuffer=[fde43ec8]--Size:14) -2080.855008 Default ==>PtReceiveComplete(1617) -2080.623092 Default ==>MPSend(1614) -2080.623061 Default ==>MPSend(1615 Status == NDIS_STATUS_SUCCESS) -2080.622971 Default ==>PtSendComplete(1614) -2080.524977 Default ==>PtReceive(1618 PacketSize=56) -2080.524942 Default ==>PtReceive(1619 LookAheadBuffer=[fde43f2e]--Size:56) -2080.524906 Default ==>PtReceive(1619 HeaderBuffer=[fde43f20]--Size:14) -2080.524783 Default ==>PtReceiveComplete(1618) -2080.322956 Default ==>MPSend(1615) -2080.322925 Default ==>MPSend(1616 Status == NDIS_STATUS_SUCCESS) -2080.322837 Default ==>PtSendComplete(1615) -2020.848974 Default ==>PtReceive(1619 PacketSize=64) -2020.848932 Default ==>PtReceive(1620 LookAheadBuffer=[fde43f7e]--Size:64) -2020.848896 Default ==>PtReceive(1620 HeaderBuffer=[fde43f70]--Size:14) -2020.848758 Default ==>PtReceiveComplete(1619) -2020.621409 Default ==>MPSend(1616) -2020.621376 Default ==>MPSend(1617 Status == NDIS_STATUS_SUCCESS) -2020.621287 Default ==>PtSendComplete(1616) -1960.842851 Default ==>PtReceive(1620 PacketSize=64) -1960.842808 Default ==>PtReceive(1621 LookAheadBuffer=[fde43fd6]--Size:64) -1960.842773 Default ==>PtReceive(1621 HeaderBuffer=[fde43fc8]--Size:14) -1960.842637 Default ==>PtReceiveComplete(1620) -1960.599178 Default ==>MPSend(1617) -1960.599146 Default ==>MPSend(1618 Status == NDIS_STATUS_SUCCESS) -1960.599056 Default ==>PtSendComplete(1617) -1900.836655 Default ==>PtReceive(1621 PacketSize=64) -1900.836612 Default ==>PtReceive(1622 LookAheadBuffer=[fde4402e]--Size:64) -1900.836576 Default ==>PtReceive(1622 HeaderBuffer=[fde44020]--Size:14) -1900.836441 Default ==>PtReceiveComplete(1621) -1900.610123 Default ==>MPSend(1618) -1900.610090 Default ==>MPSend(1619 Status == NDIS_STATUS_SUCCESS) -1900.610000 Default ==>PtSendComplete(1618) -1870.233360 Default ==>MPSend(1619) -1870.233324 Default ==>MPSend(1620 Status == NDIS_STATUS_SUCCESS) -1870.233230 Default ==>PtSendComplete(1619) -1869.484638 Default ==>MPSend(1620) -1869.484603 Default ==>MPSend(1621 Status == NDIS_STATUS_SUCCESS) -1869.484513 Default ==>PtSendComplete(1620) -1868.733564 Default ==>MPSend(1621) -1868.733529 Default ==>MPSend(1622 Status == NDIS_STATUS_SUCCESS) -1868.733442 Default ==>PtSendComplete(1621) -1840.830435 Default ==>PtReceive(1622 PacketSize=64) -1840.830393 Default ==>PtReceive(1623 LookAheadBuffer=[fde44086]--Size:64) -1840.830357 Default ==>PtReceive(1623 HeaderBuffer=[fde44078]--Size:14) -1840.830223 Default ==>PtReceiveComplete(1622) -1840.590508 Default ==>MPSend(1622) -1840.590476 Default ==>MPSend(1623 Status == NDIS_STATUS_SUCCESS) -1840.590380 Default ==>PtSendComplete(1622) -1786.147587 Default ==>PtReceive(1623 PacketSize=331) -1786.147543 Default ==>PtReceive(1624 LookAheadBuffer=[fde440de]--Size:128) -1786.147507 Default ==>PtReceive(1624 HeaderBuffer=[fde440d0]--Size:14) -1786.147468 Default ==>MPTransferData(278) -1786.147403 Default ==>PtReceiveComplete(1623) -1786.147160 Default ==>MPQueryInformation(1825,OID=65799) -1786.147130 Default ==>MPQueryInformation(0,OID=65799 default) -1786.147097 Default ==>PtRequestComplete(1834) -1786.147075 Default ==>MPQueryInformation(0,OID=65799 default) -1786.146951 Default ==>MPQueryInformation(1826,OID=65799) -1786.146923 Default ==>MPQueryInformation(0,OID=65799 default) -1786.146894 Default ==>PtRequestComplete(1835) -1786.146872 Default ==>MPQueryInformation(0,OID=65799 default) -1786.145694 Default ==>MPSend(1623) -1786.145661 Default ==>MPSend(1624 Status == NDIS_STATUS_SUCCESS) -1786.145544 Default ==>PtSendComplete(1623) -1780.823379 Default ==>PtReceive(1624 PacketSize=64) -1780.823335 Default ==>PtReceive(1625 LookAheadBuffer=[fde44242]--Size:64) -1780.823299 Default ==>PtReceive(1625 HeaderBuffer=[fde44234]--Size:14) -1780.823163 Default ==>PtReceiveComplete(1624) -1780.593795 Default ==>MPSend(1624) -1780.593761 Default ==>MPSend(1625 Status == NDIS_STATUS_SUCCESS) -1780.593670 Default ==>PtSendComplete(1624) -1780.524026 Default ==>PtReceive(1625 PacketSize=56) -1780.523993 Default ==>PtReceive(1626 LookAheadBuffer=[fde4429a]--Size:56) -1780.523958 Default ==>PtReceive(1626 HeaderBuffer=[fde4428c]--Size:14) -1780.523838 Default ==>PtReceiveComplete(1625) -1780.283986 Default ==>MPSend(1625) -1780.283952 Default ==>MPSend(1626 Status == NDIS_STATUS_SUCCESS) -1780.283862 Default ==>PtSendComplete(1625) -1738.234251 Default ==>PtReceive(1626 PacketSize=78) -1738.234207 Default ==>PtReceive(1627 LookAheadBuffer=[fde442ea]--Size:78) -1738.234172 Default ==>PtReceive(1627 HeaderBuffer=[fde442dc]--Size:14) -1738.234066 Default ==>MPSend(1626) -1738.234047 Default ==>MPSend(1627 Status == NDIS_STATUS_SUCCESS) -1738.234008 Default ==>PtReceiveComplete(1626) -1738.233924 Default ==>PtSendComplete(1626) -1738.233675 Default ==>PtReceive(1627 PacketSize=46) -1738.233648 Default ==>PtReceive(1628 LookAheadBuffer=[fde4434e]--Size:46) -1738.233613 Default ==>PtReceive(1628 HeaderBuffer=[fde44340]--Size:14) -1738.233579 Default ==>MPSend(1627) -1738.233561 Default ==>MPSend(1628 Status == NDIS_STATUS_SUCCESS) -1738.233530 Default ==>PtReceiveComplete(1627) -1738.233448 Default ==>PtSendComplete(1627) -1738.233054 Default ==>PtReceive(1628 PacketSize=48) -1738.233027 Default ==>PtReceive(1629 LookAheadBuffer=[fde44392]--Size:48) -1738.232993 Default ==>PtReceive(1629 HeaderBuffer=[fde44384]--Size:14) -1738.232929 Default ==>MPSend(1628) -1738.232911 Default ==>MPSend(1629 Status == NDIS_STATUS_SUCCESS) -1738.232878 Default ==>PtReceiveComplete(1628) -1738.232799 Default ==>PtSendComplete(1628) -1738.232562 Default ==>PtReceive(1629 PacketSize=46) -1738.232536 Default ==>PtReceive(1630 LookAheadBuffer=[fde443da]--Size:46) -1738.232501 Default ==>PtReceive(1630 HeaderBuffer=[fde443cc]--Size:14) -1738.232461 Default ==>PtReceiveComplete(1629) -1738.232434 Default ==>PtReceive(1630 PacketSize=112) -1738.232407 Default ==>PtReceive(1631 LookAheadBuffer=[fde4441e]--Size:112) -1738.232372 Default ==>PtReceive(1631 HeaderBuffer=[fde44410]--Size:14) -1738.232309 Default ==>PtReceiveComplete(1630) -1738.232274 Default ==>MPSend(1629) -1738.232256 Default ==>MPSend(1630 Status == NDIS_STATUS_SUCCESS) -1738.232164 Default ==>PtSendComplete(1629) -1738.231424 Default ==>PtReceive(1631 PacketSize=177) -1738.231391 Default ==>PtReceive(1632 LookAheadBuffer=[fde444a6]--Size:128) -1738.231356 Default ==>PtReceive(1632 HeaderBuffer=[fde44498]--Size:14) -1738.231321 Default ==>MPTransferData(279) -1738.231277 Default ==>PtReceiveComplete(1631) -1738.230857 Default ==>MPSend(1630) -1738.230829 Default ==>MPSend(1631 Status == NDIS_STATUS_SUCCESS) -1738.230732 Default ==>PtSendComplete(1630) -1738.223430 Default ==>PtReceive(1632 PacketSize=226) -1738.223402 Default ==>PtReceive(1633 LookAheadBuffer=[fde4456e]--Size:128) -1738.223366 Default ==>PtReceive(1633 HeaderBuffer=[fde44560]--Size:14) -1738.223331 Default ==>MPTransferData(280) -1738.223288 Default ==>PtReceiveComplete(1632) -1738.222865 Default ==>MPSend(1631) -1738.222834 Default ==>MPSend(1632 Status == NDIS_STATUS_SUCCESS) -1738.222719 Default ==>PtSendComplete(1631) -1738.220172 Default ==>PtReceive(1633 PacketSize=276) -1738.220143 Default ==>PtReceive(1634 LookAheadBuffer=[fde44666]--Size:128) -1738.220108 Default ==>PtReceive(1634 HeaderBuffer=[fde44658]--Size:14) -1738.220073 Default ==>MPTransferData(281) -1738.220028 Default ==>PtReceiveComplete(1633) -1738.219371 Default ==>MPSend(1632) -1738.219340 Default ==>MPSend(1633 Status == NDIS_STATUS_SUCCESS) -1738.219239 Default ==>PtSendComplete(1632) -1738.218087 Default ==>PtReceive(1634 PacketSize=128) -1738.218059 Default ==>PtReceive(1635 LookAheadBuffer=[fde44792]--Size:128) -1738.218024 Default ==>PtReceive(1635 HeaderBuffer=[fde44784]--Size:14) -1738.217970 Default ==>PtReceiveComplete(1634) -1738.217841 Default ==>MPSend(1633) -1738.217819 Default ==>MPSend(1634 Status == NDIS_STATUS_SUCCESS) -1738.217730 Default ==>PtSendComplete(1633) -1738.216823 Default ==>PtReceive(1635 PacketSize=162) -1738.216796 Default ==>PtReceive(1636 LookAheadBuffer=[fde4482a]--Size:128) -1738.216761 Default ==>PtReceive(1636 HeaderBuffer=[fde4481c]--Size:14) -1738.216726 Default ==>MPTransferData(282) -1738.216688 Default ==>PtReceiveComplete(1635) -1738.216111 Default ==>MPSend(1634) 13.838031 Default ==>MPSend(1635==>PtReceive(1740 PacketSize=331) 13.838075 Default ==>PtReceive(1741 LookAheadBuffer=[fde440d6]--Size:128) 13.838111 Default ==>PtReceive(1741 HeaderBuffer=[fde440c8]--Size:14) 13.838150 Default ==>MPTransferData(308) 13.838214 Default ==>PtReceiveComplete(1740) 13.838452 Default ==>MPQueryInformation(1908,OID=65799) 13.838483 Default ==>MPQueryInformation(0,OID=65799 default) 13.838516 Default ==>PtRequestComplete(1917) 13.838538 Default ==>MPQueryInformation(0,OID=65799 default) 13.838663 Default ==>MPQueryInformation(1909,OID=65799) 13.838691 Default ==>MPQueryInformation(0,OID=65799 default) 13.838721 Default ==>PtRequestComplete(1918) 13.838743 Default ==>MPQueryInformation(0,OID=65799 default) 13.839908 Default ==>MPSend(1740) 13.839941 Default ==>MPSend(1741 Status == NDIS_STATUS_SUCCESS) 13.840057 Default ==>PtSendComplete(1740) 21.855102 Default ==>PtReceive(1741 PacketSize=46) 21.855153 Default ==>PtReceive(1742 LookAheadBuffer=[fde4423a]--Size:46) 21.855188 Default ==>PtReceive(1742 HeaderBuffer=[fde4422c]--Size:14) 21.855234 Default ==>MPSend(1741) 21.855253 Default ==>MPSend(1742 Status == NDIS_STATUS_SUCCESS) 21.855285 Default ==>PtReceiveComplete(1741) 21.855367 Default ==>PtSendComplete(1741) 21.855525 Default ==>PtReceive(1742 PacketSize=64) 21.855555 Default ==>PtReceive(1743 LookAheadBuffer=[fde4427e]--Size:64) 21.855590 Default ==>PtReceive(1743 HeaderBuffer=[fde44270]--Size:14) 21.855725 Default ==>PtReceiveComplete(1742) 22.058974 Default ==>MPSend(1742) 22.059009 Default ==>MPSend(1743 Status == NDIS_STATUS_SUCCESS) 22.059099 Default ==>PtSendComplete(1742) 64.262462 Default ==>MPSend(1743) 64.262496 Default ==>MPSend(1744 Status == NDIS_STATUS_SUCCESS) 64.262587 Default ==>PtSendComplete(1743) 64.405672 Default ==>PtReceive(1743 PacketSize=46) 64.405715 Default ==>PtReceive(1744 LookAheadBuffer=[fde442d6]--Size:46) 64.405751 Default ==>PtReceive(1744 HeaderBuffer=[fde442c8]--Size:14) 64.405899 Default ==>PtReceiveComplete(1743) monitor -- end -- 以上是我在passthru里面用DBGPRINT输出的LOG,DDK上面说只有PANDING的时候会调用ptsendcomplete,可是在success的时候为什么会调用呢??而tranferdatacomplest却从没被tranferdata也很少被调用!和DDK里面说的完全相反啊!!我的环境是2000+3COM网卡,不经过HUB的两台计算机互连100M自适应!我在success的if里面加了DBGPRINT进入PTSENDCOMPLETE的时候也有PENDING的时候也有!TRANFERDATACOMPLETE和TRANFERDATA里都有!基本上每个函数只要和包流程有关的都有!输出可以上信息,其中第一个数值是第几次调用那个例程,后面的是一些特定的值,都标清楚了!请大家给解解迷,另外谁能给小弟一个除PASSTHRU外的IMD看看谢了~~听说有个叫IMDRV的,或其他的2000下的IMD谁能送小弟一个看看~~太感谢了! |
|
|
沙发#
发布于:2001-11-18 02:18
你没有发现你的ptsendcomplete之前都有一个NDISSEND返回PENDING
吗?调用是异步的,并非NDISSEND返回后就会立即调用SENDCOMPLET。 也许网卡是一次发2个包,那么当然只有在发完之后才调用 SENDCOMPLETE了。 transferdata/transferdatacomplete当然也很少调用, ptreceivepacket的情况下根本就不需要调用,ptreceive也只有 在getpacket return NULL 以及lookheadbuffer小于 全包的时候transferdata才会被调用。 我的经验,不是遇到了特别的网卡是不会被调用的。 如果你一定要增加这种可能性,让pchars.receivepackethandler=NULL, 并且用拨号对拨号,然后开一个sniffer之类的工具, 然后进行ftp传一个大点的文件。 基本上你就会发现transferdata会大量的调用了。 就算这种情况也不能保证一定调用,这和miniport driver 是密切相关的。 |
|
|
板凳#
发布于:2001-11-22 10:41
首先得感谢斑竹在百忙中为我解答! :)
可是并不是那样的!我在panding的时候也有dbgpring输出的!如果不是success的话会有其他的状态显示的!前面一个mpsend是进入函数的意思!还请继续指教!另外MPretuenpacket和PTrecvpacket都从没被调用过!在斑竹看来,我是在当lookaheard>packetsize的时候在ptrecv里面处理!小于的时候在pttranferdata里面处理!出的包就在mpsend里面处理,这样好呢?还是有什么办法可以改掉tranferdata的机制,就只要在send和recv里面处理就可以了? 另外请问列位大虾的“规则”是放在什么地方的?在IM里面怎么跟知道规则的改变?难道也和APP层一样放记录文件里或注册表里?这样会有什么危险么(指的是对系统的稳定性!)另外我想在passthru里面生成一个函数,是用来和APP通讯用的,作用是报告执行状况,和接受控制!请问以什么方法实现比较严谨和专业呢?小弟不才~~望大家多多指教!! |
|
|