X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvnet%2Ftcp%2Ftcp_api.c;h=db488e1c52a792d582efd3db09294f0a0e54a9a7;hb=39d69112fcec114fde34955ceb41555221d3ba11;hp=4c3e49ee4fbf2a4e893a59941f82ba092f2d4f7c;hpb=3bbcfab119483ef07543242df2c4bb9b4c82b9ac;p=vpp.git diff --git a/src/vnet/tcp/tcp_api.c b/src/vnet/tcp/tcp_api.c index 4c3e49ee4fb..db488e1c52a 100644 --- a/src/vnet/tcp/tcp_api.c +++ b/src/vnet/tcp/tcp_api.c @@ -2,7 +2,7 @@ *------------------------------------------------------------------ * tcp_api.c - vnet tcp-layer apis * - * Copyright (c) 2017 Cisco and/or its affiliates. + * Copyright (c) 2017-2019 Cisco and/or its affiliates. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at: @@ -83,7 +83,7 @@ setup_message_id_table (api_main_t * am) static clib_error_t * tcp_api_hookup (vlib_main_t * vm) { - api_main_t *am = &api_main; + api_main_t *am = vlibapi_get_main (); #define _(N,n) \ vl_msg_api_set_handlers(VL_API_##N, #n, \