summaryrefslogtreecommitdiffstats
path: root/src/vnet
diff options
context:
space:
mode:
authorBenoît Ganne <bganne@cisco.com>2020-05-20 18:53:50 +0200
committerAndrew Yourtchenko <ayourtch@gmail.com>2020-08-18 19:47:21 +0000
commit1e02f193057c36bfc3c673aabd6f6fe8c4d320ad (patch)
treeade1d2938a6a1af70c11552a215256b6a343f36d /src/vnet
parent2da354877790ffecffc58f347c4226a72926c72a (diff)
dhcp: use per-thread vlib main instead of global one
Type: fix Change-Id: I8890aa5cc3c576fc9fb68735549dfab721714310 Signed-off-by: Benoît Ganne <bganne@cisco.com> (cherry picked from commit dcd4aa2110e274f9185e1e5b47ec22d66cc23136)
Diffstat (limited to 'src/vnet')
-rw-r--r--src/vnet/dhcp/client.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vnet/dhcp/client.c b/src/vnet/dhcp/client.c
index 5412dab3f7e..3aa92c3ebb7 100644
--- a/src/vnet/dhcp/client.c
+++ b/src/vnet/dhcp/client.c
@@ -276,10 +276,10 @@ dhcp_client_for_us (u32 bi, vlib_buffer_t * b,
udp_header_t * udp, dhcp_header_t * dhcp)
{
dhcp_client_main_t *dcm = &dhcp_client_main;
- vlib_main_t *vm = dcm->vlib_main;
+ vlib_main_t *vm = vlib_get_main ();
dhcp_client_t *c;
uword *p;
- f64 now = vlib_time_now (dcm->vlib_main);
+ f64 now = vlib_time_now (vm);
u8 dhcp_message_type = 0;
dhcp_option_t *o;