raw: fix filter reject for non 1588 frames

Signed-off-by: Eliot Blennerhassett <eblennerhassett@audioscience.com>
master
Eliot Blennerhassett 2012-03-29 16:51:18 +13:00 committed by Richard Cochran
parent d5f953fed9
commit 433b6f635e
1 changed files with 1 additions and 1 deletions

2
raw.c
View File

@ -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*/