- @function inet_arp_lookup
- @discussion This function will check the routing table for a cached
- arp entry or trigger an arp query to resolve the ip address to a
- link-layer address.
-
- Arp entries are stored in the routing table. This function will
- lookup the ip destination in the routing table. If the
- destination requires forwarding to a gateway, the route of the
- gateway will be looked up. The route entry is inspected to
- determine if the link layer destination address is known. If
- unknown, the arp generation function for IP attached to the
- interface is called to create an arp request packet.
- @param interface The interface the packet is being sent on.
- @param ip_dest The ip destination of the packet.
- @param ll_dest On output, the link-layer destination.
- @param ll_dest_len The length of the buffer for ll_dest.
- @param hint Any routing hint passed down from the protocol.
- @param packet The packet being transmitted.
- @result May return an error such as EHOSTDOWN or ENETUNREACH. If
- this function returns EJUSTRETURN, the packet has been queued
- and will be sent when an arp response is received. If any other
- value is returned, the caller is responsible for disposing of
- the packet.
+ * @function inet_arp_lookup
+ * @discussion This function will check the routing table for a cached
+ * arp entry or trigger an arp query to resolve the ip address to a
+ * link-layer address.
+ *
+ * Arp entries are stored in the routing table. This function will
+ * lookup the ip destination in the routing table. If the
+ * destination requires forwarding to a gateway, the route of the
+ * gateway will be looked up. The route entry is inspected to
+ * determine if the link layer destination address is known. If
+ * unknown, the arp generation function for IP attached to the
+ * interface is called to create an arp request packet.
+ * @param interface The interface the packet is being sent on.
+ * @param ip_dest The ip destination of the packet.
+ * @param ll_dest On output, the link-layer destination.
+ * @param ll_dest_len The length of the buffer for ll_dest.
+ * @param hint Any routing hint passed down from the protocol.
+ * @param packet The packet being transmitted.
+ * @result May return an error such as EHOSTDOWN or ENETUNREACH. If
+ * this function returns EJUSTRETURN, the packet has been queued
+ * and will be sent when an arp response is received. If any other
+ * value is returned, the caller is responsible for disposing of
+ * the packet.