Summary: | ifconfig vlan option parsing is overly fussy | ||
---|---|---|---|
Product: | Base System | Reporter: | Daniel O'Connor <darius> |
Component: | bin | Assignee: | Alexander V. Chernikov <melifaro> |
Status: | Closed FIXED | ||
Severity: | Affects Some People | CC: | melifaro, pat |
Priority: | --- | ||
Version: | 13.0-STABLE | ||
Hardware: | Any | ||
OS: | Any |
Description
Daniel O'Connor
2022-01-12 04:10:30 UTC
Thank you for the report! The shorter way is just running "ifconfig em0.5 create inet 192.168.20.20/24", so ifconfig deduces parent interface and vlan tag from the interface name. However, the provided example should indeed just work. I'll take a look at it at the weekend. A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=779fd05344662aeec79c29470258bf657318eab3 commit 779fd05344662aeec79c29470258bf657318eab3 Author: Alexander V. Chernikov <melifaro@FreeBSD.org> AuthorDate: 2022-01-17 09:30:26 +0000 Commit: Alexander V. Chernikov <melifaro@FreeBSD.org> CommitDate: 2022-01-17 09:35:15 +0000 ifconfig: improve vlan options parsing PR: 261136 Reported by: Daniel O'Connor MFC after: 2 weeks sbin/ifconfig/ifvlan.c | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) A commit in branch stable/13 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=157bf2c9964a54124e05bb7c354d8e5ad784802a commit 157bf2c9964a54124e05bb7c354d8e5ad784802a Author: Alexander V. Chernikov <melifaro@FreeBSD.org> AuthorDate: 2022-01-17 09:30:26 +0000 Commit: Alexander V. Chernikov <melifaro@FreeBSD.org> CommitDate: 2022-03-28 08:50:12 +0000 ifconfig: improve vlan options parsing PR: 261136 Reported by: Daniel O'Connor MFC after: 2 weeks (cherry picked from commit 779fd05344662aeec79c29470258bf657318eab3) sbin/ifconfig/ifvlan.c | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) A commit in branch releng/13.1 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=2eb4ac1e6fc946ca8d175863b16602885fae61b7 commit 2eb4ac1e6fc946ca8d175863b16602885fae61b7 Author: Alexander V. Chernikov <melifaro@FreeBSD.org> AuthorDate: 2022-01-17 09:30:26 +0000 Commit: Alexander V. Chernikov <melifaro@FreeBSD.org> CommitDate: 2022-03-28 15:25:23 +0000 ifconfig: improve vlan options parsing PR: 261136 Reported by: Daniel O'Connor Approved by: re(gjb) MFC after: 2 weeks (cherry picked from commit 779fd05344662aeec79c29470258bf657318eab3) (cherry picked from commit 157bf2c9964a54124e05bb7c354d8e5ad784802a) sbin/ifconfig/ifvlan.c | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) Should be fixed in 13.1 and 13-STABLE. I'm going to close it in a couple of days if there are no objections. I'll close it - sorry, wasn't sure what the protocol was. |