Skip to content

Sniffer that captures LLDP and CDP packets and prints them on standard output.

License

Notifications You must be signed in to change notification settings

ITman1/lldp-cdp-sniffer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LLDP & CDP sniffer

Sniffer that captures LLDP and CDP packets and prints them on standard output. Sniffer can also generate fake LLDP or CDP packets for test purposes.

Preview on YouTube

Usage

./sniffer [-l|-s] -i <interface> [-c] [-t <int>] [-r <int>]

Flags:

  • -i interface name
  • -s mode of sending packets (without -c it sends LLDP and otherwise CDP)
  • -l mode of listening on the interface
  • -c sending CDP packets
  • -t time how to long send fake packets
  • -r interval of sending the fake packets in seconds

Examples how to run

./sniffer -i eth1 -s -r 60    // Sends LLDP packets every 60 second
./sniffer -i eth1 -l          // Listens for LLDP packets

Building

make              compile project - release version
make pack         packs all required files to compile this project    
make clean        clean temp compilers files    
make clean-all    clean all compilers files - includes project    
make clean-outp   clean output project files 

Contact and credits

Author: Radim Loskot
gmail.com: radim.loskot (e-mail)

About

Sniffer that captures LLDP and CDP packets and prints them on standard output.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages