Date: Thu, 07 Dec 2023 09:16:14 +0000 From: bugzilla-noreply@freebsd.org To: standards@FreeBSD.org Subject: [Bug 275586] Undocumented feature of ifconfig UP Message-ID: <bug-275586-99-U8yH8ng38I@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-275586-99@https.bugs.freebsd.org/bugzilla/> References: <bug-275586-99@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D275586 Kristof Provost <kp@freebsd.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kp@freebsd.org --- Comment #1 from Kristof Provost <kp@freebsd.org> --- It's not so much an undocumented feature as it is an unexpected result of a documented feature. What's happening here is that 'UP' is not 'up', so it's not recognised as a command, but is being interpreted as a hostname: address For the inet family, the address is either a host name present= in the host name data base, hosts(5), or an IPv4 address expresse= d in the Internet standard =E2=80=9Cdot notation=E2=80=9D. So ifconfig thinks you're trying to assign the name 'UP', so it resolves it, which happens to work on your network and result in 192.41.170.42, which it then assigns. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-275586-99-U8yH8ng38I>