Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
udp: refactor udp code
[vpp.git]
/
src
/
vnet
/
cdp
/
cdp_periodic.c
diff --git
a/src/vnet/cdp/cdp_periodic.c
b/src/vnet/cdp/cdp_periodic.c
index
de11107
..
8899c49
100644
(file)
--- a/
src/vnet/cdp/cdp_periodic.c
+++ b/
src/vnet/cdp/cdp_periodic.c
@@
-125,6
+125,9
@@
send_ethernet_hello (cdp_main_t * cm, cdp_neighbor_t * n, int count)
h0 = vlib_packet_template_get_packet
(vm, &cm->packet_templates[n->packet_template_index], &bi0);
+ if (!h0)
+ break;
+
/* Add the interface's ethernet source address */
hw = vnet_get_sup_hw_interface (vnm, n->sw_if_index);