diff options
author | guy <guy> | 2001-10-25 06:46:14 +0000 |
---|---|---|
committer | guy <guy> | 2001-10-25 06:46:14 +0000 |
commit | 03c414f542d839276a06b850439f96c9c2fb65cb (patch) | |
tree | 0e4f736a7536fd261ac812de58073fd9106aef5a /pcap-linux.c | |
parent | 8ccdbcd8e5f6e78512709dbcb303e33058efce9b (diff) |
Don't print the warning for an ARP type not supported by libpcap, return
it in the error message buffer, as is done for warnings in other
implementations of "pcap_open_live()".
Diffstat (limited to 'pcap-linux.c')
-rw-r--r-- | pcap-linux.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pcap-linux.c b/pcap-linux.c index 0211c2d2..0263d5f6 100644 --- a/pcap-linux.c +++ b/pcap-linux.c @@ -26,7 +26,7 @@ */ #ifndef lint static const char rcsid[] = - "@(#) $Header: /tcpdump/master/libpcap/pcap-linux.c,v 1.68 2001-10-08 01:06:21 guy Exp $ (LBL)"; + "@(#) $Header: /tcpdump/master/libpcap/pcap-linux.c,v 1.69 2001-10-25 06:46:14 guy Exp $ (LBL)"; #endif /* @@ -1051,11 +1051,11 @@ live_open_new(pcap_t *handle, char *device, int promisc, * update "map_arphrd_to_dlt()" * to handle the new type. */ - fprintf(stderr, + snprintf(ebuf, PCAP_ERRBUF_SIZE, "Warning: arptype %d not " "supported by libpcap - " "falling back to cooked " - "socket\n", + "socket", arptype); } handle->linktype = DLT_LINUX_SLL; |