From 3760ac537c631157ee8f7f19a038ed9137f74e64 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Sun, 7 Aug 2016 10:19:14 +0200 Subject: [PATCH] interface: more media for *BSD OpenBSD and FreeBSD didn't agree on symbol names. Use #ifdef everywhere. --- src/daemon/interfaces-bsd.c | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/src/daemon/interfaces-bsd.c b/src/daemon/interfaces-bsd.c index a2c3c501..458e02cd 100644 --- a/src/daemon/interfaces-bsd.c +++ b/src/daemon/interfaces-bsd.c @@ -541,8 +541,26 @@ ifbsd_macphy(struct lldpd *cfg, LLDP_DOT3_MAU_10GIGBASESR, LLDP_DOT3_MAU_10GIGBASESR}, {IFM_10G_CX4, LLDP_DOT3_MAU_10GIGBASELX4, LLDP_DOT3_MAU_10GIGBASELX4}, +#ifdef IFM_10G_T {IFM_10G_T, - LLDP_DOT3_MAU_10GIGBASER, LLDP_DOT3_MAU_10GIGBASER}, // no better, same as for Linux + LLDP_DOT3_MAU_10GIGBASECX4, LLDP_DOT3_MAU_10GIGBASECX4}, +#endif +#ifdef IFM_10G_TWINAX + {IFM_10G_TWINAX, + LLDP_DOT3_MAU_10GIGBASECX4, LLDP_DOT3_MAU_10GIGBASECX4}, +#endif +#ifdef IFM_10G_TWINAX_LONG + {IFM_10G_TWINAX_LONG, + LLDP_DOT3_MAU_10GIGBASECX4, LLDP_DOT3_MAU_10GIGBASECX4}, +#endif +#ifdef IFM_10G_LRM + {IFM_10G_LRM, + LLDP_DOT3_MAU_10GIGBASELR, LLDP_DOT3_MAU_10GIGBASELR}, +#endif +#ifdef IFM_10G_SFP_CU + {IFM_10G_SFP_CU, + LLDP_DOT3_MAU_10GIGBASECX4, LLDP_DOT3_MAU_10GIGBASECX4}, +#endif {0, 0, 0} }; -- 2.39.5