the privileged process.
+ LLDP-MED capability TLV is not sent when LLDP-MED is not enabled,
even if other LLDP-MED TLV are present.
- + Invoke lldpcli for initial configuration later (after dropping
- privileges).
* Fix:
+ Compilation fix with older versions of GCC.
+ Don't use ethtool at all to get real MAC address for enslaved
}
#endif
- log_debug("main", "initialize privilege separation");
-#ifdef ENABLE_PRIVSEP
- priv_init(PRIVSEP_CHROOT, ctl, uid, gid);
-#else
- priv_init(PRIVSEP_CHROOT, ctl, 0, 0);
-#endif
-
/* Configuration with lldpcli */
if (lldpcli) {
log_debug("main", "invoking lldpcli for configuration");
lsb_release = lldpd_get_lsb_release();
}
+ log_debug("main", "initialize privilege separation");
+#ifdef ENABLE_PRIVSEP
+ priv_init(PRIVSEP_CHROOT, ctl, uid, gid);
+#else
+ priv_init(PRIVSEP_CHROOT, ctl, 0, 0);
+#endif
+
/* Initialization of global configuration */
if ((cfg = (struct lldpd *)
calloc(1, sizeof(struct lldpd))) == NULL)