TAILQ_FOREACH(hardware, &scfg->g_hardware, h_entries) {
TAILQ_FOREACH(port, &hardware->h_rports, p_entries) {
if (SMART_HIDDEN(port)) continue;
+#ifdef ENABLE_LLDPMED
if (withmed && !port->p_chassis->c_med_cap_available) continue;
+#endif
index[0] = lastchange(port);
index[1] = hardware->h_ifindex;
index[2] = port->p_chassis->c_index;
return header_index_best();
}
+#ifdef ENABLE_LLDPMED
#define TPR_VARIANT_MED_POLICY 2
#define TPR_VARIANT_MED_LOCATION 3
static void*
}
return header_index_best();
}
+#endif
#ifdef ENABLE_DOT1
static struct lldpd_vlan*
return (u_char *)&long_ret;
default:
return NULL;
- }
+ }
}
static u_char*
agent_h_remote_med_policy(struct variable *vp, oid *name, size_t *length,
return c->config->c_receiveonly;
case lldpctl_k_config_advertise_version:
return c->config->c_advertise_version;
+#ifdef ENABLE_LLDPMED
case lldpctl_k_config_lldpmed_noinventory:
return c->config->c_noinventory;
+#endif
default:
return SET_ERROR(atom->conn, LLDPCTL_ERR_NOT_EXIST);
}