From: Vincent Bernat Date: Sun, 7 Aug 2016 08:19:14 +0000 (+0200) Subject: interface: more media for *BSD X-Git-Tag: 0.9.5~21 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3760ac537c631157ee8f7f19a038ed9137f74e64;p=thirdparty%2Flldpd.git interface: more media for *BSD OpenBSD and FreeBSD didn't agree on symbol names. Use #ifdef everywhere. --- 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} };