jbaublitz / neli

Rust type safe netlink library
BSD 3-Clause "New" or "Revised" License
180 stars 35 forks source link

ifa_index in ifaddrmsg should be unsigned #245

Open the284 opened 1 month ago

the284 commented 1 month ago

ifa_index in ifaddrmsg should be unsigned per https://man7.org/linux/man-pages/man7/rtnetlink.7.html

Current code is using libc:c_int which is signed. https://github.com/jbaublitz/neli/blob/e50030dd22b2ad5390eed97445dbcc016e6bcd25/src/rtnl.rs#L93

Suggest switch to c_uint

jbaublitz commented 1 month ago

I checked the documentation and you're correct. I'll put this on the to-do list.