1 /* SPDX-License-Identifier: GPL-2.0+ WITH Linu 1 2 /* 3 * INET An implementation of the TCP/I 4 * operating system. INET is imp 5 * interface as the means of comm 6 * 7 * Global definitions for the IP 8 * 9 * Version: @(#)route.h 1.0.3 05/27/ 10 * 11 * Authors: Original taken from Berkeley U 12 * for the purposes of compatibil 13 * 14 * Fred N. van Kempen, <waltje@uW 15 * 16 * Changes: 17 * Mike McLagan : Routin 18 * 19 * This program is free software; 20 * modify it under the terms of t 21 * as published by the Free Softw 22 * 2 of the License, or (at your 23 */ 24 #ifndef _LINUX_ROUTE_H 25 #define _LINUX_ROUTE_H 26 27 #include <linux/if.h> 28 #include <linux/compiler.h> 29 30 /* This structure gets passed by the SIOCADDRT 31 struct rtentry { 32 unsigned long rt_pad1; 33 struct sockaddr rt_dst; /* tar 34 struct sockaddr rt_gateway; /* gat 35 struct sockaddr rt_genmask; /* tar 36 unsigned short rt_flags; 37 short rt_pad2; 38 unsigned long rt_pad3; 39 void *rt_pad4; 40 short rt_metric; /* +1 41 char __user *rt_dev; /* for 42 unsigned long rt_mtu; /* per 43 #ifndef __KERNEL__ 44 #define rt_mss rt_mtu /* Com 45 #endif 46 unsigned long rt_window; /* Win 47 unsigned short rt_irtt; /* Ini 48 }; 49 50 51 #define RTF_UP 0x0001 /* rou 52 #define RTF_GATEWAY 0x0002 /* des 53 #define RTF_HOST 0x0004 /* hos 54 #define RTF_REINSTATE 0x0008 /* rei 55 #define RTF_DYNAMIC 0x0010 /* cre 56 #define RTF_MODIFIED 0x0020 /* mod 57 #define RTF_MTU 0x0040 /* spe 58 #define RTF_MSS RTF_MTU /* Com 59 #define RTF_WINDOW 0x0080 /* per 60 #define RTF_IRTT 0x0100 /* Ini 61 #define RTF_REJECT 0x0200 /* Rej 62 63 /* 64 * <linux/ipv6_route.h> uses RTF values > 65 */ 66 67 68 69 #endif /* _LINUX_ROUTE_H */ 70 71
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.