~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/include/uapi/linux/route.h

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /include/uapi/linux/route.h (Version linux-6.12-rc7) and /include/uapi/linux/route.h (Version linux-6.0.19)


  1 /* SPDX-License-Identifier: GPL-2.0+ WITH Linu      1 /* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
  2 /*                                                  2 /*
  3  * INET         An implementation of the TCP/I      3  * INET         An implementation of the TCP/IP protocol suite for the LINUX
  4  *              operating system.  INET is imp      4  *              operating system.  INET is implemented using the  BSD Socket
  5  *              interface as the means of comm      5  *              interface as the means of communication with the user level.
  6  *                                                  6  *
  7  *              Global definitions for the IP       7  *              Global definitions for the IP router interface.
  8  *                                                  8  *
  9  * Version:     @(#)route.h     1.0.3   05/27/      9  * Version:     @(#)route.h     1.0.3   05/27/93
 10  *                                                 10  *
 11  * Authors:     Original taken from Berkeley U     11  * Authors:     Original taken from Berkeley UNIX 4.3, (c) UCB 1986-1988
 12  *              for the purposes of compatibil     12  *              for the purposes of compatibility only.
 13  *                                                 13  *
 14  *              Fred N. van Kempen, <waltje@uW     14  *              Fred N. van Kempen, <waltje@uWalt.NL.Mugnet.ORG>
 15  *                                                 15  *
 16  * Changes:                                        16  * Changes:
 17  *              Mike McLagan    :       Routin     17  *              Mike McLagan    :       Routing by source
 18  *                                                 18  *
 19  *              This program is free software;     19  *              This program is free software; you can redistribute it and/or
 20  *              modify it under the terms of t     20  *              modify it under the terms of the GNU General Public License
 21  *              as published by the Free Softw     21  *              as published by the Free Software Foundation; either version
 22  *              2 of the License, or (at your      22  *              2 of the License, or (at your option) any later version.
 23  */                                                23  */
 24 #ifndef _LINUX_ROUTE_H                             24 #ifndef _LINUX_ROUTE_H
 25 #define _LINUX_ROUTE_H                             25 #define _LINUX_ROUTE_H
 26                                                    26 
 27 #include <linux/if.h>                              27 #include <linux/if.h>
 28 #include <linux/compiler.h>                        28 #include <linux/compiler.h>
 29                                                    29 
 30 /* This structure gets passed by the SIOCADDRT     30 /* This structure gets passed by the SIOCADDRT and SIOCDELRT calls. */
 31 struct rtentry {                                   31 struct rtentry {
 32         unsigned long   rt_pad1;                   32         unsigned long   rt_pad1;
 33         struct sockaddr rt_dst;         /* tar     33         struct sockaddr rt_dst;         /* target address               */
 34         struct sockaddr rt_gateway;     /* gat     34         struct sockaddr rt_gateway;     /* gateway addr (RTF_GATEWAY)   */
 35         struct sockaddr rt_genmask;     /* tar     35         struct sockaddr rt_genmask;     /* target network mask (IP)     */
 36         unsigned short  rt_flags;                  36         unsigned short  rt_flags;
 37         short           rt_pad2;                   37         short           rt_pad2;
 38         unsigned long   rt_pad3;                   38         unsigned long   rt_pad3;
 39         void            *rt_pad4;                  39         void            *rt_pad4;
 40         short           rt_metric;      /* +1      40         short           rt_metric;      /* +1 for binary compatibility! */
 41         char __user     *rt_dev;        /* for     41         char __user     *rt_dev;        /* forcing the device at add    */
 42         unsigned long   rt_mtu;         /* per     42         unsigned long   rt_mtu;         /* per route MTU/Window         */
 43 #ifndef __KERNEL__                                 43 #ifndef __KERNEL__
 44 #define rt_mss  rt_mtu                  /* Com     44 #define rt_mss  rt_mtu                  /* Compatibility :-(            */
 45 #endif                                             45 #endif
 46         unsigned long   rt_window;      /* Win     46         unsigned long   rt_window;      /* Window clamping              */
 47         unsigned short  rt_irtt;        /* Ini     47         unsigned short  rt_irtt;        /* Initial RTT                  */
 48 };                                                 48 };
 49                                                    49 
 50                                                    50 
 51 #define RTF_UP          0x0001          /* rou     51 #define RTF_UP          0x0001          /* route usable                 */
 52 #define RTF_GATEWAY     0x0002          /* des     52 #define RTF_GATEWAY     0x0002          /* destination is a gateway     */
 53 #define RTF_HOST        0x0004          /* hos     53 #define RTF_HOST        0x0004          /* host entry (net otherwise)   */
 54 #define RTF_REINSTATE   0x0008          /* rei     54 #define RTF_REINSTATE   0x0008          /* reinstate route after tmout  */
 55 #define RTF_DYNAMIC     0x0010          /* cre     55 #define RTF_DYNAMIC     0x0010          /* created dyn. (by redirect)   */
 56 #define RTF_MODIFIED    0x0020          /* mod     56 #define RTF_MODIFIED    0x0020          /* modified dyn. (by redirect)  */
 57 #define RTF_MTU         0x0040          /* spe     57 #define RTF_MTU         0x0040          /* specific MTU for this route  */
 58 #define RTF_MSS         RTF_MTU         /* Com     58 #define RTF_MSS         RTF_MTU         /* Compatibility :-(            */
 59 #define RTF_WINDOW      0x0080          /* per     59 #define RTF_WINDOW      0x0080          /* per route window clamping    */
 60 #define RTF_IRTT        0x0100          /* Ini     60 #define RTF_IRTT        0x0100          /* Initial round trip time      */
 61 #define RTF_REJECT      0x0200          /* Rej     61 #define RTF_REJECT      0x0200          /* Reject route                 */
 62                                                    62 
 63 /*                                                 63 /*
 64  *      <linux/ipv6_route.h> uses RTF values >     64  *      <linux/ipv6_route.h> uses RTF values >= 64k
 65  */                                                65  */
 66                                                    66 
 67                                                    67 
 68                                                    68 
 69 #endif  /* _LINUX_ROUTE_H */                       69 #endif  /* _LINUX_ROUTE_H */
 70                                                    70 
 71                                                    71 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php