From 81fde499e52c166ba44b947ec621b6808b46d939 Mon Sep 17 00:00:00 2001 From: Donald Lee Date: Tue, 22 Jun 2021 05:04:06 +0800 Subject: [PATCH] lib: Use noop decoder for bgp_script values Signed-off-by: Donald Lee --- lib/frrscript.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/frrscript.h b/lib/frrscript.h index 5942c3dce8..502921539a 100644 --- a/lib/frrscript.h +++ b/lib/frrscript.h @@ -120,7 +120,8 @@ union sockunion * : lua_pushsockunion, \ time_t * : lua_pushtimet, \ char * : lua_pushstring_wrapper, \ struct attr * : lua_pushattr, \ -struct peer * : lua_pushpeer \ +struct peer * : lua_pushpeer, \ +const struct prefix * : lua_pushprefix \ )(L, value) #define DECODE_ARGS_WITH_STATE(L, value) \ @@ -133,7 +134,9 @@ struct in6_addr * : lua_decode_in6addr, \ union sockunion * : lua_decode_sockunion, \ time_t * : lua_decode_timet, \ char * : lua_decode_stringp, \ -struct attr * : lua_decode_attr \ +struct attr * : lua_decode_attr, \ +struct peer * : lua_decode_noop, \ +const struct prefix * : lua_decode_noop \ )(L, -1, value) /* -- 2.39.5