From 49f512cd8cf2f8a52a548ceaeda959f67f47d78f Mon Sep 17 00:00:00 2001 From: jsg Date: Fri, 8 May 2026 03:36:04 +0000 Subject: [PATCH] make ifconfig build without trunklacp.h The only used part of trunklacp.h in ifconfig is LACP_STATE_BITS. Add it to if_trunk.h so trunklacp.h can be removed. ok dlg@ --- sbin/ifconfig/ifconfig.c | 3 +-- sys/net/if_trunk.h | 13 ++++++++++++- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/sbin/ifconfig/ifconfig.c b/sbin/ifconfig/ifconfig.c index 806a2138800..37df55d66a8 100644 --- a/sbin/ifconfig/ifconfig.c +++ b/sbin/ifconfig/ifconfig.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ifconfig.c,v 1.480 2025/12/03 10:19:27 stsp Exp $ */ +/* $OpenBSD: ifconfig.c,v 1.481 2026/05/08 03:36:04 jsg Exp $ */ /* $NetBSD: ifconfig.c,v 1.40 1997/10/01 02:19:43 enami Exp $ */ /* @@ -83,7 +83,6 @@ #include #include #include -#include #include #include diff --git a/sys/net/if_trunk.h b/sys/net/if_trunk.h index 5a4845a34c8..0de789100f0 100644 --- a/sys/net/if_trunk.h +++ b/sys/net/if_trunk.h @@ -1,4 +1,4 @@ -/* $OpenBSD: if_trunk.h,v 1.33 2025/11/24 23:40:00 dlg Exp $ */ +/* $OpenBSD: if_trunk.h,v 1.34 2026/05/08 03:36:04 jsg Exp $ */ /* * Copyright (c) 2005, 2006, 2007 Reyk Floeter @@ -88,6 +88,17 @@ struct lacp_opreq { u_int8_t partner_state; }; +#define LACP_STATE_BITS \ + "\020" \ + "\001ACTIVITY" \ + "\002TIMEOUT" \ + "\003AGGREGATION" \ + "\004SYNC" \ + "\005COLLECTING" \ + "\006DISTRIBUTING" \ + "\007DEFAULTED" \ + "\010EXPIRED" + /* Trunk port settings */ struct trunk_reqport { char rp_ifname[IFNAMSIZ]; /* name of the trunk */