Message ID | 20240821212212.1795357-14-tom@herbertland.com (mailing list archive) |
---|---|
State | Superseded |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | flow_dissector: Dissect UDP encapsulation protocols | expand |
diff --git a/net/core/flow_dissector.c b/net/core/flow_dissector.c index ee80c2d2531c..e34c1b6c36e3 100644 --- a/net/core/flow_dissector.c +++ b/net/core/flow_dissector.c @@ -1991,6 +1991,9 @@ bool __skb_flow_dissect(const struct net *net, fdret = FLOW_DISSECT_RET_OUT_GOOD; break; } + case NEXTHDR_NONE: + fdret = FLOW_DISSECT_RET_OUT_GOOD; + break; case IPPROTO_IPIP: if (flags & FLOW_DISSECTOR_F_STOP_BEFORE_ENCAP) { fdret = FLOW_DISSECT_RET_OUT_GOOD;
Protocol number 59 (no-next-header) means nothing follows the IP header, break out of the flow dissector loop on FLOW_DISSECT_RET_OUT_GOOD when encountered in a packet Signed-off-by: Tom Herbert <tom@herbertland.com> --- net/core/flow_dissector.c | 3 +++ 1 file changed, 3 insertions(+)