The branch main has been updated by jhb:

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

commit 2884a93651a85d419e271b8fb6aaf3d91408d545
Author:     John Baldwin <[email protected]>
AuthorDate: 2022-04-13 23:08:21 +0000
Commit:     John Baldwin <[email protected]>
CommitDate: 2022-04-13 23:08:21 +0000

    vlan: ifa is only used under #ifdef INET.
---
 sys/net/if_vlan.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/sys/net/if_vlan.c b/sys/net/if_vlan.c
index c8256dc087a5..2bb5284c2129 100644
--- a/sys/net/if_vlan.c
+++ b/sys/net/if_vlan.c
@@ -1938,14 +1938,18 @@ vlan_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
 {
        struct ifnet *p;
        struct ifreq *ifr;
+#ifdef INET
        struct ifaddr *ifa;
+#endif
        struct ifvlan *ifv;
        struct ifvlantrunk *trunk;
        struct vlanreq vlr;
        int error = 0, oldmtu;
 
        ifr = (struct ifreq *)data;
+#ifdef INET
        ifa = (struct ifaddr *) data;
+#endif
        ifv = ifp->if_softc;
 
        switch (cmd) {

Reply via email to