aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/dhcp/dhcp4_proxy_error.def
diff options
context:
space:
mode:
authorDave Barach <dave@barachs.net>2020-04-10 10:18:35 -0400
committerDave Barach <dave@barachs.net>2020-04-10 10:19:20 -0400
commite2568b5d0a5e34f02adda788e51ed0147644bec9 (patch)
tree26b8a039841cb44d7520f4eb2a64dcf1f3cc5be8 /src/vnet/dhcp/dhcp4_proxy_error.def
parentd212187f02c0179f2f86bb3fdbf3f51a087ea23b (diff)
misc: check return values from vlib_buffer_copy(...)
vlib_buffer_copy(...) returns NULL if the system is temporarily out of buffers. This is NOT correct. Please don't be this person: c0 = vlib_buffer_copy (vm, p0); ci0 = vlib_get_buffer_index (vm, c0); Type: fix Signed-off-by: Dave Barach <dave@barachs.net> (cherry picked from commit c25ef58965871ea5d2b40904df9506803f69e47e) Change-Id: I6cd4f289c4fadc3f36c3203b53546e9a788ef99b
Diffstat (limited to 'src/vnet/dhcp/dhcp4_proxy_error.def')
-rw-r--r--src/vnet/dhcp/dhcp4_proxy_error.def2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vnet/dhcp/dhcp4_proxy_error.def b/src/vnet/dhcp/dhcp4_proxy_error.def
index adf04808fa3..f0388564e17 100644
--- a/src/vnet/dhcp/dhcp4_proxy_error.def
+++ b/src/vnet/dhcp/dhcp4_proxy_error.def
@@ -29,4 +29,4 @@ dhcp_proxy_error (OPTION_82_VSS_NOT_PROCESSED, "DHCP VSS not processed by DHCP s
dhcp_proxy_error (BAD_YIADDR, "DHCP packets with bad your_ip_address fields")
dhcp_proxy_error (BAD_SVR_FIB_OR_ADDRESS, "DHCP packets not from DHCP server or server FIB.")
dhcp_proxy_error (PKT_TOO_BIG, "DHCP packets which are too big.")
-
+dhcp_proxy_error (ALLOC_FAIL, "DHCP buffer allocation failures.")