Skip to content

Commit

Permalink
raw: fix filter reject for non 1588 frames
Browse files Browse the repository at this point in the history
Signed-off-by: Eliot Blennerhassett <[email protected]>
  • Loading branch information
Eliot Blennerhassett authored and richardcochran committed Mar 31, 2012
1 parent d5f953f commit 433b6f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion raw.c
Original file line number Diff line number Diff line change
Expand Up @@ -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*/
Expand Down

0 comments on commit 433b6f6

Please sign in to comment.