The branch stable/14 has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=878d3bdb59d70b2ce077f4bbdefea0ec875d6e82
commit 878d3bdb59d70b2ce077f4bbdefea0ec875d6e82 Author: Zhenlei Huang <z...@freebsd.org> AuthorDate: 2025-08-01 16:33:09 +0000 Commit: Zhenlei Huang <z...@freebsd.org> CommitDate: 2025-08-15 04:53:21 +0000 ifconfig: Garbage collect unused parameter swabips and the macro EN_SWABIPS. The macro EN_SWABIPS is identical to IFF_LINK0 (also historically IFF_LLC0) and we already have the parameter link0 to toggle IFF_LINK0. These were inherited from 386BSD 0.1 and have never been used since the very first FreeBSD release. Reviewed by: adrian, #network MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D51368 (cherry picked from commit 8632e4e73a6934f3f9996a18932e36b04e6a3faf) --- sbin/ifconfig/ifconfig.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/sbin/ifconfig/ifconfig.c b/sbin/ifconfig/ifconfig.c index 5cf1ae6b79b7..c1e3e0af83c2 100644 --- a/sbin/ifconfig/ifconfig.c +++ b/sbin/ifconfig/ifconfig.c @@ -2028,11 +2028,6 @@ static struct cmd basic_cmds[] = { DEF_CMD("-alias", -IFF_UP, notealias), DEF_CMD("delete", -IFF_UP, notealias), DEF_CMD("remove", -IFF_UP, notealias), -#ifdef notdef -#define EN_SWABIPS 0x1000 - DEF_CMD("swabips", EN_SWABIPS, setifflags), - DEF_CMD("-swabips", EN_SWABIPS, clearifflags), -#endif DEF_CMD_ARG("netmask", setifnetmask), DEF_CMD_ARG("metric", setifmetric), DEF_CMD_ARG("broadcast", setifbroadaddr),