Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. packet sniffer

packet sniffer

Scheduled Pinned Locked Moved C / C++ / MFC
c++helpworkspace
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sura_b4_u
    wrote on last edited by
    #1

    hi all, well i'm developing a simple packet sniffer using winpcap in VC++ environment.. where packets are captured and filtered.... i'm able to filter using port no,ip address and protocol but what i'm suppose to do is to filter packets using process ID which i'm unable to do..so please any one can help me as soon as possible... thanks in advance regards sura sura

    C 1 Reply Last reply
    0
    • S sura_b4_u

      hi all, well i'm developing a simple packet sniffer using winpcap in VC++ environment.. where packets are captured and filtered.... i'm able to filter using port no,ip address and protocol but what i'm suppose to do is to filter packets using process ID which i'm unable to do..so please any one can help me as soon as possible... thanks in advance regards sura sura

      C Offline
      C Offline
      CodeBeetle
      wrote on last edited by
      #2

      You could use GetTcpTableEx()/GetUdpTableEx() to get a list of the TCP/UDP connections and their processes. Assuming your app is to run on minimum OS of XP, of course. Alternativly ud need to develop a low level driver to do that.


      CodeBeetle.Com


      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups