root/net/inet/route.h

/* [previous][next][first][last][top][bottom][index][help] */

INCLUDED FROM


   1 /*
   2  * INET         An implementation of the TCP/IP protocol suite for the LINUX
   3  *              operating system.  INET  is implemented using the  BSD Socket
   4  *              interface as the means of communication with the user level.
   5  *
   6  *              Definitions for the IP router.
   7  *
   8  * Version:     @(#)route.h     1.0.4   05/27/93
   9  *
  10  * Authors:     Ross Biro, <bir7@leland.Stanford.Edu>
  11  *              Fred N. van Kempen, <waltje@uWalt.NL.Mugnet.ORG>
  12  *
  13  *              This program is free software; you can redistribute it and/or
  14  *              modify it under the terms of the GNU General Public License
  15  *              as published by the Free Software Foundation; either version
  16  *              2 of the License, or (at your option) any later version.
  17  */
  18 #ifndef _ROUTE_H
  19 #define _ROUTE_H
  20 
  21 
  22 #include <linux/route.h>
  23 
  24 
  25 /* This is an entry in the IP routing table. */
  26 struct rtable {
  27   struct rtable         *rt_next;
  28   unsigned long         rt_dst;
  29   unsigned long         rt_mask;
  30   unsigned long         rt_gateway;
  31   unsigned char         rt_flags;
  32   unsigned char         rt_metric;
  33   short                 rt_refcnt;
  34   unsigned long         rt_use;
  35   unsigned short        rt_mss, rt_mtu;
  36   struct device         *rt_dev;
  37 };
  38 
  39 
  40 extern void             rt_flush(struct device *dev);
  41 extern void             rt_add(short flags, unsigned long addr, unsigned long mask,
  42                                unsigned long gw, struct device *dev);
  43 extern struct rtable    *rt_route(unsigned long daddr, struct options *opt);
  44 extern int              rt_get_info(char * buffer);
  45 extern int              rt_ioctl(unsigned int cmd, void *arg);
  46 
  47 #endif  /* _ROUTE_H */

/* [previous][next][first][last][top][bottom][index][help] */