Deleted Added
full compact
route.h (8876) route.h (9759)
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.3 (Berkeley) 4/19/94
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.3 (Berkeley) 4/19/94
34 * $Id: route.h,v 1.13 1995/03/20 21:30:21 wollman Exp $
34 * $Id: route.h,v 1.14 1995/05/30 08:08:26 rgrimes Exp $
35 */
36
37#ifndef _NET_ROUTE_H_
38#define _NET_ROUTE_H_
39
40/*
41 * Kernel resident routing tables.
42 *

--- 206 unchanged lines hidden (view full) ---

249
250#ifdef KERNEL
251#define RTFREE(rt) \
252 if ((rt)->rt_refcnt <= 1) \
253 rtfree(rt); \
254 else \
255 (rt)->rt_refcnt--;
256
35 */
36
37#ifndef _NET_ROUTE_H_
38#define _NET_ROUTE_H_
39
40/*
41 * Kernel resident routing tables.
42 *

--- 206 unchanged lines hidden (view full) ---

249
250#ifdef KERNEL
251#define RTFREE(rt) \
252 if ((rt)->rt_refcnt <= 1) \
253 rtfree(rt); \
254 else \
255 (rt)->rt_refcnt--;
256
257struct route_cb route_cb;
258struct rtstat rtstat;
259struct radix_node_head *rt_tables[AF_MAX+1];
257extern struct route_cb route_cb;
258extern struct rtstat rtstat;
259extern struct radix_node_head *rt_tables[AF_MAX+1];
260
261void route_init __P((void));
262int route_output __P((struct mbuf *, struct socket *));
263int route_usrreq __P((struct socket *,
264 int, struct mbuf *, struct mbuf *, struct mbuf *));
265void rt_ifmsg __P((struct ifnet *));
266void rt_maskedcopy __P((struct sockaddr *,
267 struct sockaddr *, struct sockaddr *));

--- 20 unchanged lines hidden ---
260
261void route_init __P((void));
262int route_output __P((struct mbuf *, struct socket *));
263int route_usrreq __P((struct socket *,
264 int, struct mbuf *, struct mbuf *, struct mbuf *));
265void rt_ifmsg __P((struct ifnet *));
266void rt_maskedcopy __P((struct sockaddr *,
267 struct sockaddr *, struct sockaddr *));

--- 20 unchanged lines hidden ---