aboutsummaryrefslogtreecommitdiff
path: root/include/net/flow_dissector.h
diff options
context:
space:
mode:
authorGravatar Tom Herbert <tom@herbertland.com> 2015-09-01 09:24:30 -0700
committerGravatar David S. Miller <davem@davemloft.net> 2015-09-01 15:06:23 -0700
commit8306b688f1a6621b9efe3b0d827e26750528b12a (patch)
tree81725f39b3e3905ec73e817ccdeeda187a298325 /include/net/flow_dissector.h
parentflow_dissector: Support IPv6 fragment header (diff)
downloadlinux-8306b688f1a6621b9efe3b0d827e26750528b12a.tar.gz
linux-8306b688f1a6621b9efe3b0d827e26750528b12a.tar.bz2
linux-8306b688f1a6621b9efe3b0d827e26750528b12a.zip
flow_dissector: Add flag to stop parsing at L3
Add an input flag to flow dissector on rather dissection should be stopped when an L3 packet is encountered. This would be useful if a caller just wanted to get IP addresses of the outermost header (e.g. to do an L3 hash). Signed-off-by: Tom Herbert <tom@herbertland.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/flow_dissector.h')
-rw-r--r--include/net/flow_dissector.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/flow_dissector.h b/include/net/flow_dissector.h
index 34102270b086..bb81e3b576e7 100644
--- a/include/net/flow_dissector.h
+++ b/include/net/flow_dissector.h
@@ -125,6 +125,7 @@ enum flow_dissector_key_id {
};
#define FLOW_DISSECTOR_F_PARSE_1ST_FRAG BIT(0)
+#define FLOW_DISSECTOR_F_STOP_AT_L3 BIT(1)
struct flow_dissector_key {
enum flow_dissector_key_id key_id;