diff options
| author | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2012-10-19 15:19:19 -0400 |
|---|---|---|
| committer | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2012-10-19 15:19:19 -0400 |
| commit | e05dacd71db0a5da7c1a44bcaab2a8a240b9c233 (patch) | |
| tree | 31382cf1c7d62c03126448affb2fc86e8c4aaa8b /include/uapi/linux/route.h | |
| parent | 3ab0b83bf6a1e834f4b884150d8012990c75d25d (diff) | |
| parent | ddffeb8c4d0331609ef2581d84de4d763607bd37 (diff) | |
Merge commit 'v3.7-rc1' into stable/for-linus-3.7
* commit 'v3.7-rc1': (10892 commits)
Linux 3.7-rc1
x86, boot: Explicitly include autoconf.h for hostprogs
perf: Fix UAPI fallout
ARM: config: make sure that platforms are ordered by option string
ARM: config: sort select statements alphanumerically
UAPI: (Scripted) Disintegrate include/linux/byteorder
UAPI: (Scripted) Disintegrate include/linux
UAPI: Unexport linux/blk_types.h
UAPI: Unexport part of linux/ppp-comp.h
perf: Handle new rbtree implementation
procfs: don't need a PATH_MAX allocation to hold a string representation of an int
vfs: embed struct filename inside of names_cache allocation if possible
audit: make audit_inode take struct filename
vfs: make path_openat take a struct filename pointer
vfs: turn do_path_lookup into wrapper around struct filename variant
audit: allow audit code to satisfy getname requests from its names_list
vfs: define struct filename and have getname() return it
btrfs: Fix compilation with user namespace support enabled
userns: Fix posix_acl_file_xattr_userns gid conversion
userns: Properly print bluetooth socket uids
...
Diffstat (limited to 'include/uapi/linux/route.h')
| -rw-r--r-- | include/uapi/linux/route.h | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/include/uapi/linux/route.h b/include/uapi/linux/route.h new file mode 100644 index 000000000000..6600708311c8 --- /dev/null +++ b/include/uapi/linux/route.h | |||
| @@ -0,0 +1,69 @@ | |||
| 1 | /* | ||
| 2 | * INET An implementation of the TCP/IP protocol suite for the LINUX | ||
| 3 | * operating system. INET is implemented using the BSD Socket | ||
| 4 | * interface as the means of communication with the user level. | ||
| 5 | * | ||
| 6 | * Global definitions for the IP router interface. | ||
| 7 | * | ||
| 8 | * Version: @(#)route.h 1.0.3 05/27/93 | ||
| 9 | * | ||
| 10 | * Authors: Original taken from Berkeley UNIX 4.3, (c) UCB 1986-1988 | ||
| 11 | * for the purposes of compatibility only. | ||
| 12 | * | ||
| 13 | * Fred N. van Kempen, <waltje@uWalt.NL.Mugnet.ORG> | ||
| 14 | * | ||
| 15 | * Changes: | ||
| 16 | * Mike McLagan : Routing by source | ||
| 17 | * | ||
| 18 | * This program is free software; you can redistribute it and/or | ||
| 19 | * modify it under the terms of the GNU General Public License | ||
| 20 | * as published by the Free Software Foundation; either version | ||
| 21 | * 2 of the License, or (at your option) any later version. | ||
| 22 | */ | ||
| 23 | #ifndef _LINUX_ROUTE_H | ||
| 24 | #define _LINUX_ROUTE_H | ||
| 25 | |||
| 26 | #include <linux/if.h> | ||
| 27 | #include <linux/compiler.h> | ||
| 28 | |||
| 29 | /* This structure gets passed by the SIOCADDRT and SIOCDELRT calls. */ | ||
| 30 | struct rtentry { | ||
| 31 | unsigned long rt_pad1; | ||
| 32 | struct sockaddr rt_dst; /* target address */ | ||
| 33 | struct sockaddr rt_gateway; /* gateway addr (RTF_GATEWAY) */ | ||
| 34 | struct sockaddr rt_genmask; /* target network mask (IP) */ | ||
| 35 | unsigned short rt_flags; | ||
| 36 | short rt_pad2; | ||
| 37 | unsigned long rt_pad3; | ||
| 38 | void *rt_pad4; | ||
| 39 | short rt_metric; /* +1 for binary compatibility! */ | ||
| 40 | char __user *rt_dev; /* forcing the device at add */ | ||
| 41 | unsigned long rt_mtu; /* per route MTU/Window */ | ||
| 42 | #ifndef __KERNEL__ | ||
| 43 | #define rt_mss rt_mtu /* Compatibility :-( */ | ||
| 44 | #endif | ||
| 45 | unsigned long rt_window; /* Window clamping */ | ||
| 46 | unsigned short rt_irtt; /* Initial RTT */ | ||
| 47 | }; | ||
| 48 | |||
| 49 | |||
| 50 | #define RTF_UP 0x0001 /* route usable */ | ||
| 51 | #define RTF_GATEWAY 0x0002 /* destination is a gateway */ | ||
| 52 | #define RTF_HOST 0x0004 /* host entry (net otherwise) */ | ||
| 53 | #define RTF_REINSTATE 0x0008 /* reinstate route after tmout */ | ||
| 54 | #define RTF_DYNAMIC 0x0010 /* created dyn. (by redirect) */ | ||
| 55 | #define RTF_MODIFIED 0x0020 /* modified dyn. (by redirect) */ | ||
| 56 | #define RTF_MTU 0x0040 /* specific MTU for this route */ | ||
| 57 | #define RTF_MSS RTF_MTU /* Compatibility :-( */ | ||
| 58 | #define RTF_WINDOW 0x0080 /* per route window clamping */ | ||
| 59 | #define RTF_IRTT 0x0100 /* Initial round trip time */ | ||
| 60 | #define RTF_REJECT 0x0200 /* Reject route */ | ||
| 61 | |||
| 62 | /* | ||
| 63 | * <linux/ipv6_route.h> uses RTF values >= 64k | ||
| 64 | */ | ||
| 65 | |||
| 66 | |||
| 67 | |||
| 68 | #endif /* _LINUX_ROUTE_H */ | ||
| 69 | |||
