diff options
| author | Donald Lee <dlqs@gmx.com> | 2021-06-22 05:04:06 +0800 | 
|---|---|---|
| committer | Donald Lee <dlqs@gmx.com> | 2021-06-22 05:08:25 +0800 | 
| commit | 81fde499e52c166ba44b947ec621b6808b46d939 (patch) | |
| tree | b5bde26899ff639281c48019143fca2cd0e290ef /lib/frrscript.h | |
| parent | 7e058da5bc23555d8dca571f7ee10b4cc171dd8c (diff) | |
lib: Use noop decoder for bgp_script values
Signed-off-by: Donald Lee <dlqs@gmx.com>
Diffstat (limited to 'lib/frrscript.h')
| -rw-r--r-- | lib/frrscript.h | 7 | 
1 files 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)  /*  | 
