Re: Packet Sniffer

From: Jeff Kelley [MS] (jeffkel_at_online.microsoft.com)
Date: 08/24/04

  • Next message: ViperR152: "RE: RTC on Pocket PC 2003"
    Date: Mon, 23 Aug 2004 17:10:01 -0700
    
    

    Netlog does not put an adapter into promiscuous mode. To get into
    promiscuous mode you would need to have an NDIS protocol driver bind to the
    adapter and set the current packet filter (OID_GEN_CURRENT_PACKET_FILTER)
    settings to include promiscuous mode (NDIS_PACKET_TYPE_PROMISCUOUS). The
    standard TCP/IP and TCP/IP6 protocol drivers released with the OS don't
    normally set the packet filter to promiscuous. You could use the NDISUIO
    driver to do this, but I would recommend against it as the high number of
    packets that would need to be forwarded from device.exe to the application
    using NDISUIO would probably exceed the system capacity.

    So, I think that you would need to write your own NDIS protocol driver to
    configure the packet filter to see all the packets. You could still use
    Netlog to capture the data, or your driver could capture it in a manner of
    your choosing.

    --
    Jeff Kelley
    Microsoft / Windows CE Networking
    This posting is provided AS IS with no warranties, and confers no rights.
    "John Spaith [MS]" <jspaith@ONLINE.microsoft.com> wrote in message
    news:OSBzLyTiEHA.3016@tk2msftngp13.phx.gbl...
    > If you have CE 4.2 Platform Builder, you can compile the source to a
    netmon
    > like capture routine that can run on CE devices.  You can then tell this
    to
    > tool to capture packets and it will log it out in the desktop netmon .cap
    > format.  We don't have a packet viewer for CE, so you'll have to copy the
    > generated .cap file to the desktop and look at it with desktop netmon.
    >
    > The core sniffer is in %_WINCEROOT%\public\COMMON\oak\utils\netlog and a
    > command like app to stop/start/etc... the sniffer is in
    > %_WINCEROOT%\public\COMMON\oak\utils\netlogctl.  I don't know how great
    the
    > documentation is on all this, but in netlogctl the program isn't that
    > complicated so you should be able to read the source yourself.
    >
    > I don't know whether this will put your card into promiscous mode or not -
    > that's another problem.
    >
    > -- 
    > John Spaith
    > Software Design Engineer, Windows CE
    > Microsoft Corporation
    >
    > Have an opinion on the effectiveness of Microsoft Embedded newsgroups?
    Let
    > us know!
    > https://www.windowsembeddedeval.com/community/newsgroups
    >
    > This posting is provided "AS IS" with no warranties, and confers no
    rights.
    > You assume all risk for your use. © 2003 Microsoft Corporation. All rights
    > reserved.
    >
    > "YaQ" <yaq@chez.com> wrote in message
    > news:9a27b912b7b5ccedc5fe8ee2d3fc0c15@localhost.talkaboutcomputing.com...
    > > Hello,
    > >
    > > I would like to know how i can do an sniffer of frames. I try with the
    RAW
    > > socket, but it isn't implemented in Wince .NET 4.2.
    > > I also read I need to pass my LAN card in promiscuous mode : I know my
    > > card can do this with vxsniffer, and the OID to do this is define, but I
    > > don't know how I can pass my card in this mode.
    > >
    > > Thx for your answer
    > >
    >
    >
    

  • Next message: ViperR152: "RE: RTC on Pocket PC 2003"

    Relevant Pages

    • ethX interface rx errors
      ... Spontaneous system crash with heavy generic load or high packet traffic. ... SIOCGMIIPHY on 'eth1' failed: Operation not supported ... Basic mode control register 0x3000: ... device eth0 entered promiscuous mode ...
      (Linux-Kernel)
    • Basic question on OID_GEN_CURRENT_PACKET_FILTER andOID_802_3_MULTI
      ... more than one protocol driver can bind to ... However the packet filter is a "global" attribute of ... the miniport driver, "global" in the sense that it is not a per protocol ... The miniport driver has no notion of a protocol driver. ...
      (microsoft.public.development.device.drivers)
    • Re: Receive send packet
      ... a receive packet whenever a send command is issued, in order to receive a send packet by the stack. ... This work if a packet is read from the Miniport driver by the protocol driver that is receive by the stack via a real network adapter. ...
      (microsoft.public.development.device.drivers)
    • Re: Promiscuous Mode
      ... of an incoming packet to its own and passes it onto the operating system ... Otherwise, the packet is dropped. ... However, when put into promiscuous mode of operation, the NIC stops this ... comparison and just grabs ALL the incoming packets and passes them to ...
      (Pen-Test)
    • Re: Promiscuous Mode
      ... promiscuous mode is a configuration of a network card ... Each packet includes the hardware address. ... a network card receives a packet, it checks if the address is its own. ...
      (Pen-Test)