diff options
author | Neale Ranns <neale.ranns@cisco.com> | 2016-10-28 06:31:54 -0700 |
---|---|---|
committer | John Lo <loj@cisco.com> | 2016-10-29 13:15:14 +0000 |
commit | 8c1bebe83f7e277a36b8f570ed88363a5f3639b3 (patch) | |
tree | ea4354126fd522761496af7d8fb035c362eaee2b /vnet/vnet/dpo/classify_dpo.c | |
parent | 435a64b530cef7d7a09624717f5235711acef459 (diff) |
IPv6 Classify Forwarding Graph errors
Fix a few places where the protocol of the DPO object was incorrectly set and hence the graph traversed by the packet jumped between ip4 and ip6 nodes.
Change-Id: I75c4ecfdf79df39f5dbb7c68f1fc82ff04aaed28
Signed-off-by: Neale Ranns <neale.ranns@cisco.com>
Diffstat (limited to 'vnet/vnet/dpo/classify_dpo.c')
-rw-r--r-- | vnet/vnet/dpo/classify_dpo.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/vnet/vnet/dpo/classify_dpo.c b/vnet/vnet/dpo/classify_dpo.c index 93f3f0ae275..9e7886c9edd 100644 --- a/vnet/vnet/dpo/classify_dpo.c +++ b/vnet/vnet/dpo/classify_dpo.c @@ -40,7 +40,7 @@ classify_dpo_get_index (classify_dpo_t *cd) } index_t -classify_dpo_create (fib_protocol_t proto, +classify_dpo_create (dpo_proto_t proto, u32 classify_table_index) { classify_dpo_t *cd; @@ -61,7 +61,8 @@ format_classify_dpo (u8 *s, va_list *args) cd = classify_dpo_get(index); - return (format(s, "classify:[%d]:table:%d", + return (format(s, "%U-classify:[%d]:table:%d", + format_dpo_proto, cd->cd_proto, index, cd->cd_table_index)); } |