1 /**************************************************************************** 2 **************************************************************************** 3 *** 4 *** This header was automatically generated from a Linux kernel header 5 *** of the same name, to make information necessary for userspace to 6 *** call into the kernel available to libc. It contains only constants, 7 *** structures, and macros generated from the original header, and thus, 8 *** contains no copyrightable information. 9 *** 10 *** To edit the content of this header, modify the corresponding 11 *** source file (e.g. under external/kernel-headers/original/) then 12 *** run bionic/libc/kernel/tools/update_all.py 13 *** 14 *** Any manual change here will be lost the next time this script will 15 *** be run. You've been warned! 16 *** 17 **************************************************************************** 18 ****************************************************************************/ 19 #ifndef _LINUX_ROUTE_H 20 #define _LINUX_ROUTE_H 21 #include <linux/if.h> 22 #include <linux/compiler.h> 23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 24 struct rtentry 25 { 26 unsigned long rt_pad1; 27 struct sockaddr rt_dst; 28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 29 struct sockaddr rt_gateway; 30 struct sockaddr rt_genmask; 31 unsigned short rt_flags; 32 short rt_pad2; 33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 34 unsigned long rt_pad3; 35 void *rt_pad4; 36 short rt_metric; 37 char __user *rt_dev; 38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 39 unsigned long rt_mtu; 40 #define rt_mss rt_mtu 41 unsigned long rt_window; 42 unsigned short rt_irtt; 43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 44 }; 45 #define RTF_UP 0x0001 46 #define RTF_GATEWAY 0x0002 47 #define RTF_HOST 0x0004 48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 49 #define RTF_REINSTATE 0x0008 50 #define RTF_DYNAMIC 0x0010 51 #define RTF_MODIFIED 0x0020 52 #define RTF_MTU 0x0040 53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 54 #define RTF_MSS RTF_MTU 55 #define RTF_WINDOW 0x0080 56 #define RTF_IRTT 0x0100 57 #define RTF_REJECT 0x0200 58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 59 #endif 60