Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Typos. A bunch of typos I've been collecting.
[vpp.git]
/
src
/
vnet
/
dhcp
/
dhcp_api.c
diff --git
a/src/vnet/dhcp/dhcp_api.c
b/src/vnet/dhcp/dhcp_api.c
index
5aed4c0
..
c96c3e1
100644
(file)
--- a/
src/vnet/dhcp/dhcp_api.c
+++ b/
src/vnet/dhcp/dhcp_api.c
@@
-25,6
+25,8
@@
#include <vnet/dhcp/dhcp_proxy.h>
#include <vnet/dhcp/client.h>
#include <vnet/dhcp/dhcp6_pd_client_dp.h>
#include <vnet/dhcp/dhcp_proxy.h>
#include <vnet/dhcp/client.h>
#include <vnet/dhcp/dhcp6_pd_client_dp.h>
+#include <vnet/dhcp/dhcp6_ia_na_client_dp.h>
+#include <vnet/dhcp/dhcp6_client_common_dp.h>
#include <vnet/fib/fib_table.h>
#include <vnet/vnet_msg_enum.h>
#include <vnet/fib/fib_table.h>
#include <vnet/vnet_msg_enum.h>
@@
-53,7
+55,10
@@
_(DHCP_CLIENT_CONFIG, dhcp_client_config) \
_(DHCP_CLIENT_DUMP, dhcp_client_dump) \
_(WANT_DHCP6_PD_REPLY_EVENTS, want_dhcp6_pd_reply_events) \
_(DHCP6_PD_SEND_CLIENT_MESSAGE, dhcp6_pd_send_client_message) \
_(DHCP_CLIENT_DUMP, dhcp_client_dump) \
_(WANT_DHCP6_PD_REPLY_EVENTS, want_dhcp6_pd_reply_events) \
_(DHCP6_PD_SEND_CLIENT_MESSAGE, dhcp6_pd_send_client_message) \
-_(DHCP6_CLIENTS_ENABLE_DISABLE, dhcp6_clients_enable_disable)
+_(WANT_DHCP6_REPLY_EVENTS, want_dhcp6_reply_events) \
+_(DHCP6_SEND_CLIENT_MESSAGE, dhcp6_send_client_message) \
+_(DHCP6_CLIENTS_ENABLE_DISABLE, dhcp6_clients_enable_disable) \
+_(DHCP6_DUID_LL_SET, dhcp6_duid_ll_set)
static void
static void
@@
-143,7
+148,7
@@
dhcp_send_details (fib_protocol_t proto,
mp = vl_msg_api_alloc (n);
if (!mp)
return;
mp = vl_msg_api_alloc (n);
if (!mp)
return;
- memset (mp, 0, n);
+
clib_
memset (mp, 0, n);
mp->_vl_msg_id = ntohs (VL_API_DHCP_PROXY_DETAILS);
mp->context = context;
mp->count = count;
mp->_vl_msg_id = ntohs (VL_API_DHCP_PROXY_DETAILS);
mp->context = context;
mp->count = count;
@@
-319,7
+324,7
@@
send_dhcp_client_entry (const dhcp_client_t * client, void *arg)
ctx = arg;
mp = vl_msg_api_alloc (sizeof (*mp));
ctx = arg;
mp = vl_msg_api_alloc (sizeof (*mp));
- memset (mp, 0, sizeof (*mp));
+
clib_
memset (mp, 0, sizeof (*mp));
mp->_vl_msg_id = ntohs (VL_API_DHCP_CLIENT_DETAILS);
mp->context = ctx->context;
mp->_vl_msg_id = ntohs (VL_API_DHCP_CLIENT_DETAILS);
mp->context = ctx->context;
@@
-351,7
+356,7
@@
vl_api_dhcp_client_dump_t_handler (vl_api_dhcp_client_dump_t * mp)
/*
* dhcp_api_hookup
* Add vpe's API message handlers to the table.
/*
* dhcp_api_hookup
* Add vpe's API message handlers to the table.
- * vlib has alread mapped shared memory and
+ * vlib has alread
y
mapped shared memory and
* added the client registration handlers.
* See .../vlib-api/vlibmemory/memclnt_vlib.c:memclnt_process()
*/
* added the client registration handlers.
* See .../vlib-api/vlibmemory/memclnt_vlib.c:memclnt_process()
*/
@@
-389,6
+394,8
@@
dhcp_api_hookup (vlib_main_t * vm)
dhcp6_pd_set_publisher_node (dhcp6_pd_reply_process_node.index,
DHCP6_PD_DP_REPLY_REPORT);
dhcp6_pd_set_publisher_node (dhcp6_pd_reply_process_node.index,
DHCP6_PD_DP_REPLY_REPORT);
+ dhcp6_set_publisher_node (dhcp6_reply_process_node.index,
+ DHCP6_DP_REPLY_REPORT);
return 0;
}
return 0;
}