]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Linux: Use SIOCSIFVLAN rather than SIOCSIFVLAN
authorRoy Marples <roy@marples.name>
Sat, 19 Sep 2020 19:36:07 +0000 (20:36 +0100)
committerRoy Marples <roy@marples.name>
Sat, 19 Sep 2020 19:36:07 +0000 (20:36 +0100)
src/if-linux.c

index 94622d7d1ef36143f61556b2705b7cbb2e2cd5b4..41d80d19829cf7ec61e9ba50d227c5310a84557d 100644 (file)
@@ -363,7 +363,7 @@ if_vlanid(const struct interface *ifp)
        memset(&v, 0, sizeof(v));
        strlcpy(v.device1, ifp->name, sizeof(v.device1));
        v.cmd = GET_VLAN_VID_CMD;
-       if (ioctl(ifp->ctx->pf_inet_fd, SIOCSIFVLAN, &v) != 0)
+       if (ioctl(ifp->ctx->pf_inet_fd, SIOCGIFVLAN, &v) != 0)
                return 0; /* 0 means no VLANID */
        return (unsigned short)v.u.VID;
 }