git: ff9f76a206c8 - main - if_ovpn: use IFT_TUNNEL

From: Kristof Provost <kp_at_FreeBSD.org>
Date: Mon, 17 Nov 2025 22:06:24 UTC
The branch main has been updated by kp:

URL: https://cgit.FreeBSD.org/src/commit/?id=ff9f76a206c80c263050816735d537a151ee2999

commit ff9f76a206c80c263050816735d537a151ee2999
Author:     Kristof Provost <kp@FreeBSD.org>
AuthorDate: 2025-11-17 19:42:24 +0000
Commit:     Kristof Provost <kp@FreeBSD.org>
CommitDate: 2025-11-17 22:05:45 +0000

    if_ovpn: use IFT_TUNNEL
    
    IFT_ENC has special behaviour in pf we don't desire, and this also ensures that
    for all interface types there is N:1:1 correspondence between if_type:dlt:header len.
    
    Requested by:   glebius
    MFC after:      1 week
---
 sys/net/if_ovpn.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/net/if_ovpn.c b/sys/net/if_ovpn.c
index 1c18baac3417..674df4d17eb4 100644
--- a/sys/net/if_ovpn.c
+++ b/sys/net/if_ovpn.c
@@ -2691,7 +2691,7 @@ ovpn_clone_create(struct if_clone *ifc, char *name, size_t len,
 		return (EEXIST);
 
 	sc = malloc(sizeof(struct ovpn_softc), M_OVPN, M_WAITOK | M_ZERO);
-	sc->ifp = if_alloc(IFT_ENC);
+	sc->ifp = if_alloc(IFT_TUNNEL);
 	rm_init_flags(&sc->lock, "if_ovpn_lock", RM_RECURSE);
 	sc->refcount = 0;