summaryrefslogtreecommitdiff
path: root/net/core/flow_dissector.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/core/flow_dissector.c')
-rw-r--r--net/core/flow_dissector.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/core/flow_dissector.c b/net/core/flow_dissector.c
index 237d396b6e41..764c4cb3fe8f 100644
--- a/net/core/flow_dissector.c
+++ b/net/core/flow_dissector.c
@@ -895,9 +895,9 @@ bool bpf_flow_dissect(struct bpf_prog *prog, struct bpf_flow_dissector *ctx,
return result == BPF_OK;
}
-static bool is_pppoe_ses_hdr_valid(struct pppoe_hdr hdr)
+static bool is_pppoe_ses_hdr_valid(const struct pppoe_hdr *hdr)
{
- return hdr.ver == 1 && hdr.type == 1 && hdr.code == 0;
+ return hdr->ver == 1 && hdr->type == 1 && hdr->code == 0;
}
/**
@@ -1227,7 +1227,7 @@ proto_again:
break;
}
- if (!is_pppoe_ses_hdr_valid(hdr->hdr)) {
+ if (!is_pppoe_ses_hdr_valid(&hdr->hdr)) {
fdret = FLOW_DISSECT_RET_OUT_BAD;
break;
}