summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--netsniff-ng.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/netsniff-ng.c b/netsniff-ng.c
index 2738b9a..c5570fc 100644
--- a/netsniff-ng.c
+++ b/netsniff-ng.c
@@ -915,7 +915,9 @@ static void recv_only_or_dump(struct ctx *ctx)
bpf_dump_all(&bpf_ops);
bpf_attach_to_sock(sock, &bpf_ops);
- set_sockopt_hwtimestamp(sock, ctx->device_in);
+ ret = set_sockopt_hwtimestamp(sock, ctx->device_in);
+ if (ret == 0 && ctx->verbose)
+ printf("HW timestamping enabled\n");
setup_rx_ring_layout(sock, &rx_ring, size, true, true);
create_rx_ring(sock, &rx_ring, ctx->verbose);