route.h (89498) | route.h (92725) |
---|---|
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 --- 17 unchanged lines hidden (view full) --- 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 * @(#)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 --- 17 unchanged lines hidden (view full) --- 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 * @(#)route.h 8.4 (Berkeley) 1/9/95 |
34 * $FreeBSD: head/sys/net/route.h 89498 2002-01-18 14:33:04Z ru $ | 34 * $FreeBSD: head/sys/net/route.h 92725 2002-03-19 21:54:18Z alfred $ |
35 */ 36 37#ifndef _NET_ROUTE_H_ 38#define _NET_ROUTE_H_ 39 40/* 41 * Kernel resident routing tables. 42 * --- 61 unchanged lines hidden (view full) --- 104 long rt_refcnt; /* # held references */ 105 u_long rt_flags; /* up/down?, host/net */ 106 struct ifnet *rt_ifp; /* the answer: interface to use */ 107 struct ifaddr *rt_ifa; /* the answer: interface to use */ 108 struct sockaddr *rt_genmask; /* for generation of cloned routes */ 109 caddr_t rt_llinfo; /* pointer to link level info cache */ 110 struct rt_metrics rt_rmx; /* metrics used by rx'ing protocols */ 111 struct rtentry *rt_gwroute; /* implied entry for gatewayed routes */ | 35 */ 36 37#ifndef _NET_ROUTE_H_ 38#define _NET_ROUTE_H_ 39 40/* 41 * Kernel resident routing tables. 42 * --- 61 unchanged lines hidden (view full) --- 104 long rt_refcnt; /* # held references */ 105 u_long rt_flags; /* up/down?, host/net */ 106 struct ifnet *rt_ifp; /* the answer: interface to use */ 107 struct ifaddr *rt_ifa; /* the answer: interface to use */ 108 struct sockaddr *rt_genmask; /* for generation of cloned routes */ 109 caddr_t rt_llinfo; /* pointer to link level info cache */ 110 struct rt_metrics rt_rmx; /* metrics used by rx'ing protocols */ 111 struct rtentry *rt_gwroute; /* implied entry for gatewayed routes */ |
112 int (*rt_output) __P((struct ifnet *, struct mbuf *, 113 struct sockaddr *, struct rtentry *)); | 112 int (*rt_output)(struct ifnet *, struct mbuf *, 113 struct sockaddr *, struct rtentry *); |
114 /* output routine for this (rt,if) */ 115 struct rtentry *rt_parent; /* cloning parent of this route */ 116 void *rt_filler2; /* more filler */ 117}; 118 119/* 120 * Following structure necessary for 4.3 compatibility; 121 * We should eventually move it to a compat file. --- 149 unchanged lines hidden (view full) --- 271 (rt)->rt_refcnt--; \ 272 } while (0) 273 274extern struct route_cb route_cb; 275extern struct radix_node_head *rt_tables[AF_MAX+1]; 276 277struct ifmultiaddr; 278 | 114 /* output routine for this (rt,if) */ 115 struct rtentry *rt_parent; /* cloning parent of this route */ 116 void *rt_filler2; /* more filler */ 117}; 118 119/* 120 * Following structure necessary for 4.3 compatibility; 121 * We should eventually move it to a compat file. --- 149 unchanged lines hidden (view full) --- 271 (rt)->rt_refcnt--; \ 272 } while (0) 273 274extern struct route_cb route_cb; 275extern struct radix_node_head *rt_tables[AF_MAX+1]; 276 277struct ifmultiaddr; 278 |
279void route_init __P((void)); 280int rt_getifa __P((struct rt_addrinfo *)); 281void rt_ifannouncemsg __P((struct ifnet *, int)); 282void rt_ifmsg __P((struct ifnet *)); 283void rt_missmsg __P((int, struct rt_addrinfo *, int, int)); 284void rt_newaddrmsg __P((int, struct ifaddr *, int, struct rtentry *)); 285void rt_newmaddrmsg __P((int, struct ifmultiaddr *)); 286int rt_setgate __P((struct rtentry *, 287 struct sockaddr *, struct sockaddr *)); 288void rtalloc __P((struct route *)); 289void rtalloc_ign __P((struct route *, u_long)); | 279void route_init(void); 280int rt_getifa(struct rt_addrinfo *); 281void rt_ifannouncemsg(struct ifnet *, int); 282void rt_ifmsg(struct ifnet *); 283void rt_missmsg(int, struct rt_addrinfo *, int, int); 284void rt_newaddrmsg(int, struct ifaddr *, int, struct rtentry *); 285void rt_newmaddrmsg(int, struct ifmultiaddr *); 286int rt_setgate(struct rtentry *, struct sockaddr *, struct sockaddr *); 287void rtalloc(struct route *); 288void rtalloc_ign(struct route *, u_long); |
290struct rtentry * | 289struct rtentry * |
291 rtalloc1 __P((struct sockaddr *, int, u_long)); 292void rtfree __P((struct rtentry *)); 293int rtinit __P((struct ifaddr *, int, int)); 294int rtioctl __P((u_long, caddr_t)); 295void rtredirect __P((struct sockaddr *, struct sockaddr *, 296 struct sockaddr *, int, struct sockaddr *, struct rtentry **)); 297int rtrequest __P((int, struct sockaddr *, 298 struct sockaddr *, struct sockaddr *, int, struct rtentry **)); 299int rtrequest1 __P((int, struct rt_addrinfo *, struct rtentry **)); | 290 rtalloc1(struct sockaddr *, int, u_long); 291void rtfree(struct rtentry *); 292int rtinit(struct ifaddr *, int, int); 293int rtioctl(u_long, caddr_t); 294void rtredirect(struct sockaddr *, struct sockaddr *, 295 struct sockaddr *, int, struct sockaddr *, struct rtentry **); 296int rtrequest(int, struct sockaddr *, 297 struct sockaddr *, struct sockaddr *, int, struct rtentry **); 298int rtrequest1(int, struct rt_addrinfo *, struct rtentry **); |
300#endif 301 302#endif | 299#endif 300 301#endif |