Go to file
Zhenlei Huang 76df3c57a0 ifconfig: Redo fix vlan/vlanproto reconfiguration
When the if_vlan(4) interface has not been fully configured, i.e., a
bare interface without a physical interface associated with it,
retrieving the current settings of it and unconditionally overwriting
`params` will result in losing vlandev settings in `params`. That will
lead to failing to associate the if_vlan(4) interface with the requested
physical interface and the false report 'both vlan and vlandev must be
specified'.

Fix that by checking if the vlan interface has been fully configured.

The basic VLAN test is slightly modified to cover this case.

PR:		279181
Reviewed by:	kp
Tested by:	Mike Tancsa <mike@sentex.net>
Fixes:		b82b8055ad ifconfig: fix vlan/vlanproto reconfiguration
MFC after:	3 days
Differential Revision:	https://reviews.freebsd.org/D45283
2024-05-22 00:35:01 +08:00
.cirrus-ci Cirrus-CI: add some timing info on pkg install failure 2021-08-04 15:02:00 -04:00
.github .github: Update the path used for the homebrew LLVM install on macOS 2024-05-02 15:05:15 -07:00
bin man filesystems: fix xrefs after move to section 4 2024-05-16 10:25:29 -06:00
cddl libzpool: Disable -Wpointer-to-int-cast warnings for GCC 2024-05-07 13:54:00 -07:00
contrib libdiff: Detect and recover from file truncation. 2024-05-20 15:26:33 +02:00
crypto heimdal: Fix compiling hdb ldap as a module 2024-04-23 22:54:20 -07:00
etc libdiff: Add a test for the truncation issue. 2024-05-20 15:26:42 +02:00
gnu misc: Remove ancient SCCS tags. 2023-11-26 22:23:27 -07:00
include ssp: appease -Wgnu-statement-expression-from-macro-expansion 2024-05-14 18:22:18 -05:00
kerberos5 kerberos5: Mitigate the possibility of using an old libcrypto 2024-01-18 07:12:14 -08:00
lib diff: Nits in tests. 2024-05-20 16:27:50 +02:00
libexec fix (nuageinit): SSH keys are not handled in metadata but in userdata 2024-05-21 16:52:42 +02:00
release release: make dependencies, not recursive make 2024-05-09 00:52:25 -07:00
rescue Remove gbde from rescue 2024-05-07 07:23:38 +00:00
sbin ifconfig: Redo fix vlan/vlanproto reconfiguration 2024-05-22 00:35:01 +08:00
secure openssl: don't export nonexistant symbols 2024-04-22 21:28:51 +01:00
share Add man page for the ice network driver. 2024-05-21 07:53:02 +02:00
stand loader: fix stupid typos 2024-05-19 23:04:18 -06:00
sys uipc_shm: Fix double check for shmfd->shm_path 2024-05-21 09:39:53 -04:00
targets Remove gbde from the "userland" pseudo-target 2024-05-07 07:35:14 +00:00
tests ifconfig: Redo fix vlan/vlanproto reconfiguration 2024-05-22 00:35:01 +08:00
tools Make WITHOUT_UNDEFINED_VERSION the default 2024-05-20 15:40:19 +01:00
usr.bin man: the exists function needs to validate the first parameter 2024-05-20 16:02:21 +00:00
usr.sbin bsdinstall: Fix wifi network selection size 2024-05-20 13:39:29 -03:00
.arcconfig arcanist: use FreeBSD/git project repository instead of FreeBSD/svn 2022-08-23 14:16:41 +00:00
.arclint
.cirrus.yml Cirrus-CI: switch to llvm18 by default 2024-04-07 17:23:25 -04:00
.clang-format clang-format: Minor tweaks 2024-04-30 17:33:43 -04:00
.git-blame-ignore-revs Add another commit to .git-blame-ignore-revs 2024-03-15 23:11:52 +00:00
.gitattributes Remove SVN related Git attributes 2023-12-26 10:28:28 -07:00
.gitignore Vendor import of OpenSSH 9.7p1 2024-03-17 13:47:10 -04:00
.mailmap mailmap: Translate olce's personal address to olce@FreeBSD.org 2024-01-04 15:59:01 +01:00
CONTRIBUTING.md CONTRIBUTING.md/style: spring cleaning 2024-05-10 15:07:03 -06:00
COPYRIGHT copyright: Bump the copyright date. 2023-12-31 23:15:43 -07:00
LOCKS Update LOCKS for Git 2023-12-26 10:28:25 -07:00
MAINTAINERS MAINTAINERS: change linuxkpi review Phabricator group. 2024-01-16 19:23:39 +00:00
Makefile Update example from gcc6 to gcc13 2024-05-09 08:16:15 -06:00
Makefile.inc1 Improve broken-on-gcc checks 2024-05-17 21:50:57 +01:00
Makefile.libcompat build{libcompat}: Pass UNIVERSE_TOOLCHAIN_PATH to the _lc_build-tools submake 2023-08-21 21:00:45 -07:00
Makefile.sys.inc Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
ObsoleteFiles.inc man filesystems: ObsoleteFiles after move to sec 4 2024-05-16 10:25:13 -06:00
README.md Update README.md to add pointer to release page. 2024-05-09 20:40:46 -06:00
RELNOTES RELNOTES: Mention hw.snd.version being removed 2024-05-06 20:35:35 +02:00
UPDATING package: move OpenBSM auditing into its own package 2024-04-28 22:33:06 -06:00

FreeBSD Source:

This is the top level of the FreeBSD source directory.

FreeBSD is an operating system used to power modern servers, desktops, and embedded platforms. A large community has continually developed it for more than thirty years. Its advanced networking, security, and storage features have made FreeBSD the platform of choice for many of the busiest web sites and most pervasive embedded networking and storage devices.

For copyright information, please see the file COPYRIGHT in this directory. Additional copyright information also exists for some sources in this tree - please see the specific source directories for more information.

The Makefile in this directory supports a number of targets for building components (or all) of the FreeBSD source tree. See build(7), config(8), FreeBSD handbook on building userland, and Handbook for kernels for more information, including setting make(1) variables.

For information on the CPU architectures and platforms supported by FreeBSD, see the FreeBSD website's Platforms page.

For official FreeBSD bootable images, see the release page.

Source Roadmap:

Directory Description
bin System/user commands.
cddl Various commands and libraries under the Common Development and Distribution License.
contrib Packages contributed by 3rd parties.
crypto Cryptography stuff (see crypto/README).
etc Template files for /etc.
gnu Commands and libraries under the GNU General Public License (GPL) or Lesser General Public License (LGPL). Please see gnu/COPYING and gnu/COPYING.LIB for more information.
include System include files.
kerberos5 Kerberos5 (Heimdal) package.
lib System libraries.
libexec System daemons.
release Release building Makefile & associated tools.
rescue Build system for statically linked /rescue utilities.
sbin System commands.
secure Cryptographic libraries and commands.
share Shared resources.
stand Boot loader sources.
sys Kernel sources (see sys/README.md).
targets Support for experimental DIRDEPS_BUILD
tests Regression tests which can be run by Kyua. See tests/README for additional information.
tools Utilities for regression testing and miscellaneous tasks.
usr.bin User commands.
usr.sbin System administration commands.

For information on synchronizing your source tree with one or more of the FreeBSD Project's development branches, please see FreeBSD Handbook.