From: Guy Harris Date: Mon, 10 Dec 2018 23:24:11 +0000 (-0800) Subject: Clean up some "injection not supported" messages. X-Git-Tag: libpcap-1.10-bp~697 X-Git-Url: https://git.tcpdump.org/libpcap/commitdiff_plain/5c3ffb99ec36fe501fac34abc0de29021225423e Clean up some "injection not supported" messages. --- diff --git a/pcap-bt-linux.c b/pcap-bt-linux.c index c3041a91..82a5554f 100644 --- a/pcap-bt-linux.c +++ b/pcap-bt-linux.c @@ -380,8 +380,8 @@ bt_read_linux(pcap_t *handle, int max_packets _U_, pcap_handler callback, u_char static int bt_inject_linux(pcap_t *handle, const void *buf _U_, int size _U_) { - pcap_snprintf(handle->errbuf, PCAP_ERRBUF_SIZE, "Inject not supported on " - "Bluetooth devices"); + pcap_snprintf(handle->errbuf, PCAP_ERRBUF_SIZE, + "Packet injection is not supported on Bluetooth devices"); return (-1); } diff --git a/pcap-bt-monitor-linux.c b/pcap-bt-monitor-linux.c index 00d48798..f7b37194 100644 --- a/pcap-bt-monitor-linux.c +++ b/pcap-bt-monitor-linux.c @@ -149,7 +149,8 @@ bt_monitor_read(pcap_t *handle, int max_packets _U_, pcap_handler callback, u_ch static int bt_monitor_inject(pcap_t *handle, const void *buf _U_, int size _U_) { - pcap_snprintf(handle->errbuf, PCAP_ERRBUF_SIZE, "inject not supported yet"); + pcap_snprintf(handle->errbuf, PCAP_ERRBUF_SIZE, + "Packet injection is not supported yet on Bluetooth monitor devices"); return -1; } diff --git a/pcap-netfilter-linux.c b/pcap-netfilter-linux.c index 4bc069b7..48639706 100644 --- a/pcap-netfilter-linux.c +++ b/pcap-netfilter-linux.c @@ -301,7 +301,8 @@ netfilter_stats_linux(pcap_t *handle, struct pcap_stat *stats) static int netfilter_inject_linux(pcap_t *handle, const void *buf _U_, int size _U_) { - pcap_snprintf(handle->errbuf, PCAP_ERRBUF_SIZE, "inject not supported on netfilter devices"); + pcap_snprintf(handle->errbuf, PCAP_ERRBUF_SIZE, + "Packet injection is not supported on netfilter devices"); return (-1); } diff --git a/pcap-usb-linux.c b/pcap-usb-linux.c index 5df1ecc7..09271631 100644 --- a/pcap-usb-linux.c +++ b/pcap-usb-linux.c @@ -926,8 +926,8 @@ got: static int usb_inject_linux(pcap_t *handle, const void *buf _U_, int size _U_) { - pcap_snprintf(handle->errbuf, PCAP_ERRBUF_SIZE, "inject not supported on " - "USB devices"); + pcap_snprintf(handle->errbuf, PCAP_ERRBUF_SIZE, + "Packet injection is not supported on USB devices"); return (-1); }