Skip to content

Commit cc5437f

Browse files
committed
fix(ip-link): add type field in link_get
Signed-off-by: Jianhui Zhao <[email protected]>
1 parent abf386a commit cc5437f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ip.lua

+2
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,8 @@ local function link_get(sock, ifindex)
229229

230230
local info = rtnl.parse_ifinfomsg(msg)
231231

232+
res.type = info.type
233+
232234
if info.flags & rtnl.IFF_UP > 0 then
233235
res.up = true
234236
end

0 commit comments

Comments
 (0)