From 433b6f635eca26ec2da80b0b89a2af77898199f6 Mon Sep 17 00:00:00 2001 From: Eliot Blennerhassett Date: Thu, 29 Mar 2012 16:51:18 +1300 Subject: [PATCH] raw: fix filter reject for non 1588 frames Signed-off-by: Eliot Blennerhassett --- raw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/raw.c b/raw.c index ea5e28e..f9a9cc3 100644 --- a/raw.c +++ b/raw.c @@ -61,7 +61,7 @@ struct raw { static struct sock_filter raw_filter[N_RAW_FILTER] = { {OP_LDH, 0, 0, OFF_ETYPE }, - {OP_JEQ, 0, 3, ETH_P_1588 }, /*f goto reject*/ + {OP_JEQ, 0, 4, ETH_P_1588 }, /*f goto reject*/ {OP_LDB, 0, 0, ETH_HLEN }, {OP_AND, 0, 0, PTP_GEN_BIT }, /*test general bit*/ {OP_JEQ, 0, 1, 0 }, /*0,1=accept event; 1,0=accept general*/