PCAPINFO(1)

πŸ’… PCAPINFO(1) β€” like, the pcapinfo manual, bestie πŸŽ€

okay so real quick β€” this is the page from the User Contributed Perl Documentation section of the manual, and it's about pcapinfo. let's get into it ✨


🌸 NAME 🌸

pcapinfo β€” prints detailed information about the network devices πŸ¦‹


✨ SYNOPSIS ✨

pcapinfo

literally that's it. no flags, no args, just vibes πŸ’…


πŸŽ€ OPTIONS πŸŽ€

None.

like... none none. zero. not a single one. iconic honestly πŸ‘‘


πŸ’– DESCRIPTION πŸ’–

okay so pcapinfo prints detailed information about the network devices and the Pcap library that's available on the current host 🌈

here's an example so you can see exactly what it's giving:

Host information
----------------
  Hostname      : fangorn.maddingue.net
  Aliases       : fangorn.local fangorn
  Pcap version  : libpcap version 0.8.3

Devices information
-------------------
Device eth0 (default)
  Description       : No description available
  Link type         : Ethernet, no autonegotiation, 10baseT-HD, link ok
  Hardware address  : 00:0c:6e:0a:c3:ca
  Network address   : 10.0.1.51
  Network mask      : 255.255.255.0
  Flags             : up running broadcast multicast

Device eth1
  Description       : No description available
  Link type         : Ethernet, no autonegotiation, 10baseT-HD, link ok
  Hardware address  : 00:26:54:0a:d8:4d
  Network address   : 192.168.1.51
  Network mask      : 255.255.255.0
  Flags             : up running broadcast multicast

see that device marked as "(default)"? πŸ‘€ that's the one that gets returned when you call Net::Pcap::lookupdev(). she's the main character πŸ’œ

⚠️ heads up bestie β€” some info, like the link type, can only be gathered with administrative privileges. so if you're getting blanks, that's why 😭 no cap.

🫢 AUTHOR 🫢

SΓ©bastien Aperghis-Tramoni, <sebastien@aperghis.net> β€” ty king πŸ‘‘βœ¨


Copyright (C) 2005, 2006, 2007, 2008, 2009 SΓ©bastien Aperghis-Tramoni. All rights reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. πŸͺπŸ’–


and that's the whole page!! 🌸 bye bestie, go check your network devices, ily πŸ¦‹πŸ’… β€” this one's from perl v5.40.2, dated 2025-01-18 πŸŽ€βœ¨

πŸ“¦ where this page comes from