openbsd-ports/net/ettercap/patches/patch-src_ec_capture_c
okan 9da3b1852c update to 0.7.3 from brad@
testing and ok brad@ and merdely@
2008-04-23 20:49:46 +00:00

27 lines
1.3 KiB
Plaintext

$OpenBSD: patch-src_ec_capture_c,v 1.1 2008/04/23 20:49:46 okan Exp $
--- src/ec_capture.c.orig Mon Mar 24 14:29:44 2008
+++ src/ec_capture.c Mon Mar 24 14:31:05 2008
@@ -211,8 +211,8 @@ void capture_init(void)
/* set the right dlt type for the iface */
GBL_PCAP->dlt = pcap_datalink(pd);
- DEBUG_MSG("capture_init: %s [%d]", pcap_datalink_val_to_description(GBL_PCAP->dlt), GBL_PCAP->dlt);
- USER_MSG("(%s)\n\n", pcap_datalink_val_to_description(GBL_PCAP->dlt));
+ DEBUG_MSG("capture_init: [%d]", GBL_PCAP->dlt);
+ USER_MSG("\n\n");
/* check that the bridge type is the same as the main iface */
if (GBL_SNIFF->type == SM_BRIDGED && pcap_datalink(pb) != GBL_PCAP->dlt)
@@ -221,9 +221,9 @@ void capture_init(void)
/* check if we support this media */
if (get_decoder(LINK_LAYER, GBL_PCAP->dlt) == NULL) {
if (GBL_OPTIONS->read)
- FATAL_ERROR("Dump file not supported (%s)", pcap_datalink_val_to_description(GBL_PCAP->dlt));
+ FATAL_ERROR("Dump file not supported");
else
- FATAL_ERROR("Inteface \"%s\" not supported (%s)", GBL_OPTIONS->iface, pcap_datalink_val_to_description(GBL_PCAP->dlt));
+ FATAL_ERROR("Inteface \"%s\" not supported", GBL_OPTIONS->iface);
}
/* set the alignment for the buffer */