route.h (223359) | route.h (225698) |
---|---|
1/*- 2 * Copyright (c) 1980, 1986, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 13 unchanged lines hidden (view full) --- 22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * 29 * @(#)route.h 8.4 (Berkeley) 1/9/95 | 1/*- 2 * Copyright (c) 1980, 1986, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 13 unchanged lines hidden (view full) --- 22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * 29 * @(#)route.h 8.4 (Berkeley) 1/9/95 |
30 * $FreeBSD: head/sys/net/route.h 223359 2011-06-21 07:19:03Z bz $ | 30 * $FreeBSD: head/sys/net/route.h 225698 2011-09-20 20:27:26Z kmacy $ |
31 */ 32 33#ifndef _NET_ROUTE_H_ 34#define _NET_ROUTE_H_ 35 36/* 37 * Kernel resident routing tables. 38 * --- 5 unchanged lines hidden (view full) --- 44 * A route consists of a destination address, a reference 45 * to a routing entry, and a reference to an llentry. 46 * These are often held by protocols in their control 47 * blocks, e.g. inpcb. 48 */ 49struct route { 50 struct rtentry *ro_rt; 51 struct llentry *ro_lle; | 31 */ 32 33#ifndef _NET_ROUTE_H_ 34#define _NET_ROUTE_H_ 35 36/* 37 * Kernel resident routing tables. 38 * --- 5 unchanged lines hidden (view full) --- 44 * A route consists of a destination address, a reference 45 * to a routing entry, and a reference to an llentry. 46 * These are often held by protocols in their control 47 * blocks, e.g. inpcb. 48 */ 49struct route { 50 struct rtentry *ro_rt; 51 struct llentry *ro_lle; |
52 struct in_ifaddr *ro_ia; 53 int ro_flags; |
|
52 struct sockaddr ro_dst; 53}; 54 | 54 struct sockaddr ro_dst; 55}; 56 |
57#define RT_CACHING_CONTEXT 0x1 58 |
|
55/* 56 * These numbers are used by reliable protocols for determining 57 * retransmission behavior and are included in the routing structure. 58 */ 59struct rt_metrics_lite { 60 u_long rmx_mtu; /* MTU for this path */ 61 u_long rmx_expire; /* lifetime for route, e.g. redirect */ 62 u_long rmx_pksent; /* packets sent using this route */ --- 366 unchanged lines hidden --- | 59/* 60 * These numbers are used by reliable protocols for determining 61 * retransmission behavior and are included in the routing structure. 62 */ 63struct rt_metrics_lite { 64 u_long rmx_mtu; /* MTU for this path */ 65 u_long rmx_expire; /* lifetime for route, e.g. redirect */ 66 u_long rmx_pksent; /* packets sent using this route */ --- 366 unchanged lines hidden --- |