Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
iproute2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
iproute2
Commits
b4397f58
Commit
b4397f58
authored
May 19, 2010
by
Stephen Hemminger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update kernel derived headers
Version for 2.6.35 version on -next
parent
d248a8fe
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
128 additions
and
8 deletions
+128
-8
include/linux/genetlink.h
include/linux/genetlink.h
+1
-0
include/linux/if.h
include/linux/if.h
+2
-0
include/linux/if_arp.h
include/linux/if_arp.h
+1
-0
include/linux/if_ether.h
include/linux/if_ether.h
+1
-0
include/linux/if_link.h
include/linux/if_link.h
+108
-0
include/linux/if_tun.h
include/linux/if_tun.h
+2
-0
include/linux/netfilter/x_tables.h
include/linux/netfilter/x_tables.h
+6
-8
include/linux/rtnetlink.h
include/linux/rtnetlink.h
+7
-0
No files found.
include/linux/genetlink.h
View file @
b4397f58
...
...
@@ -80,4 +80,5 @@ enum {
#define CTRL_ATTR_MCAST_GRP_MAX (__CTRL_ATTR_MCAST_GRP_MAX - 1)
#endif
/* __LINUX_GENERIC_NETLINK_H */
include/linux/if.h
View file @
b4397f58
...
...
@@ -71,6 +71,8 @@
* release skb->dst
*/
#define IFF_DONT_BRIDGE 0x800
/* disallow bridging this ether dev */
#define IFF_IN_NETPOLL 0x1000
/* whether we are processing netpoll */
#define IFF_DISABLE_NETPOLL 0x2000
/* disable netpoll at run-time */
#define IF_GET_IFACE 0x0001
/* for querying only */
#define IF_GET_PROTO 0x0002
...
...
include/linux/if_arp.h
View file @
b4397f58
...
...
@@ -90,6 +90,7 @@
#define ARPHRD_PHONET 820
/* PhoNet media type */
#define ARPHRD_PHONET_PIPE 821
/* PhoNet pipe header */
#define ARPHRD_CAIF 822
/* CAIF media type */
#define ARPHRD_VOID 0xFFFF
/* Void type, nothing is known */
#define ARPHRD_NONE 0xFFFE
/* zero header length */
...
...
include/linux/if_ether.h
View file @
b4397f58
...
...
@@ -109,6 +109,7 @@
#define ETH_P_TRAILER 0x001C
/* Trailer switch tagging */
#define ETH_P_PHONET 0x00F5
/* Nokia Phonet frames */
#define ETH_P_IEEE802154 0x00F6
/* IEEE802.15.4 frame */
#define ETH_P_CAIF 0x00F7
/* ST-Ericsson CAIF protocol */
/*
* This is an Ethernet frame header.
...
...
include/linux/if_link.h
View file @
b4397f58
...
...
@@ -37,6 +37,38 @@ struct rtnl_link_stats {
__u32
tx_compressed
;
};
struct
rtnl_link_stats64
{
__u64
rx_packets
;
/* total packets received */
__u64
tx_packets
;
/* total packets transmitted */
__u64
rx_bytes
;
/* total bytes received */
__u64
tx_bytes
;
/* total bytes transmitted */
__u64
rx_errors
;
/* bad packets received */
__u64
tx_errors
;
/* packet transmit problems */
__u64
rx_dropped
;
/* no space in linux buffers */
__u64
tx_dropped
;
/* no space available in linux */
__u64
multicast
;
/* multicast packets received */
__u64
collisions
;
/* detailed rx_errors: */
__u64
rx_length_errors
;
__u64
rx_over_errors
;
/* receiver ring buff overflow */
__u64
rx_crc_errors
;
/* recved pkt with crc error */
__u64
rx_frame_errors
;
/* recv'd frame alignment error */
__u64
rx_fifo_errors
;
/* recv'r fifo overrun */
__u64
rx_missed_errors
;
/* receiver missed packet */
/* detailed tx_errors */
__u64
tx_aborted_errors
;
__u64
tx_carrier_errors
;
__u64
tx_fifo_errors
;
__u64
tx_heartbeat_errors
;
__u64
tx_window_errors
;
/* for cslip etc */
__u64
rx_compressed
;
__u64
tx_compressed
;
};
/* The struct should be in sync with struct ifmap */
struct
rtnl_link_ifmap
{
__u64
mem_start
;
...
...
@@ -80,6 +112,9 @@ enum {
IFLA_IFALIAS
,
IFLA_NUM_VF
,
/* Number of VFs if device is SR-IOV PF */
IFLA_VFINFO_LIST
,
IFLA_STATS64
,
IFLA_VF_PORTS
,
IFLA_PORT_SELF
,
__IFLA_MAX
};
...
...
@@ -239,4 +274,77 @@ struct ifla_vf_info {
__u32
qos
;
__u32
tx_rate
;
};
/* VF ports management section
*
* Nested layout of set/get msg is:
*
* [IFLA_NUM_VF]
* [IFLA_VF_PORTS]
* [IFLA_VF_PORT]
* [IFLA_PORT_*], ...
* [IFLA_VF_PORT]
* [IFLA_PORT_*], ...
* ...
* [IFLA_PORT_SELF]
* [IFLA_PORT_*], ...
*/
enum
{
IFLA_VF_PORT_UNSPEC
,
IFLA_VF_PORT
,
/* nest */
__IFLA_VF_PORT_MAX
,
};
#define IFLA_VF_PORT_MAX (__IFLA_VF_PORT_MAX - 1)
enum
{
IFLA_PORT_UNSPEC
,
IFLA_PORT_VF
,
/* __u32 */
IFLA_PORT_PROFILE
,
/* string */
IFLA_PORT_VSI_TYPE
,
/* 802.1Qbg (pre-)standard VDP */
IFLA_PORT_INSTANCE_UUID
,
/* binary UUID */
IFLA_PORT_HOST_UUID
,
/* binary UUID */
IFLA_PORT_REQUEST
,
/* __u8 */
IFLA_PORT_RESPONSE
,
/* __u16, output only */
__IFLA_PORT_MAX
,
};
#define IFLA_PORT_MAX (__IFLA_PORT_MAX - 1)
#define PORT_PROFILE_MAX 40
#define PORT_UUID_MAX 16
#define PORT_SELF_VF -1
enum
{
PORT_REQUEST_PREASSOCIATE
=
0
,
PORT_REQUEST_PREASSOCIATE_RR
,
PORT_REQUEST_ASSOCIATE
,
PORT_REQUEST_DISASSOCIATE
,
};
enum
{
PORT_VDP_RESPONSE_SUCCESS
=
0
,
PORT_VDP_RESPONSE_INVALID_FORMAT
,
PORT_VDP_RESPONSE_INSUFFICIENT_RESOURCES
,
PORT_VDP_RESPONSE_UNUSED_VTID
,
PORT_VDP_RESPONSE_VTID_VIOLATION
,
PORT_VDP_RESPONSE_VTID_VERSION_VIOALTION
,
PORT_VDP_RESPONSE_OUT_OF_SYNC
,
/* 0x08-0xFF reserved for future VDP use */
PORT_PROFILE_RESPONSE_SUCCESS
=
0x100
,
PORT_PROFILE_RESPONSE_INPROGRESS
,
PORT_PROFILE_RESPONSE_INVALID
,
PORT_PROFILE_RESPONSE_BADSTATE
,
PORT_PROFILE_RESPONSE_INSUFFICIENT_RESOURCES
,
PORT_PROFILE_RESPONSE_ERROR
,
};
struct
ifla_port_vsi
{
__u8
vsi_mgr_id
;
__u8
vsi_type_id
[
3
];
__u8
vsi_type_version
;
__u8
pad
[
3
];
};
#endif
/* _LINUX_IF_LINK_H */
include/linux/if_tun.h
View file @
b4397f58
...
...
@@ -51,6 +51,8 @@
#define TUNSETSNDBUF _IOW('T', 212, int)
#define TUNATTACHFILTER _IOW('T', 213, struct sock_fprog)
#define TUNDETACHFILTER _IOW('T', 214, struct sock_fprog)
#define TUNGETVNETHDRSZ _IOR('T', 215, int)
#define TUNSETVNETHDRSZ _IOW('T', 216, int)
/* TUNSETIFF ifr flags */
#define IFF_TUN 0x0001
...
...
include/linux/netfilter/x_tables.h
View file @
b4397f58
#ifndef _X_TABLES_H
#define _X_TABLES_H
#include <linux/kernel.h>
#include <linux/types.h>
#define XT_FUNCTION_MAXNAMELEN 30
#define XT_EXTENSION_MAXNAMELEN 29
#define XT_TABLE_MAXNAMELEN 32
struct
xt_entry_match
{
...
...
@@ -12,8 +13,7 @@ struct xt_entry_match {
__u16
match_size
;
/* Used by userspace */
char
name
[
XT_FUNCTION_MAXNAMELEN
-
1
];
char
name
[
XT_EXTENSION_MAXNAMELEN
];
__u8
revision
;
}
user
;
struct
{
...
...
@@ -36,8 +36,7 @@ struct xt_entry_target {
__u16
target_size
;
/* Used by userspace */
char
name
[
XT_FUNCTION_MAXNAMELEN
-
1
];
char
name
[
XT_EXTENSION_MAXNAMELEN
];
__u8
revision
;
}
user
;
struct
{
...
...
@@ -70,8 +69,7 @@ struct xt_standard_target {
/* The argument to IPT_SO_GET_REVISION_*. Returns highest revision
* kernel supports, if >= revision. */
struct
xt_get_revision
{
char
name
[
XT_FUNCTION_MAXNAMELEN
-
1
];
char
name
[
XT_EXTENSION_MAXNAMELEN
];
__u8
revision
;
};
...
...
@@ -93,7 +91,7 @@ struct _xt_align {
__u64
u64
;
};
#define XT_ALIGN(s)
ALIGN
((s), __alignof__(struct _xt_align))
#define XT_ALIGN(s)
__ALIGN_KERNEL
((s), __alignof__(struct _xt_align))
/* Standard return verdict, or do jump. */
#define XT_STANDARD_TARGET ""
...
...
include/linux/rtnetlink.h
View file @
b4397f58
...
...
@@ -7,6 +7,13 @@
#include <linux/if_addr.h>
#include <linux/neighbour.h>
/* rtnetlink families. Values up to 127 are reserved for real address
* families, values above 128 may be used arbitrarily.
*/
#define RTNL_FAMILY_IPMR 128
#define RTNL_FAMILY_IP6MR 129
#define RTNL_FAMILY_MAX 129
/****
* Routing/neighbour discovery messages.
****/
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment