tcpdump mailing list archives
Printing IP address / filters
From: "Nick De Cristofaro" <nickdc () link2exchange com>
Date: Tue, 20 Mar 2007 05:02:05 -0400
I can't seem to figure out how to print the IP address used by the system through pcap_lookupdev. How could I display the value of bpf_u_int32 net in a recognizable IP format? Also, is there a way to apply multiple filters to packets? Such as I want to capture all IP packets but I want to tell me when it gets a packet on port 23 or port 21 and perhaps sniffer out snmp packet, version and commands sent. I know I could do filtering expression seperately but not sure if I can mix and match them? Thanks Nick - This is the tcpdump-workers list. Visit https://cod.sandelman.ca/ to unsubscribe.
Current thread:
- Printing IP address / filters Nick De Cristofaro (Mar 20)
- <Possible follow-ups>
- Printing IP address / filters Nick De Cristofaro (Mar 20)