hc
2023-12-09 b22da3d8526a935aa31e086e63f60ff3246cb61c
kernel/include/net/seg6.h
....@@ -1,14 +1,9 @@
1
+/* SPDX-License-Identifier: GPL-2.0-or-later */
12 /*
23 * SR-IPv6 implementation
34 *
45 * Author:
56 * David Lebrun <david.lebrun@uclouvain.be>
6
- *
7
- *
8
- * This program is free software; you can redistribute it and/or
9
- * modify it under the terms of the GNU General Public License
10
- * as published by the Free Software Foundation; either version
11
- * 2 of the License, or (at your option) any later version.
127 */
138
149 #ifndef _NET_SEG6_H
....@@ -16,7 +11,6 @@
1611
1712 #include <linux/net.h>
1813 #include <linux/ipv6.h>
19
-#include <net/lwtunnel.h>
2014 #include <linux/seg6.h>
2115 #include <linux/rhashtable-types.h>
2216
....@@ -63,7 +57,7 @@
6357 extern int seg6_local_init(void);
6458 extern void seg6_local_exit(void);
6559
66
-extern bool seg6_validate_srh(struct ipv6_sr_hdr *srh, int len);
60
+extern bool seg6_validate_srh(struct ipv6_sr_hdr *srh, int len, bool reduced);
6761 extern int seg6_do_srh_encap(struct sk_buff *skb, struct ipv6_sr_hdr *osrh,
6862 int proto);
6963 extern int seg6_do_srh_inline(struct sk_buff *skb, struct ipv6_sr_hdr *osrh);