2 .\" Copyright (C) 2008, Sun Microsystems, Inc. All Rights Reserved.
3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
5 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
6 .TH NET_ROUTETO 9F "May 1, 2008"
8 net_routeto \- indicate which network interface packets are sent
14 \fBphy_if_t\fR \fBnet_routeto\fR(\fBconst\fR \fBnet_data_t\fR *\fInet\fR, \fBstruct\fR \fBsockaddr\fR *\fIaddress\fR,
15 \fBstruct\fR \fBsockaddr\fR *\fInexthop\fR);
21 Solaris DDI specific (Solaris DDI).
29 value returned from a successful call to \fBnet_protocol_lookup\fR(9F).
38 network address to find a path out of the machine for.
47 pointer to the \fBsockaddr\fR structure in which to store the address of the
48 next hop. If this information is not required, the value \fBNULL\fR may be
55 The \fBnet_routeto()\fR function indicates which network interface packets
56 destined for a particular address would be sent out of, according to the
57 systems network routing tables. If \fBnext\fR is supplied as a non-\fBNULL\fR
58 pointer, the \fBIP\fR address of the \fBnexthop\fR router to be used is
63 The \fBnet_routeto()\fR function returns:
70 The network protocol does not support this function.
79 This function cannot find a route for the address given.
88 Indicates which network interface can be used to reach the given address.
94 The \fBnet_routeto()\fR function may be called from user, kernel, or interrupt
99 See \fBattributes\fR(5) for descriptions of the following attributes:
107 ATTRIBUTE TYPE ATTRIBUTE VALUE
109 Interface Stability Committed
115 \fBnet_phygetnext\fR(9F), \fBnet_phylookup\fR(9F),
116 \fBnet_protocol_lookup\fR(9F), \fBattributes\fR(5)