Is Libcap library is capable to capture all types of packet from switch?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mostafijur
    New Member
    • May 2007
    • 12

    Is Libcap library is capable to capture all types of packet from switch?

    Hello

    Q1. Please Can anybody tell me libpcap library can/cann't capture packets from switch?
    Packets type may be TCP or UDP or ICMP ... If u confirm pls can u

    Q2. If cannot then How can I capture all types(TCP,UDP,I CMP...) of packets from switch?


    thx
  • keerthiramanarayan
    New Member
    • Nov 2007
    • 13

    #2
    Originally posted by mostafijur
    Hello

    Q1. Please Can anybody tell me libpcap library can/cann't capture packets from switch?
    Packets type may be TCP or UDP or ICMP ... If u confirm pls can u

    Q2. If cannot then How can I capture all types(TCP,UDP,I CMP...) of packets from switch?


    thx
    Hi,
    I happened to use libpcap for a prototype of a packet forwarder. As far as i know, the libpcap library can capture any packet which comes to your MAC (Network Card). But one exception i noticed was that libpcap does not capture packets that originate and are destinated for the localhost (loopback). Guess u can use any of the tools that use libpcap (wireshark etc.) to find out if it is really what u want to use.

    Comment

    Working...