route.h (271923) | route.h (274611) |
---|---|
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 271923 2014-09-21 07:16:51Z hrs $ | 30 * $FreeBSD: head/sys/net/route.h 274611 2014-11-17 01:05:29Z melifaro $ |
31 */ 32 33#ifndef _NET_ROUTE_H_ 34#define _NET_ROUTE_H_ 35 36#include <sys/counter.h> 37#include <net/vnet.h> 38 --- 107 unchanged lines hidden (view full) --- 146#define RTF_LLDATA 0x400 /* used by apps to add/del L2 entries */ 147#define RTF_STATIC 0x800 /* manually added */ 148#define RTF_BLACKHOLE 0x1000 /* just discard pkts (during updates) */ 149#define RTF_PROTO2 0x4000 /* protocol specific routing flag */ 150#define RTF_PROTO1 0x8000 /* protocol specific routing flag */ 151/* 0x10000 unused, was RTF_PRCLONING */ 152/* 0x20000 unused, was RTF_WASCLONED */ 153#define RTF_PROTO3 0x40000 /* protocol specific routing flag */ | 31 */ 32 33#ifndef _NET_ROUTE_H_ 34#define _NET_ROUTE_H_ 35 36#include <sys/counter.h> 37#include <net/vnet.h> 38 --- 107 unchanged lines hidden (view full) --- 146#define RTF_LLDATA 0x400 /* used by apps to add/del L2 entries */ 147#define RTF_STATIC 0x800 /* manually added */ 148#define RTF_BLACKHOLE 0x1000 /* just discard pkts (during updates) */ 149#define RTF_PROTO2 0x4000 /* protocol specific routing flag */ 150#define RTF_PROTO1 0x8000 /* protocol specific routing flag */ 151/* 0x10000 unused, was RTF_PRCLONING */ 152/* 0x20000 unused, was RTF_WASCLONED */ 153#define RTF_PROTO3 0x40000 /* protocol specific routing flag */ |
154/* 0x80000 unused */ | 154#define RTF_FIXEDMTU 0x80000 /* MTU was explicitly specified */ |
155#define RTF_PINNED 0x100000 /* route is immutable */ 156#define RTF_LOCAL 0x200000 /* route represents a local address */ 157#define RTF_BROADCAST 0x400000 /* route represents a bcast address */ 158#define RTF_MULTICAST 0x800000 /* route represents a mcast address */ 159 /* 0x8000000 and up unassigned */ 160#define RTF_STICKY 0x10000000 /* always route dst->src */ 161 162#define RTF_RNH_LOCKED 0x40000000 /* radix node head is locked */ --- 210 unchanged lines hidden (view full) --- 373 * rtfree() and RTFREE_LOCKED() require a locked rtentry 374 * 375 * RTFREE() uses an unlocked entry. 376 */ 377 378int rt_expunge(struct radix_node_head *, struct rtentry *); 379void rtfree(struct rtentry *); 380int rt_check(struct rtentry **, struct rtentry **, struct sockaddr *); | 155#define RTF_PINNED 0x100000 /* route is immutable */ 156#define RTF_LOCAL 0x200000 /* route represents a local address */ 157#define RTF_BROADCAST 0x400000 /* route represents a bcast address */ 158#define RTF_MULTICAST 0x800000 /* route represents a mcast address */ 159 /* 0x8000000 and up unassigned */ 160#define RTF_STICKY 0x10000000 /* always route dst->src */ 161 162#define RTF_RNH_LOCKED 0x40000000 /* radix node head is locked */ --- 210 unchanged lines hidden (view full) --- 373 * rtfree() and RTFREE_LOCKED() require a locked rtentry 374 * 375 * RTFREE() uses an unlocked entry. 376 */ 377 378int rt_expunge(struct radix_node_head *, struct rtentry *); 379void rtfree(struct rtentry *); 380int rt_check(struct rtentry **, struct rtentry **, struct sockaddr *); |
381void rt_updatemtu(struct ifnet *); |
|
381 382/* XXX MRT COMPAT VERSIONS THAT SET UNIVERSE to 0 */ 383/* Thes are used by old code not yet converted to use multiple FIBS */ 384int rt_getifa(struct rt_addrinfo *); 385void rtalloc_ign(struct route *ro, u_long ignflags); 386void rtalloc(struct route *ro); /* XXX deprecated, use rtalloc_ign(ro, 0) */ 387struct rtentry *rtalloc1(struct sockaddr *, int, u_long); 388int rtinit(struct ifaddr *, int, int); --- 27 unchanged lines hidden --- | 382 383/* XXX MRT COMPAT VERSIONS THAT SET UNIVERSE to 0 */ 384/* Thes are used by old code not yet converted to use multiple FIBS */ 385int rt_getifa(struct rt_addrinfo *); 386void rtalloc_ign(struct route *ro, u_long ignflags); 387void rtalloc(struct route *ro); /* XXX deprecated, use rtalloc_ign(ro, 0) */ 388struct rtentry *rtalloc1(struct sockaddr *, int, u_long); 389int rtinit(struct ifaddr *, int, int); --- 27 unchanged lines hidden --- |