blob: b6a5809799361f559b651aa968e7842a05451f57 [file] [log] [blame]
Nick Kralevicha67e4de2013-01-14 11:28:26 -08001/****************************************************************************
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 ****************************************************************************/
Ben Cheng655a7c02013-10-16 16:09:24 -070019#ifndef _LINUX_ROUTE_H
20#define _LINUX_ROUTE_H
21#include <linux/if.h>
22#include <linux/compiler.h>
Nick Kralevicha67e4de2013-01-14 11:28:26 -080023/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070024struct rtentry {
Tao Baod7db5942015-01-28 10:07:51 -080025 unsigned long rt_pad1;
26 struct sockaddr rt_dst;
27 struct sockaddr rt_gateway;
Nick Kralevicha67e4de2013-01-14 11:28:26 -080028/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080029 struct sockaddr rt_genmask;
30 unsigned short rt_flags;
31 short rt_pad2;
32 unsigned long rt_pad3;
Nick Kralevicha67e4de2013-01-14 11:28:26 -080033/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080034 void * rt_pad4;
35 short rt_metric;
36 char __user * rt_dev;
37 unsigned long rt_mtu;
Nick Kralevicha67e4de2013-01-14 11:28:26 -080038/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070039#define rt_mss rt_mtu
Tao Baod7db5942015-01-28 10:07:51 -080040 unsigned long rt_window;
41 unsigned short rt_irtt;
Ben Cheng655a7c02013-10-16 16:09:24 -070042};
Nick Kralevicha67e4de2013-01-14 11:28:26 -080043/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070044#define RTF_UP 0x0001
45#define RTF_GATEWAY 0x0002
46#define RTF_HOST 0x0004
47#define RTF_REINSTATE 0x0008
Nick Kralevicha67e4de2013-01-14 11:28:26 -080048/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070049#define RTF_DYNAMIC 0x0010
50#define RTF_MODIFIED 0x0020
51#define RTF_MTU 0x0040
52#define RTF_MSS RTF_MTU
53/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54#define RTF_WINDOW 0x0080
55#define RTF_IRTT 0x0100
56#define RTF_REJECT 0x0200
Nick Kralevicha67e4de2013-01-14 11:28:26 -080057#endif
Ben Cheng655a7c02013-10-16 16:09:24 -070058/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */