]> The Tcpdump Group git mirrors - libpcap/commitdiff
Clean up some "injection not supported" messages.
authorGuy Harris <[email protected]>
Mon, 10 Dec 2018 23:24:11 +0000 (15:24 -0800)
committerGuy Harris <[email protected]>
Mon, 10 Dec 2018 23:24:11 +0000 (15:24 -0800)
pcap-bt-linux.c
pcap-bt-monitor-linux.c
pcap-netfilter-linux.c
pcap-usb-linux.c

index c3041a911af5fbaeca630317dff8dfd35c9d0846..82a5554fb3645e88a3d1a39c5cd083624d419b95 100644 (file)
@@ -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);
 }
 
index 00d48798f293d2a9635c3a8df7363e861d9127ea..f7b37194a9f3884ac7e273f4ce8657fb25aed5db 100644 (file)
@@ -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;
 }
 
index 4bc069b7ae6d99ad89a95e9c6c4e0274d8a61d13..486397063efa396e78a1c9ae925a8314ad3d9979 100644 (file)
@@ -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);
 }
 
index 5df1ecc72d2f5c7acb60f48e42e11fcc07271203..09271631fb813b4ff15b5d01b67761d6db6a949e 100644 (file)
@@ -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);
 }