mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-31 04:01:48 -04:00
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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
b840f28b90
commit
8306b688f1
2 changed files with 7 additions and 0 deletions
|
|
@ -200,6 +200,9 @@ ip:
|
|||
}
|
||||
}
|
||||
|
||||
if (flags & FLOW_DISSECTOR_F_STOP_AT_L3)
|
||||
goto out_good;
|
||||
|
||||
break;
|
||||
}
|
||||
case htons(ETH_P_IPV6): {
|
||||
|
|
@ -238,6 +241,9 @@ ipv6:
|
|||
}
|
||||
}
|
||||
|
||||
if (flags & FLOW_DISSECTOR_F_STOP_AT_L3)
|
||||
goto out_good;
|
||||
|
||||
break;
|
||||
}
|
||||
case htons(ETH_P_8021AD):
|
||||
|
|
|
|||
Loading…
Reference in a new issue