diff options
author | Mikael Magnusson <mikma@users.sourceforge.net> | 2018-09-25 22:58:58 +0200 |
---|---|---|
committer | Mikael Magnusson <mikma@users.sourceforge.net> | 2019-02-22 23:12:41 +0100 |
commit | d9dd3cff349a09af9dd97cd6595f9815ff7eb815 (patch) | |
tree | ab59515a0e61e146030e902fb275a181abb45a81 /lua | |
parent | bfd06659462cff84cc877d85d44dcd9603d2a43d (diff) |
Lua: Adapt to changes in int-new branch
Diffstat (limited to 'lua')
-rw-r--r-- | lua/common.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lua/common.c b/lua/common.c index fad2f857..a9c60489 100644 --- a/lua/common.c +++ b/lua/common.c @@ -123,7 +123,7 @@ static int luaB_ip4_tostring(lua_State *L) { static void lua_puship4(lua_State *L, ip4_addr a) { lua_newtable(L); - lua_settableinteger(L, "addr", a); + lua_settableinteger(L, "addr", ip4_to_u32(a)); lua_newtable(L); lua_settablecfunction(L, "__tostring", luaB_ip4_tostring); @@ -170,7 +170,7 @@ lua_bird_state *luaB_init(lua_State *L, struct linpool *lp) { lua_settablelightuserdata(L, "_internal_state", lbs); - lua_settableip4(L, "router_id", config->router_id); + lua_settableip4(L, "router_id", ip4_from_u32(config->router_id)); lua_setglobal(L, "bird"); |