Logo Search packages:      
Sourcecode: libnl version File versions  Download package

int flnl_request_set_addr ( struct flnl_request *  req,
struct nl_addr *  addr 
)

Set destination address of lookup request object.

  • req Lookup request object.
  • addr IPv4 destination address.

Definition at line 211 of file request.c.

References nl_addr_get(), and nl_addr_put().

{
      if (addr->a_family != AF_INET)
            return nl_error(EINVAL, "Address must be an IPv4 address");

      if (req->lr_addr)
            nl_addr_put(req->lr_addr);

      nl_addr_get(addr);
      req->lr_addr = addr;

      req->lr_mask |= REQUEST_ATTR_ADDR;

      return 0;
}


Generated by  Doxygen 1.6.0   Back to index