root/include/linux/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  *              Global definitions for the IP router interface.
   7  *
   8  * Version:     @(#)route.h     1.0.3   05/27/93
   9  *
  10  * Authors:     Original taken from Berkeley UNIX 4.3, (c) UCB 1986-1988
  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 _LINUX_ROUTE_H
  19 #define _LINUX_ROUTE_H
  20 
  21 #include <linux/if.h>
  22 
  23 
  24 /* This structure gets passed by the SIOCADDRT and SIOCDELRT calls. */
  25 struct rtentry {
  26   unsigned long         rt_hash;        /* hash key for lookups         */
  27   struct sockaddr       rt_dst;
  28   struct sockaddr       rt_gateway;
  29   short                 rt_flags;
  30   short                 rt_refcnt;
  31   unsigned long         rt_use;
  32 #ifdef BSD_COMPATIBLE
  33   struct ifnet          *rt_ifp;
  34 #else
  35   void                  *rt_dev; 
  36 #endif
  37 };
  38 #define RTF_UP          0x0001          /* route useable                */
  39 #define RTF_GATEWAY     0x0002          /* destination is a gateway     */
  40 #define RTF_HOST        0x0004          /* host entry (net otherwise)   */
  41 #define RTF_REINSTATE   0x0008          /* re-instate route after tmout */
  42 #define RTF_DYNAMIC     0x0010          /* created dyn. (by redirect)   */
  43 #define RTF_MODIFIED    0x0020          /* modified dyn. (by redirect)  */
  44 
  45 #endif  /* _LINUX_ROUTE_H */

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