summaryrefslogtreecommitdiff
path: root/include/net/flow_dissector.h
diff options
context:
space:
mode:
authorTom Herbert <tom@herbertland.com>2015-09-01 19:24:30 +0300
committerDavid S. Miller <davem@davemloft.net>2015-09-02 01:06:23 +0300
commit8306b688f1a6621b9efe3b0d827e26750528b12a (patch)
tree81725f39b3e3905ec73e817ccdeeda187a298325 /include/net/flow_dissector.h
parentb840f28b908da0239c8c5d9c8cae362ad21cda97 (diff)
downloadlinux-8306b688f1a6621b9efe3b0d827e26750528b12a.tar.xz
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;