rtnl: Add l_rtnl_ifaddr_extract
PATCH 1/1 rtnl: Add l_rtnl_ifaddr_extract
Extracts information from struct ifaddrmsg directly into an l_rtnl_address object.
--- ell/ell.sym | 1 + ell/rtnl.c | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++ ell/rtnl.h | 2 ++ 3 files changed, 56 insertions(+)
ell/ell.sym +1 -0
@@ -641,6 +641,7 @@ global: l_rtnl_route6_delete_gateway; l_rtnl_route_add; l_rtnl_route_delete; + l_rtnl_ifaddr_extract; l_rtnl_ifaddr_add; l_rtnl_ifaddr_delete; /* icmp6 */
ell/rtnl.c +53 -0
59 lines not on this page · raw message
ell/rtnl.h +2 -0
@@ -164,6 +164,8 @@ uint32_t l_rtnl_route6_delete_gateway(struct l_netlink *rtnl, int ifindex,void *user_data, l_netlink_destroy_func_t destroy); +struct l_rtnl_address *l_rtnl_ifaddr_extract (const struct ifaddrmsg *ifa,int bytes); + uint32_t l_rtnl_ifaddr_add(struct l_netlink *rtnl, int ifindex, const struct l_rtnl_address *addr, l_netlink_command_func_t cb,
Signature · 1 line
2.27.0
Denis Kenzior
AppliedHi Andrew,
Quoted 8 lines · Andrew Zaborowski
Extracts information from struct ifaddrmsg directly into an
l_rtnl_addressobject.--- ell/ell.sym | 1 + ell/rtnl.c | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++ ell/rtnl.h | 2 ++ 3 files changed, 56 insertions(+)
Applied, thanks.
Regards,
-Denis