Message ID | 20240815214527.2100137-13-tom@herbertland.com (mailing list archive) |
---|---|
State | Superseded |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | flow_dissector: Dissect UDP encapsulation protocols | expand |
Tom Herbert wrote: > 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> Reviewed-by: Willem de Bruijn <willemb@google.com>
diff --git a/net/core/flow_dissector.c b/net/core/flow_dissector.c index b2abccf8aac2..fb1ca7d024de 100644 --- a/net/core/flow_dissector.c +++ b/net/core/flow_dissector.c @@ -1971,6 +1971,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(+)