]> The Tcpdump Group git mirrors - tcpdump/blobdiff - tcpdump.c
Add check for pcap timestamp warnings. (GH #693)
[tcpdump] / tcpdump.c
index 07965fa301881139d1e765ffc9aa52a5e9532512..e402c4282960260ec5a8e43045c425a7df4b4469 100644 (file)
--- a/tcpdump.c
+++ b/tcpdump.c
@@ -1305,6 +1305,10 @@ open_interface(const char *device, netdissect_options *ndo, char *ebuf)
                if (status < 0)
                        error("%s: Can't set time stamp type: %s",
                              device, pcap_statustostr(status));
+               else if (status > 0)
+                       warning("When trying to set timestamp type '%s' on %s: %s",
+                               pcap_tstamp_type_val_to_name(jflag), device,
+                               pcap_statustostr(status));
        }
 #endif
        status = pcap_activate(pc);