mirror of
https://github.com/linux-msm/laptops-kernel.git
synced 2026-08-13 14:19:53 -07:00
fou: Remove IPPROTO_UDPLITE check in gue_err() and gue6_err().
UDP-Lite has been removed, and its error handler is no longer found in either inet_protos[IPPROTO_UDPLITE] or inet6_protos[IPPROTO_UDPLITE]. The recursion fixed by the protocol check in gue_err() and gue6_err() no longer occurs with UDP-Lite. Let's remove the checks. Signed-off-by: Kuniyuki Iwashima <kuniyu@google.com> Reviewed-by: Joe Damato <joe@dama.to> Link: https://patch.msgid.link/20260316133127.2646421-1-kuniyu@google.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
committed by
Jakub Kicinski
parent
05c1fc56d3
commit
e3f741f587
+1
-2
@@ -1150,8 +1150,7 @@ static int gue_err(struct sk_buff *skb, u32 info)
|
||||
* recursion. Besides, this kind of encapsulation can't even be
|
||||
* configured currently. Discard this.
|
||||
*/
|
||||
if (guehdr->proto_ctype == IPPROTO_UDP ||
|
||||
guehdr->proto_ctype == IPPROTO_UDPLITE)
|
||||
if (guehdr->proto_ctype == IPPROTO_UDP)
|
||||
return -EOPNOTSUPP;
|
||||
|
||||
skb_set_transport_header(skb, -(int)sizeof(struct icmphdr));
|
||||
|
||||
+1
-2
@@ -141,8 +141,7 @@ static int gue6_err(struct sk_buff *skb, struct inet6_skb_parm *opt,
|
||||
* recursion. Besides, this kind of encapsulation can't even be
|
||||
* configured currently. Discard this.
|
||||
*/
|
||||
if (guehdr->proto_ctype == IPPROTO_UDP ||
|
||||
guehdr->proto_ctype == IPPROTO_UDPLITE)
|
||||
if (guehdr->proto_ctype == IPPROTO_UDP)
|
||||
return -EOPNOTSUPP;
|
||||
|
||||
skb_set_transport_header(skb, -(int)sizeof(struct icmp6hdr));
|
||||
|
||||
Reference in New Issue
Block a user