mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-11-02 23:34:11 +00:00
lib: encode plen when passing prefixes to scripts
Signed-off-by: Quentin Young <qlyoung@nvidia.com>
This commit is contained in:
parent
479d37cce0
commit
00d9e83a3f
@ -78,7 +78,9 @@ int frrlua_newtable_prefix(lua_State *L, const struct prefix *prefix)
|
||||
|
||||
lua_newtable(L);
|
||||
lua_pushstring(L, prefix2str(prefix, buffer, 100));
|
||||
lua_setfield(L, -2, "route");
|
||||
lua_setfield(L, -2, "network");
|
||||
lua_pushinteger(L, prefix->prefixlen);
|
||||
lua_setfield(L, -2, "length");
|
||||
lua_pushinteger(L, prefix->family);
|
||||
lua_setfield(L, -2, "family");
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user