]> git.puffer.fish Git - mirror/frr.git/commitdiff
lib: Use noop decoder for bgp_script values
authorDonald Lee <dlqs@gmx.com>
Mon, 21 Jun 2021 21:04:06 +0000 (05:04 +0800)
committerDonald Lee <dlqs@gmx.com>
Mon, 21 Jun 2021 21:08:25 +0000 (05:08 +0800)
Signed-off-by: Donald Lee <dlqs@gmx.com>
lib/frrscript.h

index 5942c3dce8dd3ac9242f0bb3317f12eeb1d6dcea..502921539af1f25cd98bf3bc93493540c4cfb2de 100644 (file)
@@ -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)
 
 /*