Mercurial > hg > dhcpcd
changeset 5460:5f999efcfe01 draft
Linux: Use SIOCSIFVLAN rather than SIOCSIFVLAN
| author | Roy Marples <roy@marples.name> |
|---|---|
| date | Sat, 19 Sep 2020 20:36:07 +0100 |
| parents | 4ac77faa4990 |
| children | 30f55aaa5fd6 |
| files | src/if-linux.c |
| diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/if-linux.c Sat Sep 19 18:58:52 2020 +0100 +++ b/src/if-linux.c Sat Sep 19 20:36:07 2020 +0100 @@ -363,7 +363,7 @@ 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; }
