mirror of
https://github.com/opnsense/src.git
synced 2026-07-15 20:13:02 -04:00
Deprecate the useless argument to -vlandev.
Submitted by: Fredrik Lindberg <fli+freebsd-current at shapeshifter.se> (implementation) Reviewed by: brooks MFC after: 5 days
This commit is contained in:
parent
f3b5092061
commit
b0dcc11c43
2 changed files with 10 additions and 5 deletions
|
|
@ -1220,16 +1220,17 @@ interface recognizes that the
|
|||
parent interface supports insertion and extraction of VLAN tags on its
|
||||
own (usually in firmware) and that it should pass packets to and from
|
||||
the parent unaltered.
|
||||
.It Fl vlandev Ar iface
|
||||
.It Fl vlandev Op Ar iface
|
||||
If the driver is a
|
||||
.Xr vlan 4
|
||||
pseudo device, disassociate the physical interface
|
||||
.Ar iface
|
||||
from it.
|
||||
pseudo device, disassociate the parent interface from it.
|
||||
This breaks the link between the
|
||||
.Xr vlan 4
|
||||
interface and its parent,
|
||||
clears its VLAN tag, flags and its link address and shuts the interface down.
|
||||
The
|
||||
.Ar iface
|
||||
argument is useless and hence deprecated.
|
||||
.El
|
||||
.Pp
|
||||
The
|
||||
|
|
|
|||
|
|
@ -130,6 +130,9 @@ unsetvlandev(const char *val, int d, int s, const struct afswtch *afp)
|
|||
{
|
||||
struct vlanreq vreq;
|
||||
|
||||
if (val != NULL)
|
||||
warnx("argument to -vlandev is useless and hence deprecated");
|
||||
|
||||
bzero((char *)&vreq, sizeof(struct vlanreq));
|
||||
ifr.ifr_data = (caddr_t)&vreq;
|
||||
|
||||
|
|
@ -148,7 +151,8 @@ unsetvlandev(const char *val, int d, int s, const struct afswtch *afp)
|
|||
static struct cmd vlan_cmds[] = {
|
||||
DEF_CMD_ARG("vlan", setvlantag),
|
||||
DEF_CMD_ARG("vlandev", setvlandev),
|
||||
DEF_CMD_ARG("-vlandev", unsetvlandev),
|
||||
/* XXX For compatibility. Should become DEF_CMD() some day. */
|
||||
DEF_CMD_OPTARG("-vlandev", unsetvlandev),
|
||||
DEF_CMD("vlanmtu", IFCAP_VLAN_MTU, setifcap),
|
||||
DEF_CMD("-vlanmtu", -IFCAP_VLAN_MTU, setifcap),
|
||||
DEF_CMD("vlanhwtag", IFCAP_VLAN_HWTAGGING, setifcap),
|
||||
|
|
|
|||
Loading…
Reference in a new issue