Skip to content
  • Thomas Haller's avatar
    platform: add nm_platform_ip_route_get() for route-lookup · 33a2a7c3
    Thomas Haller authored
    Inspired from iproute2. As such, don't use libnl3's "struct nl_msg", but
    add _nl_addattr_l() and use a stack-allocated "struct nlmsghdr". With
    this, we are closer to the raw netlink API. It really is simple enough.
    
    The complicated part of the patch is that we re-use the existing netlink
    socket for events. Hence, we must process the socket via our common
    event_handler_recvmsgs(). That also means, that we get the netlink
    response a few layers down the stack and have to return the result
    via DelayedActionWaitForNlResponseData.
    33a2a7c3