diff options
author | Dave Barach <dave@barachs.net> | 2018-09-16 11:03:04 -0400 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2018-09-16 23:35:03 +0000 |
commit | 40ea3f59dca497e5f4b5a8440a9c8c2e37396701 (patch) | |
tree | be080d38b01ef4b56ff422efdadc00a4a95b94ed /src/plugins/cdp/cdp.h | |
parent | b023d59d4c67a69e559f265aff3d103207b247ce (diff) |
Register cdp_input when enabled for the first time
Graceful handling of unknown tlv types
Change-Id: Idbc9ed524fc8b865c8e12571813cc73548bde480
Signed-off-by: Dave Barach <dave@barachs.net>
Diffstat (limited to 'src/plugins/cdp/cdp.h')
-rw-r--r-- | src/plugins/cdp/cdp.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/cdp/cdp.h b/src/plugins/cdp/cdp.h index 32a07825ecb..ab2ab95e895 100644 --- a/src/plugins/cdp/cdp.h +++ b/src/plugins/cdp/cdp.h @@ -95,6 +95,7 @@ typedef struct /* top-level state */ int enabled; + int cdp_protocol_registered; /* Packet templates for different encap types */ vlib_packet_template_t packet_templates[CDP_N_PACKET_TEMPLATES]; |