Contents

ifaddr_withroute

Declaration

ifaddr_t ifaddr_withroute(int flags, const struct sockaddr *destination, const struct sockaddr *gateway);

Parameters

  • flags:

    Routing flags. See net/route.h, RTF_GATEWAY etc.

  • destination:

    The destination to search for.

  • gateway:

    A gateway to search for.

Return Value

A reference to the interface address.

Discussion

Returns an interface address given a destination and gateway. Increments the reference count on the ifaddr before returning to the caller. Caller is responsible for calling ifaddr_release.

See Also

Network Kernel Extensions