diff options
Diffstat (limited to 'lib/ovs-lldp.c')
-rw-r--r-- | lib/ovs-lldp.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/ovs-lldp.c b/lib/ovs-lldp.c index a9d205ec8..2d13e971e 100644 --- a/lib/ovs-lldp.c +++ b/lib/ovs-lldp.c @@ -738,6 +738,14 @@ lldp_put_packet(struct lldp *lldp, struct dp_packet *packet, ovs_mutex_unlock(&mutex); } +/* Is LLDP enabled? + */ +bool +lldp_is_enabled(struct lldp *lldp) +{ + return lldp ? lldp->enabled : false; +} + /* Configures the LLDP stack. */ bool |