| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-or-later */ |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * SR-IPv6 implementation |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Author: |
|---|
| 5 | 6 | * 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. |
|---|
| 12 | 7 | */ |
|---|
| 13 | 8 | |
|---|
| 14 | 9 | #ifndef _NET_SEG6_H |
|---|
| .. | .. |
|---|
| 16 | 11 | |
|---|
| 17 | 12 | #include <linux/net.h> |
|---|
| 18 | 13 | #include <linux/ipv6.h> |
|---|
| 19 | | -#include <net/lwtunnel.h> |
|---|
| 20 | 14 | #include <linux/seg6.h> |
|---|
| 21 | 15 | #include <linux/rhashtable-types.h> |
|---|
| 22 | 16 | |
|---|
| .. | .. |
|---|
| 63 | 57 | extern int seg6_local_init(void); |
|---|
| 64 | 58 | extern void seg6_local_exit(void); |
|---|
| 65 | 59 | |
|---|
| 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); |
|---|
| 67 | 61 | extern int seg6_do_srh_encap(struct sk_buff *skb, struct ipv6_sr_hdr *osrh, |
|---|
| 68 | 62 | int proto); |
|---|
| 69 | 63 | extern int seg6_do_srh_inline(struct sk_buff *skb, struct ipv6_sr_hdr *osrh); |
|---|