Re: [PATCH net v3 2/4] psp: support ipv6 extension headers in psp_dev_rcv() decap

From
Todd Bert Freed <hidden>
Date
2026-10-27 17:58:08
Also in
linux-kselftest, linux-rdma, lkml
Reply to
Jakub Kicinski, 2026-10-27
BTW I haven't looked closely but is there no existing helper that
would give you the ability to walk the extension headers?
The closest candidate I could find is ipv6_find_hdr() in net/ipv6/exthdrs_core.c

I don't think it quite works though, because it doesn't return the
location of the
l4 proto nexthdr (only its value). Also, we would still need to traverse the
headers separately in order to implement the reject cases.

There seem to be a quite a few "walk the extension headers" implementations
which seems somewhat justified because they have different stopping
criteria.

-Todd
Thread (16 messages) 16 messages, 5 authors, last reply 20d ago
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help