From e3ea27f6e0a284d8598acf45c98ad39cf726ef19 Mon Sep 17 00:00:00 2001 From: ccardenas Date: Sat, 12 May 2018 02:02:35 +0000 Subject: Make LACP_STATE_BITS accessible to userland Update ifconfig to display LACP State (Actor and Partner) on each trunk port Ok benno@, phessler@, and tb@ --- sys/net/trunklacp.h | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'sys/net') diff --git a/sys/net/trunklacp.h b/sys/net/trunklacp.h index 98ba86157ff..869076aa4ea 100644 --- a/sys/net/trunklacp.h +++ b/sys/net/trunklacp.h @@ -1,4 +1,4 @@ -/* $OpenBSD: trunklacp.h,v 1.12 2017/10/29 08:36:10 mpi Exp $ */ +/* $OpenBSD: trunklacp.h,v 1.13 2018/05/12 02:02:34 ccardenas Exp $ */ /* $NetBSD: ieee8023ad_impl.h,v 1.2 2005/12/10 23:21:39 elad Exp $ */ /* @@ -110,6 +110,17 @@ struct lacp_markerinfo { u_int8_t mi_pad[2]; } __packed; +#define LACP_STATE_BITS \ + "\020" \ + "\001ACTIVITY" \ + "\002TIMEOUT" \ + "\003AGGREGATION" \ + "\004SYNC" \ + "\005COLLECTING" \ + "\006DISTRIBUTING" \ + "\007DEFAULTED" \ + "\010EXPIRED" + #ifdef _KERNEL /* @@ -142,17 +153,6 @@ struct lacp_markerinfo { #define LACP_PORT_NTT 0x00000001 #define LACP_PORT_MARK 0x00000002 -#define LACP_STATE_BITS \ - "\020" \ - "\001ACTIVITY" \ - "\002TIMEOUT" \ - "\003AGGREGATION" \ - "\004SYNC" \ - "\005COLLECTING" \ - "\006DISTRIBUTING" \ - "\007DEFAULTED" \ - "\010EXPIRED" - struct markerdu { struct ether_header mdu_eh; struct slowprothdr mdu_sph; -- cgit v1.2.3