diff options
author | ccardenas <ccardenas@cvs.openbsd.org> | 2018-05-12 02:02:35 +0000 |
---|---|---|
committer | ccardenas <ccardenas@cvs.openbsd.org> | 2018-05-12 02:02:35 +0000 |
commit | e3ea27f6e0a284d8598acf45c98ad39cf726ef19 (patch) | |
tree | afd3259f801b54305a0f3f5c309d9e8c1928f2ee /sys/net | |
parent | 0aa498214acc011221f7b1d6dd97ce0a64338176 (diff) |
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@
Diffstat (limited to 'sys/net')
-rw-r--r-- | sys/net/trunklacp.h | 24 |
1 files changed, 12 insertions, 12 deletions
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; |