From abcbb8205d2d3131347e54987485495a77a7a9f4 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Wed, 9 Jun 2010 14:59:22 +0200 Subject: [PATCH] Group together related configuration information. In "struct lldpd", system description configuration was scattered into the structure. --- src/lldpd.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/lldpd.h b/src/lldpd.h index 4fd6d159..90fa9855 100644 --- a/src/lldpd.h +++ b/src/lldpd.h @@ -288,11 +288,6 @@ struct lldpd { int g_delay; struct protocol *g_protocols; -#ifdef ENABLE_LLDPMED - int g_noinventory; -#endif - int g_advertise_version; - time_t g_lastsent; int g_lastrid; #ifdef USE_SNMP @@ -308,6 +303,10 @@ struct lldpd { char *g_descr_override; char *g_lsb_release; + int g_advertise_version; +#ifdef ENABLE_LLDPMED + int g_noinventory; +#endif #define LOCAL_CHASSIS(cfg) ((struct lldpd_chassis *)(TAILQ_FIRST(&cfg->g_chassis))) TAILQ_HEAD(, lldpd_chassis) g_chassis; -- 2.39.5