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 ****************************************************************************
11 ****************************************************************************/
12#ifndef _LINUX_ROUTE_H
13#define _LINUX_ROUTE_H
14
15#include <linux/if.h>
16#include <linux/compiler.h>
17
18struct rtentry
19{
20 unsigned long rt_pad1;
21 struct sockaddr rt_dst;
22 struct sockaddr rt_gateway;
23 struct sockaddr rt_genmask;
24 unsigned short rt_flags;
25 short rt_pad2;
26 unsigned long rt_pad3;
27 void *rt_pad4;
28 short rt_metric;
29 char __user *rt_dev;
30 unsigned long rt_mtu;
31#define rt_mss rt_mtu
32 unsigned long rt_window;
33 unsigned short rt_irtt;
34};
35
36#define RTF_UP 0x0001
37#define RTF_GATEWAY 0x0002
38#define RTF_HOST 0x0004
39#define RTF_REINSTATE 0x0008
40#define RTF_DYNAMIC 0x0010
41#define RTF_MODIFIED 0x0020
42#define RTF_MTU 0x0040
43#define RTF_MSS RTF_MTU
44#define RTF_WINDOW 0x0080
45#define RTF_IRTT 0x0100
46#define RTF_REJECT 0x0200
47
48#endif
49
50