From: Roy Marples Date: Sat, 19 Sep 2020 19:36:07 +0000 (+0100) Subject: Linux: Use SIOCSIFVLAN rather than SIOCSIFVLAN X-Git-Tag: v9.3.0~36 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cf6e2fdc8e70c0a7cb0641144d55317eba196987;p=thirdparty%2Fdhcpcd.git Linux: Use SIOCSIFVLAN rather than SIOCSIFVLAN --- diff --git a/src/if-linux.c b/src/if-linux.c index 94622d7d..41d80d19 100644 --- a/src/if-linux.c +++ b/src/if-linux.c @@ -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; }