1 /* SPDX-License-Identifier: LGPL-2.1+ */
6 #include <linux/if_tunnel.h>
7 #include <linux/ip6_tunnel.h>
10 #include <linux/fou.h>
13 #include "sd-netlink.h"
15 #include "conf-parser.h"
17 #include "networkd-link.h"
18 #include "netdev/tunnel.h"
19 #include "parse-util.h"
20 #include "string-table.h"
21 #include "string-util.h"
24 #define DEFAULT_TNL_HOP_LIMIT 64
25 #define IP6_FLOWINFO_FLOWLABEL htobe32(0x000FFFFF)
26 #define IP6_TNL_F_ALLOW_LOCAL_REMOTE 0x40
28 static const char* const ip6tnl_mode_table
[_NETDEV_IP6_TNL_MODE_MAX
] = {
29 [NETDEV_IP6_TNL_MODE_IP6IP6
] = "ip6ip6",
30 [NETDEV_IP6_TNL_MODE_IPIP6
] = "ipip6",
31 [NETDEV_IP6_TNL_MODE_ANYIP6
] = "any",
34 DEFINE_STRING_TABLE_LOOKUP(ip6tnl_mode
, Ip6TnlMode
);
35 DEFINE_CONFIG_PARSE_ENUM(config_parse_ip6tnl_mode
, ip6tnl_mode
, Ip6TnlMode
, "Failed to parse ip6 tunnel Mode");
37 static int netdev_ipip_fill_message_create(NetDev
*netdev
, Link
*link
, sd_netlink_message
*m
) {
38 Tunnel
*t
= IPIP(netdev
);
44 assert(IN_SET(t
->family
, AF_INET
, AF_UNSPEC
));
47 r
= sd_netlink_message_append_u32(m
, IFLA_IPTUN_LINK
, link
->ifindex
);
49 return log_netdev_error_errno(netdev
, r
, "Could not append IFLA_IPTUN_LINK attribute: %m");
52 r
= sd_netlink_message_append_in_addr(m
, IFLA_IPTUN_LOCAL
, &t
->local
.in
);
54 return log_netdev_error_errno(netdev
, r
, "Could not append IFLA_IPTUN_LOCAL attribute: %m");
56 r
= sd_netlink_message_append_in_addr(m
, IFLA_IPTUN_REMOTE
, &t
->remote
.in
);
58 return log_netdev_error_errno(netdev
, r
, "Could not append IFLA_IPTUN_REMOTE attribute: %m");
60 r
= sd_netlink_message_append_u8(m
, IFLA_IPTUN_TTL
, t
->ttl
);
62 return log_netdev_error_errno(netdev
, r
, "Could not append IFLA_IPTUN_TTL attribute: %m");
64 r
= sd_netlink_message_append_u8(m
, IFLA_IPTUN_PMTUDISC
, t
->pmtudisc
);
66 return log_netdev_error_errno(netdev
, r
, "Could not append IFLA_IPTUN_PMTUDISC attribute: %m");
70 r
= sd_netlink_message_append_u16(m
, IFLA_IPTUN_ENCAP_TYPE
, t
->fou_encap_type
);
72 return log_netdev_error_errno(netdev
, r
, "Could not append IFLA_IPTUN_ENCAP_TYPE attribute: %m");
74 r
= sd_netlink_message_append_u16(m
, IFLA_IPTUN_ENCAP_SPORT
, htobe16(t
->encap_src_port
));
76 return log_netdev_error_errno(netdev
, r
, "Could not append IFLA_IPTUN_ENCAP_SPORT attribute: %m");
78 r
= sd_netlink_message_append_u16(m
, IFLA_IPTUN_ENCAP_DPORT
, htobe16(t
->fou_destination_port
));
80 return log_netdev_error_errno(netdev
, r
, "Could not append IFLA_IPTUN_ENCAP_DPORT attribute: %m");
86 static int netdev_sit_fill_message_create(NetDev
*netdev
, Link
*link
, sd_netlink_message
*m
) {
87 Tunnel
*t
= SIT(netdev
);
93 assert(IN_SET(t
->family
, AF_INET
, AF_UNSPEC
));
96 r
= sd_netlink_message_append_u32(m
, IFLA_IPTUN_LINK
, link
->ifindex
);
98 return log_netdev_error_errno(netdev
, r
, "Could not append IFLA_IPTUN_LINK attribute: %m");
101 r
= sd_netlink_message_append_in_addr(m
, IFLA_IPTUN_LOCAL
, &t
->local
.in
);
103 return log_netdev_error_errno(netdev
, r
, "Could not append IFLA_IPTUN_LOCAL attribute: %m");
105 r
= sd_netlink_message_append_in_addr(m
, IFLA_IPTUN_REMOTE
, &t
->remote
.in
);
107 return log_netdev_error_errno(netdev
, r
, "Could not append IFLA_IPTUN_REMOTE attribute: %m");
109 r
= sd_netlink_message_append_u8(m
, IFLA_IPTUN_TTL
, t
->ttl
);
111 return log_netdev_error_errno(netdev
, r
, "Could not append IFLA_IPTUN_TTL attribute: %m");
113 r
= sd_netlink_message_append_u8(m
, IFLA_IPTUN_PMTUDISC
, t
->pmtudisc
);
115 return log_netdev_error_errno(netdev
, r
, "Could not append IFLA_IPTUN_PMTUDISC attribute: %m");
120 static int netdev_gre_fill_message_create(NetDev
*netdev
, Link
*link
, sd_netlink_message
*m
) {
126 if (netdev
->kind
== NETDEV_KIND_GRE
)
132 assert(IN_SET(t
->family
, AF_INET
, AF_UNSPEC
));
136 r
= sd_netlink_message_append_u32(m
, IFLA_GRE_LINK
, link
->ifindex
);
138 return log_netdev_error_errno(netdev
, r
, "Could not append IFLA_GRE_LINK attribute: %m");
141 r
= sd_netlink_message_append_in_addr(m
, IFLA_GRE_LOCAL
, &t
->local
.in
);
143 return log_netdev_error_errno(netdev
, r
, "Could not append IFLA_GRE_LOCAL attribute: %m");
145 r
= sd_netlink_message_append_in_addr(m
, IFLA_GRE_REMOTE
, &t
->remote
.in
);
147 log_netdev_error_errno(netdev
, r
, "Could not append IFLA_GRE_REMOTE attribute: %m");
149 r
= sd_netlink_message_append_u8(m
, IFLA_GRE_TTL
, t
->ttl
);
151 return log_netdev_error_errno(netdev
, r
, "Could not append IFLA_GRE_TTL attribute: %m");
153 r
= sd_netlink_message_append_u8(m
, IFLA_GRE_TOS
, t
->tos
);
155 log_netdev_error_errno(netdev
, r
, "Could not append IFLA_GRE_TOS attribute: %m");
157 r
= sd_netlink_message_append_u8(m
, IFLA_GRE_PMTUDISC
, t
->pmtudisc
);
159 return log_netdev_error_errno(netdev
, r
, "Could not append IFLA_GRE_PMTUDISC attribute: %m");
164 static int netdev_ip6gre_fill_message_create(NetDev
*netdev
, Link
*link
, sd_netlink_message
*m
) {
170 if (netdev
->kind
== NETDEV_KIND_IP6GRE
)
173 t
= IP6GRETAP(netdev
);
176 assert(t
->family
== AF_INET6
);
180 r
= sd_netlink_message_append_u32(m
, IFLA_GRE_LINK
, link
->ifindex
);
182 return log_netdev_error_errno(netdev
, r
, "Could not append IFLA_GRE_LINK attribute: %m");
185 r
= sd_netlink_message_append_in6_addr(m
, IFLA_GRE_LOCAL
, &t
->local
.in6
);
187 return log_netdev_error_errno(netdev
, r
, "Could not append IFLA_GRE_LOCAL attribute: %m");
189 r
= sd_netlink_message_append_in6_addr(m
, IFLA_GRE_REMOTE
, &t
->remote
.in6
);
191 return log_netdev_error_errno(netdev
, r
, "Could not append IFLA_GRE_REMOTE attribute: %m");
193 r
= sd_netlink_message_append_u8(m
, IFLA_GRE_TTL
, t
->ttl
);
195 return log_netdev_error_errno(netdev
, r
, "Could not append IFLA_GRE_TTL attribute: %m");
197 if (t
->ipv6_flowlabel
!= _NETDEV_IPV6_FLOWLABEL_INVALID
) {
198 r
= sd_netlink_message_append_u32(m
, IFLA_GRE_FLOWINFO
, t
->ipv6_flowlabel
);
200 return log_netdev_error_errno(netdev
, r
, "Could not append IFLA_GRE_FLOWINFO attribute: %m");
203 r
= sd_netlink_message_append_u32(m
, IFLA_GRE_FLAGS
, t
->flags
);
205 return log_netdev_error_errno(netdev
, r
, "Could not append IFLA_GRE_FLAGS attribute: %m");
210 static int netdev_vti_fill_message_key(NetDev
*netdev
, Link
*link
, sd_netlink_message
*m
) {
217 if (netdev
->kind
== NETDEV_KIND_VTI
)
225 ikey
= okey
= htobe32(t
->key
);
227 ikey
= htobe32(t
->ikey
);
228 okey
= htobe32(t
->okey
);
231 r
= sd_netlink_message_append_u32(m
, IFLA_VTI_IKEY
, ikey
);
233 return log_netdev_error_errno(netdev
, r
, "Could not append IFLA_VTI_IKEY attribute: %m");
235 r
= sd_netlink_message_append_u32(m
, IFLA_VTI_OKEY
, okey
);
237 return log_netdev_error_errno(netdev
, r
, "Could not append IFLA_VTI_OKEY attribute: %m");
242 static int netdev_vti_fill_message_create(NetDev
*netdev
, Link
*link
, sd_netlink_message
*m
) {
243 Tunnel
*t
= VTI(netdev
);
249 assert(t
->family
== AF_INET
);
252 r
= sd_netlink_message_append_u32(m
, IFLA_VTI_LINK
, link
->ifindex
);
254 return log_netdev_error_errno(netdev
, r
, "Could not append IFLA_IPTUN_LINK attribute: %m");
257 r
= netdev_vti_fill_message_key(netdev
, link
, m
);
261 r
= sd_netlink_message_append_in_addr(m
, IFLA_VTI_LOCAL
, &t
->local
.in
);
263 return log_netdev_error_errno(netdev
, r
, "Could not append IFLA_IPTUN_LOCAL attribute: %m");
265 r
= sd_netlink_message_append_in_addr(m
, IFLA_VTI_REMOTE
, &t
->remote
.in
);
267 return log_netdev_error_errno(netdev
, r
, "Could not append IFLA_IPTUN_REMOTE attribute: %m");
272 static int netdev_vti6_fill_message_create(NetDev
*netdev
, Link
*link
, sd_netlink_message
*m
) {
273 Tunnel
*t
= VTI6(netdev
);
279 assert(t
->family
== AF_INET6
);
282 r
= sd_netlink_message_append_u32(m
, IFLA_VTI_LINK
, link
->ifindex
);
284 return log_netdev_error_errno(netdev
, r
, "Could not append IFLA_IPTUN_LINK attribute: %m");
287 r
= netdev_vti_fill_message_key(netdev
, link
, m
);
291 r
= sd_netlink_message_append_in6_addr(m
, IFLA_VTI_LOCAL
, &t
->local
.in6
);
293 return log_netdev_error_errno(netdev
, r
, "Could not append IFLA_IPTUN_LOCAL attribute: %m");
295 r
= sd_netlink_message_append_in6_addr(m
, IFLA_VTI_REMOTE
, &t
->remote
.in6
);
297 return log_netdev_error_errno(netdev
, r
, "Could not append IFLA_IPTUN_REMOTE attribute: %m");
302 static int netdev_ip6tnl_fill_message_create(NetDev
*netdev
, Link
*link
, sd_netlink_message
*m
) {
303 Tunnel
*t
= IP6TNL(netdev
);
310 assert(t
->family
== AF_INET6
);
313 r
= sd_netlink_message_append_u32(m
, IFLA_IPTUN_LINK
, link
->ifindex
);
315 return log_netdev_error_errno(netdev
, r
, "Could not append IFLA_IPTUN_LINK attribute: %m");
318 r
= sd_netlink_message_append_in6_addr(m
, IFLA_IPTUN_LOCAL
, &t
->local
.in6
);
320 return log_netdev_error_errno(netdev
, r
, "Could not append IFLA_IPTUN_LOCAL attribute: %m");
322 r
= sd_netlink_message_append_in6_addr(m
, IFLA_IPTUN_REMOTE
, &t
->remote
.in6
);
324 return log_netdev_error_errno(netdev
, r
, "Could not append IFLA_IPTUN_REMOTE attribute: %m");
326 r
= sd_netlink_message_append_u8(m
, IFLA_IPTUN_TTL
, t
->ttl
);
328 return log_netdev_error_errno(netdev
, r
, "Could not append IFLA_IPTUN_TTL attribute: %m");
330 if (t
->ipv6_flowlabel
!= _NETDEV_IPV6_FLOWLABEL_INVALID
) {
331 r
= sd_netlink_message_append_u32(m
, IFLA_IPTUN_FLOWINFO
, t
->ipv6_flowlabel
);
333 return log_netdev_error_errno(netdev
, r
, "Could not append IFLA_IPTUN_FLOWINFO attribute: %m");
337 t
->flags
|= IP6_TNL_F_RCV_DSCP_COPY
;
339 if (t
->allow_localremote
!= -1)
340 SET_FLAG(t
->flags
, IP6_TNL_F_ALLOW_LOCAL_REMOTE
, t
->allow_localremote
);
342 if (t
->encap_limit
!= IPV6_DEFAULT_TNL_ENCAP_LIMIT
) {
343 r
= sd_netlink_message_append_u8(m
, IFLA_IPTUN_ENCAP_LIMIT
, t
->encap_limit
);
345 return log_netdev_error_errno(netdev
, r
, "Could not append IFLA_IPTUN_ENCAP_LIMIT attribute: %m");
348 r
= sd_netlink_message_append_u32(m
, IFLA_IPTUN_FLAGS
, t
->flags
);
350 return log_netdev_error_errno(netdev
, r
, "Could not append IFLA_IPTUN_FLAGS attribute: %m");
352 switch (t
->ip6tnl_mode
) {
353 case NETDEV_IP6_TNL_MODE_IP6IP6
:
354 proto
= IPPROTO_IPV6
;
356 case NETDEV_IP6_TNL_MODE_IPIP6
:
357 proto
= IPPROTO_IPIP
;
359 case NETDEV_IP6_TNL_MODE_ANYIP6
:
365 r
= sd_netlink_message_append_u8(m
, IFLA_IPTUN_PROTO
, proto
);
367 return log_netdev_error_errno(netdev
, r
, "Could not append IFLA_IPTUN_MODE attribute: %m");
372 static int netdev_tunnel_verify(NetDev
*netdev
, const char *filename
) {
378 switch (netdev
->kind
) {
379 case NETDEV_KIND_IPIP
:
382 case NETDEV_KIND_SIT
:
385 case NETDEV_KIND_GRE
:
388 case NETDEV_KIND_GRETAP
:
391 case NETDEV_KIND_IP6GRE
:
394 case NETDEV_KIND_IP6GRETAP
:
395 t
= IP6GRETAP(netdev
);
397 case NETDEV_KIND_VTI
:
400 case NETDEV_KIND_VTI6
:
403 case NETDEV_KIND_IP6TNL
:
407 assert_not_reached("Invalid tunnel kind");
412 if (!IN_SET(t
->family
, AF_INET
, AF_INET6
, AF_UNSPEC
)) {
413 log_netdev_error(netdev
,
414 "Tunnel with invalid address family configured in %s. Ignoring", filename
);
418 if (IN_SET(netdev
->kind
, NETDEV_KIND_VTI
, NETDEV_KIND_IPIP
, NETDEV_KIND_GRE
, NETDEV_KIND_GRETAP
) &&
419 (t
->family
!= AF_INET
|| in_addr_is_null(t
->family
, &t
->local
))) {
420 log_netdev_error(netdev
,
421 "vti/ipip/gre/gretap tunnel without a local IPv4 address configured in %s. Ignoring", filename
);
425 if (IN_SET(netdev
->kind
, NETDEV_KIND_VTI6
, NETDEV_KIND_IP6TNL
, NETDEV_KIND_IP6GRE
) &&
426 (t
->family
!= AF_INET6
|| in_addr_is_null(t
->family
, &t
->local
))) {
427 log_netdev_error(netdev
,
428 "vti6/ip6tnl/ip6gre tunnel without a local IPv6 address configured in %s. Ignoring", filename
);
432 if (netdev
->kind
== NETDEV_KIND_IP6TNL
&&
433 t
->ip6tnl_mode
== _NETDEV_IP6_TNL_MODE_INVALID
) {
434 log_netdev_error(netdev
,
435 "ip6tnl without mode configured in %s. Ignoring", filename
);
439 if (t
->fou_tunnel
&& t
->fou_destination_port
<= 0) {
440 log_netdev_error(netdev
, "FooOverUDP missing port configured in %s. Ignoring", filename
);
447 int config_parse_tunnel_address(const char *unit
,
448 const char *filename
,
451 unsigned section_line
,
457 Tunnel
*t
= userdata
;
458 union in_addr_union
*addr
= data
, buffer
;
466 /* This is used to parse addresses on both local and remote ends of the tunnel.
467 * Address families must match.
469 * "any" is a special value which means that the address is unspecified.
472 if (streq(rvalue
, "any")) {
473 *addr
= IN_ADDR_NULL
;
475 /* As a special case, if both the local and remote addresses are
476 * unspecified, also clear the address family.
478 if (t
->family
!= AF_UNSPEC
&&
479 in_addr_is_null(t
->family
, &t
->local
) &&
480 in_addr_is_null(t
->family
, &t
->remote
))
481 t
->family
= AF_UNSPEC
;
485 r
= in_addr_from_string_auto(rvalue
, &f
, &buffer
);
487 log_syntax(unit
, LOG_ERR
, filename
, line
, r
,
488 "Tunnel address \"%s\" invalid, ignoring assignment: %m", rvalue
);
492 if (t
->family
!= AF_UNSPEC
&& t
->family
!= f
) {
493 log_syntax(unit
, LOG_ERR
, filename
, line
, 0,
494 "Tunnel addresses incompatible, ignoring assignment: %s", rvalue
);
503 int config_parse_tunnel_key(const char *unit
,
504 const char *filename
,
507 unsigned section_line
,
513 union in_addr_union buffer
;
514 Tunnel
*t
= userdata
;
523 r
= in_addr_from_string(AF_INET
, rvalue
, &buffer
);
525 r
= safe_atou32(rvalue
, &k
);
527 log_syntax(unit
, LOG_ERR
, filename
, line
, 0, "Failed to parse tunnel key ignoring assignment: %s", rvalue
);
531 k
= be32toh(buffer
.in
.s_addr
);
533 if (streq(lvalue
, "Key"))
535 else if (streq(lvalue
, "InputKey"))
543 int config_parse_ipv6_flowlabel(const char* unit
,
544 const char *filename
,
547 unsigned section_line
,
553 IPv6FlowLabel
*ipv6_flowlabel
= data
;
554 Tunnel
*t
= userdata
;
561 assert(ipv6_flowlabel
);
563 if (streq(rvalue
, "inherit")) {
564 *ipv6_flowlabel
= IP6_FLOWINFO_FLOWLABEL
;
565 t
->flags
|= IP6_TNL_F_USE_ORIG_FLOWLABEL
;
567 r
= config_parse_int(unit
, filename
, line
, section
, section_line
, lvalue
, ltype
, rvalue
, &k
, userdata
);
572 log_syntax(unit
, LOG_ERR
, filename
, line
, 0, "Failed to parse IPv6 flowlabel option, ignoring: %s", rvalue
);
574 *ipv6_flowlabel
= htobe32(k
) & IP6_FLOWINFO_FLOWLABEL
;
575 t
->flags
&= ~IP6_TNL_F_USE_ORIG_FLOWLABEL
;
582 int config_parse_encap_limit(const char* unit
,
583 const char *filename
,
586 unsigned section_line
,
592 Tunnel
*t
= userdata
;
600 if (streq(rvalue
, "none"))
601 t
->flags
|= IP6_TNL_F_IGN_ENCAP_LIMIT
;
603 r
= safe_atoi(rvalue
, &k
);
605 log_syntax(unit
, LOG_ERR
, filename
, line
, r
, "Failed to parse Tunnel Encapsulation Limit option, ignoring: %s", rvalue
);
609 if (k
> 255 || k
< 0)
610 log_syntax(unit
, LOG_ERR
, filename
, line
, 0, "Invalid Tunnel Encapsulation value, ignoring: %d", k
);
613 t
->flags
&= ~IP6_TNL_F_IGN_ENCAP_LIMIT
;
620 static void ipip_init(NetDev
*n
) {
627 t
->fou_encap_type
= FOU_ENCAP_DIRECT
;
630 static void sit_init(NetDev
*n
) {
639 static void vti_init(NetDev
*n
) {
644 if (n
->kind
== NETDEV_KIND_VTI
)
654 static void gre_init(NetDev
*n
) {
659 if (n
->kind
== NETDEV_KIND_GRE
)
669 static void ip6gre_init(NetDev
*n
) {
674 if (n
->kind
== NETDEV_KIND_IP6GRE
)
681 t
->ttl
= DEFAULT_TNL_HOP_LIMIT
;
684 static void ip6tnl_init(NetDev
*n
) {
685 Tunnel
*t
= IP6TNL(n
);
690 t
->ttl
= DEFAULT_TNL_HOP_LIMIT
;
691 t
->encap_limit
= IPV6_DEFAULT_TNL_ENCAP_LIMIT
;
692 t
->ip6tnl_mode
= _NETDEV_IP6_TNL_MODE_INVALID
;
693 t
->ipv6_flowlabel
= _NETDEV_IPV6_FLOWLABEL_INVALID
;
694 t
->allow_localremote
= -1;
697 const NetDevVTable ipip_vtable
= {
698 .object_size
= sizeof(Tunnel
),
700 .sections
= "Match\0NetDev\0Tunnel\0",
701 .fill_message_create
= netdev_ipip_fill_message_create
,
702 .create_type
= NETDEV_CREATE_STACKED
,
703 .config_verify
= netdev_tunnel_verify
,
706 const NetDevVTable sit_vtable
= {
707 .object_size
= sizeof(Tunnel
),
709 .sections
= "Match\0NetDev\0Tunnel\0",
710 .fill_message_create
= netdev_sit_fill_message_create
,
711 .create_type
= NETDEV_CREATE_STACKED
,
712 .config_verify
= netdev_tunnel_verify
,
715 const NetDevVTable vti_vtable
= {
716 .object_size
= sizeof(Tunnel
),
718 .sections
= "Match\0NetDev\0Tunnel\0",
719 .fill_message_create
= netdev_vti_fill_message_create
,
720 .create_type
= NETDEV_CREATE_STACKED
,
721 .config_verify
= netdev_tunnel_verify
,
724 const NetDevVTable vti6_vtable
= {
725 .object_size
= sizeof(Tunnel
),
727 .sections
= "Match\0NetDev\0Tunnel\0",
728 .fill_message_create
= netdev_vti6_fill_message_create
,
729 .create_type
= NETDEV_CREATE_STACKED
,
730 .config_verify
= netdev_tunnel_verify
,
733 const NetDevVTable gre_vtable
= {
734 .object_size
= sizeof(Tunnel
),
736 .sections
= "Match\0NetDev\0Tunnel\0",
737 .fill_message_create
= netdev_gre_fill_message_create
,
738 .create_type
= NETDEV_CREATE_STACKED
,
739 .config_verify
= netdev_tunnel_verify
,
742 const NetDevVTable gretap_vtable
= {
743 .object_size
= sizeof(Tunnel
),
745 .sections
= "Match\0NetDev\0Tunnel\0",
746 .fill_message_create
= netdev_gre_fill_message_create
,
747 .create_type
= NETDEV_CREATE_STACKED
,
748 .config_verify
= netdev_tunnel_verify
,
751 const NetDevVTable ip6gre_vtable
= {
752 .object_size
= sizeof(Tunnel
),
754 .sections
= "Match\0NetDev\0Tunnel\0",
755 .fill_message_create
= netdev_ip6gre_fill_message_create
,
756 .create_type
= NETDEV_CREATE_STACKED
,
757 .config_verify
= netdev_tunnel_verify
,
760 const NetDevVTable ip6gretap_vtable
= {
761 .object_size
= sizeof(Tunnel
),
763 .sections
= "Match\0NetDev\0Tunnel\0",
764 .fill_message_create
= netdev_ip6gre_fill_message_create
,
765 .create_type
= NETDEV_CREATE_STACKED
,
766 .config_verify
= netdev_tunnel_verify
,
769 const NetDevVTable ip6tnl_vtable
= {
770 .object_size
= sizeof(Tunnel
),
772 .sections
= "Match\0NetDev\0Tunnel\0",
773 .fill_message_create
= netdev_ip6tnl_fill_message_create
,
774 .create_type
= NETDEV_CREATE_STACKED
,
775 .config_verify
= netdev_tunnel_verify
,