diff options
| author | Donald Lee <dlqs@gmx.com> | 2021-08-18 20:25:40 +0800 |
|---|---|---|
| committer | Donald Lee <dlqs@gmx.com> | 2021-10-20 00:56:00 +0800 |
| commit | 9b851b74b0310a50530d505f20792ee7a108eb2e (patch) | |
| tree | 3388837fc0ba93d67431fcb6a110007ae53ac567 /lib/frrlua.h | |
| parent | e6f42b94c6168b35ef9382d6aa68137b5c6c92ed (diff) | |
lib: Add encoder/decoder for nexthop/nexthop group
Signed-off-by: Donald Lee <dlqs@gmx.com>
Diffstat (limited to 'lib/frrlua.h')
| -rw-r--r-- | lib/frrlua.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/frrlua.h b/lib/frrlua.h index ed1d5f8b4a..a82009a779 100644 --- a/lib/frrlua.h +++ b/lib/frrlua.h @@ -142,6 +142,10 @@ void lua_decode_sockunion(lua_State *L, int idx, union sockunion *su); */ void *lua_tosockunion(lua_State *L, int idx); +void lua_pushnexthop_group(lua_State *L, const struct nexthop_group *ng); + +void lua_pushnexthop(lua_State *L, const struct nexthop *nexthop); + /* * Converts an int to a Lua value and pushes it on the stack. */ |
