From 3d17d67ea03cc9429b965499e3bb6b2c26e26856 Mon Sep 17 00:00:00 2001 From: Alexandre Dulaunoy Date: Sun, 1 Feb 2015 13:31:01 +0100 Subject: [PATCH] Continue even if no IP address is assigned on the interface ssldump in a production environment can be used on a capture interface where no IP addresses are assigned. Print a warning instead of exiting. --- base/pcap-snoop.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/base/pcap-snoop.c b/base/pcap-snoop.c index bfbb7fa..3896098 100644 --- a/base/pcap-snoop.c +++ b/base/pcap-snoop.c @@ -366,8 +366,7 @@ int main(argc,argv) } if (pcap_lookupnet(interface_name, &localnet, &netmask, errbuf) < 0) - verr_exit("PCAP: %s\n",errbuf); - + fprintf(stderr,"PCAP: %s\n", errbuf); } else{ if(!(p=pcap_open_offline(file,errbuf))){