Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   1) // SPDX-License-Identifier: GPL-2.0-only
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   2) #include <linux/module.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   3) #include <linux/errno.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   4) #include <linux/socket.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   5) #include <linux/skbuff.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   6) #include <linux/ip.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   7) #include <linux/udp.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   8) #include <linux/icmpv6.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   9) #include <linux/types.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  10) #include <linux/kernel.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  11) #include <net/fou.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  12) #include <net/ip.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  13) #include <net/ip6_tunnel.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  14) #include <net/ip6_checksum.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  15) #include <net/protocol.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  16) #include <net/udp.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  17) #include <net/udp_tunnel.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  18) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  19) #if IS_ENABLED(CONFIG_IPV6_FOU_TUNNEL)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  20) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  21) static void fou6_build_udp(struct sk_buff *skb, struct ip_tunnel_encap *e,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  22) 			   struct flowi6 *fl6, u8 *protocol, __be16 sport)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  23) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  24) 	struct udphdr *uh;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  25) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  26) 	skb_push(skb, sizeof(struct udphdr));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  27) 	skb_reset_transport_header(skb);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  28) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  29) 	uh = udp_hdr(skb);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  30) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  31) 	uh->dest = e->dport;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  32) 	uh->source = sport;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  33) 	uh->len = htons(skb->len);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  34) 	udp6_set_csum(!(e->flags & TUNNEL_ENCAP_FLAG_CSUM6), skb,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  35) 		      &fl6->saddr, &fl6->daddr, skb->len);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  36) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  37) 	*protocol = IPPROTO_UDP;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  38) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  39) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  40) static int fou6_build_header(struct sk_buff *skb, struct ip_tunnel_encap *e,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  41) 			     u8 *protocol, struct flowi6 *fl6)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  42) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  43) 	__be16 sport;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  44) 	int err;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  45) 	int type = e->flags & TUNNEL_ENCAP_FLAG_CSUM6 ?
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  46) 		SKB_GSO_UDP_TUNNEL_CSUM : SKB_GSO_UDP_TUNNEL;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  47) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  48) 	err = __fou_build_header(skb, e, protocol, &sport, type);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  49) 	if (err)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  50) 		return err;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  51) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  52) 	fou6_build_udp(skb, e, fl6, protocol, sport);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  53) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  54) 	return 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  55) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  56) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  57) static int gue6_build_header(struct sk_buff *skb, struct ip_tunnel_encap *e,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  58) 			     u8 *protocol, struct flowi6 *fl6)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  59) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  60) 	__be16 sport;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  61) 	int err;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  62) 	int type = e->flags & TUNNEL_ENCAP_FLAG_CSUM6 ?
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  63) 		SKB_GSO_UDP_TUNNEL_CSUM : SKB_GSO_UDP_TUNNEL;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  64) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  65) 	err = __gue_build_header(skb, e, protocol, &sport, type);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  66) 	if (err)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  67) 		return err;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  68) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  69) 	fou6_build_udp(skb, e, fl6, protocol, sport);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  70) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  71) 	return 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  72) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  73) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  74) static int gue6_err_proto_handler(int proto, struct sk_buff *skb,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  75) 				  struct inet6_skb_parm *opt,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  76) 				  u8 type, u8 code, int offset, __be32 info)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  77) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  78) 	const struct inet6_protocol *ipprot;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  79) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  80) 	ipprot = rcu_dereference(inet6_protos[proto]);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  81) 	if (ipprot && ipprot->err_handler) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  82) 		if (!ipprot->err_handler(skb, opt, type, code, offset, info))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  83) 			return 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  84) 	}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  85) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  86) 	return -ENOENT;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  87) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  88) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  89) static int gue6_err(struct sk_buff *skb, struct inet6_skb_parm *opt,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  90) 		    u8 type, u8 code, int offset, __be32 info)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  91) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  92) 	int transport_offset = skb_transport_offset(skb);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  93) 	struct guehdr *guehdr;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  94) 	size_t len, optlen;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  95) 	int ret;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  96) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  97) 	len = sizeof(struct udphdr) + sizeof(struct guehdr);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  98) 	if (!pskb_may_pull(skb, transport_offset + len))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  99) 		return -EINVAL;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 100) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 101) 	guehdr = (struct guehdr *)&udp_hdr(skb)[1];
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 102) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 103) 	switch (guehdr->version) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 104) 	case 0: /* Full GUE header present */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 105) 		break;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 106) 	case 1: {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 107) 		/* Direct encasulation of IPv4 or IPv6 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 108) 		skb_set_transport_header(skb, -(int)sizeof(struct icmp6hdr));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 109) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 110) 		switch (((struct iphdr *)guehdr)->version) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 111) 		case 4:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 112) 			ret = gue6_err_proto_handler(IPPROTO_IPIP, skb, opt,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 113) 						     type, code, offset, info);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 114) 			goto out;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 115) 		case 6:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 116) 			ret = gue6_err_proto_handler(IPPROTO_IPV6, skb, opt,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 117) 						     type, code, offset, info);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 118) 			goto out;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 119) 		default:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 120) 			ret = -EOPNOTSUPP;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 121) 			goto out;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 122) 		}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 123) 	}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 124) 	default: /* Undefined version */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 125) 		return -EOPNOTSUPP;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 126) 	}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 127) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 128) 	if (guehdr->control)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 129) 		return -ENOENT;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 130) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 131) 	optlen = guehdr->hlen << 2;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 132) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 133) 	if (!pskb_may_pull(skb, transport_offset + len + optlen))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 134) 		return -EINVAL;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 135) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 136) 	guehdr = (struct guehdr *)&udp_hdr(skb)[1];
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 137) 	if (validate_gue_flags(guehdr, optlen))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 138) 		return -EINVAL;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 139) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 140) 	/* Handling exceptions for direct UDP encapsulation in GUE would lead to
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 141) 	 * recursion. Besides, this kind of encapsulation can't even be
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 142) 	 * configured currently. Discard this.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 143) 	 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 144) 	if (guehdr->proto_ctype == IPPROTO_UDP ||
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 145) 	    guehdr->proto_ctype == IPPROTO_UDPLITE)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 146) 		return -EOPNOTSUPP;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 147) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 148) 	skb_set_transport_header(skb, -(int)sizeof(struct icmp6hdr));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 149) 	ret = gue6_err_proto_handler(guehdr->proto_ctype, skb,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 150) 				     opt, type, code, offset, info);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 151) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 152) out:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 153) 	skb_set_transport_header(skb, transport_offset);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 154) 	return ret;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 155) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 156) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 157) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 158) static const struct ip6_tnl_encap_ops fou_ip6tun_ops = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 159) 	.encap_hlen = fou_encap_hlen,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 160) 	.build_header = fou6_build_header,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 161) 	.err_handler = gue6_err,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 162) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 163) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 164) static const struct ip6_tnl_encap_ops gue_ip6tun_ops = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 165) 	.encap_hlen = gue_encap_hlen,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 166) 	.build_header = gue6_build_header,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 167) 	.err_handler = gue6_err,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 168) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 169) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 170) static int ip6_tnl_encap_add_fou_ops(void)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 171) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 172) 	int ret;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 173) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 174) 	ret = ip6_tnl_encap_add_ops(&fou_ip6tun_ops, TUNNEL_ENCAP_FOU);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 175) 	if (ret < 0) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 176) 		pr_err("can't add fou6 ops\n");
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 177) 		return ret;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 178) 	}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 179) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 180) 	ret = ip6_tnl_encap_add_ops(&gue_ip6tun_ops, TUNNEL_ENCAP_GUE);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 181) 	if (ret < 0) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 182) 		pr_err("can't add gue6 ops\n");
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 183) 		ip6_tnl_encap_del_ops(&fou_ip6tun_ops, TUNNEL_ENCAP_FOU);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 184) 		return ret;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 185) 	}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 186) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 187) 	return 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 188) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 189) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 190) static void ip6_tnl_encap_del_fou_ops(void)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 191) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 192) 	ip6_tnl_encap_del_ops(&fou_ip6tun_ops, TUNNEL_ENCAP_FOU);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 193) 	ip6_tnl_encap_del_ops(&gue_ip6tun_ops, TUNNEL_ENCAP_GUE);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 194) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 195) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 196) #else
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 197) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 198) static int ip6_tnl_encap_add_fou_ops(void)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 199) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 200) 	return 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 201) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 202) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 203) static void ip6_tnl_encap_del_fou_ops(void)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 204) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 205) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 206) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 207) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 208) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 209) static int __init fou6_init(void)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 210) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 211) 	int ret;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 212) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 213) 	ret = ip6_tnl_encap_add_fou_ops();
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 214) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 215) 	return ret;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 216) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 217) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 218) static void __exit fou6_fini(void)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 219) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 220) 	ip6_tnl_encap_del_fou_ops();
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 221) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 222) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 223) module_init(fou6_init);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 224) module_exit(fou6_fini);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 225) MODULE_AUTHOR("Tom Herbert <therbert@google.com>");
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 226) MODULE_LICENSE("GPL");
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 227) MODULE_DESCRIPTION("Foo over UDP (IPv6)");