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
8ecdcce0
Commit
8ecdcce0
authored
Mar 03, 2010
by
Stephen Hemminger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update headers for 2.6.33-net-next
Use santized headers from net-next tree.
parent
f5fd8003
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
72 additions
and
8 deletions
+72
-8
include/linux/can/netlink.h
include/linux/can/netlink.h
+14
-3
include/linux/if_link.h
include/linux/if_link.h
+30
-0
include/linux/netdevice.h
include/linux/netdevice.h
+1
-0
include/linux/netfilter/x_tables.h
include/linux/netfilter/x_tables.h
+16
-2
include/linux/rtnetlink.h
include/linux/rtnetlink.h
+2
-0
include/linux/xfrm.h
include/linux/xfrm.h
+9
-3
No files found.
include/linux/can/netlink.h
View file @
8ecdcce0
...
@@ -69,6 +69,14 @@ enum can_state {
...
@@ -69,6 +69,14 @@ enum can_state {
CAN_STATE_MAX
CAN_STATE_MAX
};
};
/*
* CAN bus error counters
*/
struct
can_berr_counter
{
__u16
txerr
;
__u16
rxerr
;
};
/*
/*
* CAN controller mode
* CAN controller mode
*/
*/
...
@@ -77,9 +85,11 @@ struct can_ctrlmode {
...
@@ -77,9 +85,11 @@ struct can_ctrlmode {
__u32
flags
;
__u32
flags
;
};
};
#define CAN_CTRLMODE_LOOPBACK 0x1
/* Loopback mode */
#define CAN_CTRLMODE_LOOPBACK 0x01
/* Loopback mode */
#define CAN_CTRLMODE_LISTENONLY 0x2
/* Listen-only mode */
#define CAN_CTRLMODE_LISTENONLY 0x02
/* Listen-only mode */
#define CAN_CTRLMODE_3_SAMPLES 0x4
/* Triple sampling mode */
#define CAN_CTRLMODE_3_SAMPLES 0x04
/* Triple sampling mode */
#define CAN_CTRLMODE_ONE_SHOT 0x08
/* One-Shot mode */
#define CAN_CTRLMODE_BERR_REPORTING 0x10
/* Bus-error reporting */
/*
/*
* CAN device statistics
* CAN device statistics
...
@@ -105,6 +115,7 @@ enum {
...
@@ -105,6 +115,7 @@ enum {
IFLA_CAN_CTRLMODE
,
IFLA_CAN_CTRLMODE
,
IFLA_CAN_RESTART_MS
,
IFLA_CAN_RESTART_MS
,
IFLA_CAN_RESTART
,
IFLA_CAN_RESTART
,
IFLA_CAN_BERR_COUNTER
,
__IFLA_CAN_MAX
__IFLA_CAN_MAX
};
};
...
...
include/linux/if_link.h
View file @
8ecdcce0
...
@@ -78,6 +78,11 @@ enum {
...
@@ -78,6 +78,11 @@ enum {
#define IFLA_LINKINFO IFLA_LINKINFO
#define IFLA_LINKINFO IFLA_LINKINFO
IFLA_NET_NS_PID
,
IFLA_NET_NS_PID
,
IFLA_IFALIAS
,
IFLA_IFALIAS
,
IFLA_NUM_VF
,
/* Number of VFs if device is SR-IOV PF */
IFLA_VF_MAC
,
/* Hardware queue specific attributes */
IFLA_VF_VLAN
,
IFLA_VF_TX_RATE
,
/* TX Bandwidth Allocation */
IFLA_VFINFO
,
__IFLA_MAX
__IFLA_MAX
};
};
...
@@ -194,4 +199,29 @@ enum macvlan_mode {
...
@@ -194,4 +199,29 @@ enum macvlan_mode {
MACVLAN_MODE_BRIDGE
=
4
,
/* talk to bridge ports directly */
MACVLAN_MODE_BRIDGE
=
4
,
/* talk to bridge ports directly */
};
};
/* SR-IOV virtual function managment section */
struct
ifla_vf_mac
{
__u32
vf
;
__u8
mac
[
32
];
/* MAX_ADDR_LEN */
};
struct
ifla_vf_vlan
{
__u32
vf
;
__u32
vlan
;
/* 0 - 4095, 0 disables VLAN filter */
__u32
qos
;
};
struct
ifla_vf_tx_rate
{
__u32
vf
;
__u32
rate
;
/* Max TX bandwidth in Mbps, 0 disables throttling */
};
struct
ifla_vf_info
{
__u32
vf
;
__u8
mac
[
32
];
__u32
vlan
;
__u32
qos
;
__u32
tx_rate
;
};
#endif
/* _LINUX_IF_LINK_H */
#endif
/* _LINUX_IF_LINK_H */
include/linux/netdevice.h
View file @
8ecdcce0
...
@@ -28,6 +28,7 @@
...
@@ -28,6 +28,7 @@
#include <linux/if.h>
#include <linux/if.h>
#include <linux/if_ether.h>
#include <linux/if_ether.h>
#include <linux/if_packet.h>
#include <linux/if_packet.h>
#include <linux/if_link.h>
#define MAX_ADDR_LEN 32
/* Largest hardware address length */
#define MAX_ADDR_LEN 32
/* Largest hardware address length */
...
...
include/linux/netfilter/x_tables.h
View file @
8ecdcce0
...
@@ -93,8 +93,7 @@ struct _xt_align {
...
@@ -93,8 +93,7 @@ struct _xt_align {
__u64
u64
;
__u64
u64
;
};
};
#define XT_ALIGN(s) (((s) + (__alignof__(struct _xt_align)-1)) \
#define XT_ALIGN(s) ALIGN((s), __alignof__(struct _xt_align))
& ~(__alignof__(struct _xt_align)-1))
/* Standard return verdict, or do jump. */
/* Standard return verdict, or do jump. */
#define XT_STANDARD_TARGET ""
#define XT_STANDARD_TARGET ""
...
@@ -165,4 +164,19 @@ struct xt_counters_info {
...
@@ -165,4 +164,19 @@ struct xt_counters_info {
XT_ENTRY_ITERATE_CONTINUE(type, entries, size, 0, fn, args)
XT_ENTRY_ITERATE_CONTINUE(type, entries, size, 0, fn, args)
/* pos is normally a struct ipt_entry/ip6t_entry/etc. */
#define xt_entry_foreach(pos, ehead, esize) \
for ((pos) = (typeof(pos))(ehead); \
(pos) < (typeof(pos))((char *)(ehead) + (esize)); \
(pos) = (typeof(pos))((char *)(pos) + (pos)->next_offset))
/* can only be xt_entry_match, so no use of typeof here */
#define xt_ematch_foreach(pos, entry) \
for ((pos) = (struct xt_entry_match *)entry->elems; \
(pos) < (struct xt_entry_match *)((char *)(entry) + \
(entry)->target_offset); \
(pos) = (struct xt_entry_match *)((char *)(pos) + \
(pos)->u.match_size))
#endif
/* _X_TABLES_H */
#endif
/* _X_TABLES_H */
include/linux/rtnetlink.h
View file @
8ecdcce0
...
@@ -362,6 +362,8 @@ enum {
...
@@ -362,6 +362,8 @@ enum {
#define RTAX_FEATURES RTAX_FEATURES
#define RTAX_FEATURES RTAX_FEATURES
RTAX_RTO_MIN
,
RTAX_RTO_MIN
,
#define RTAX_RTO_MIN RTAX_RTO_MIN
#define RTAX_RTO_MIN RTAX_RTO_MIN
RTAX_INITRWND
,
#define RTAX_INITRWND RTAX_INITRWND
__RTAX_MAX
__RTAX_MAX
};
};
...
...
include/linux/xfrm.h
View file @
8ecdcce0
...
@@ -267,8 +267,8 @@ enum xfrm_attr_type_t {
...
@@ -267,8 +267,8 @@ enum xfrm_attr_type_t {
XFRMA_ALG_COMP
,
/* struct xfrm_algo */
XFRMA_ALG_COMP
,
/* struct xfrm_algo */
XFRMA_ENCAP
,
/* struct xfrm_algo + struct xfrm_encap_tmpl */
XFRMA_ENCAP
,
/* struct xfrm_algo + struct xfrm_encap_tmpl */
XFRMA_TMPL
,
/* 1 or more struct xfrm_user_tmpl */
XFRMA_TMPL
,
/* 1 or more struct xfrm_user_tmpl */
XFRMA_SA
,
XFRMA_SA
,
/* struct xfrm_usersa_info */
XFRMA_POLICY
,
XFRMA_POLICY
,
/*struct xfrm_userpolicy_info */
XFRMA_SEC_CTX
,
/* struct xfrm_sec_ctx */
XFRMA_SEC_CTX
,
/* struct xfrm_sec_ctx */
XFRMA_LTIME_VAL
,
XFRMA_LTIME_VAL
,
XFRMA_REPLAY_VAL
,
XFRMA_REPLAY_VAL
,
...
@@ -276,17 +276,23 @@ enum xfrm_attr_type_t {
...
@@ -276,17 +276,23 @@ enum xfrm_attr_type_t {
XFRMA_ETIMER_THRESH
,
XFRMA_ETIMER_THRESH
,
XFRMA_SRCADDR
,
/* xfrm_address_t */
XFRMA_SRCADDR
,
/* xfrm_address_t */
XFRMA_COADDR
,
/* xfrm_address_t */
XFRMA_COADDR
,
/* xfrm_address_t */
XFRMA_LASTUSED
,
XFRMA_LASTUSED
,
/* unsigned long */
XFRMA_POLICY_TYPE
,
/* struct xfrm_userpolicy_type */
XFRMA_POLICY_TYPE
,
/* struct xfrm_userpolicy_type */
XFRMA_MIGRATE
,
XFRMA_MIGRATE
,
XFRMA_ALG_AEAD
,
/* struct xfrm_algo_aead */
XFRMA_ALG_AEAD
,
/* struct xfrm_algo_aead */
XFRMA_KMADDRESS
,
/* struct xfrm_user_kmaddress */
XFRMA_KMADDRESS
,
/* struct xfrm_user_kmaddress */
XFRMA_ALG_AUTH_TRUNC
,
/* struct xfrm_algo_auth */
XFRMA_ALG_AUTH_TRUNC
,
/* struct xfrm_algo_auth */
XFRMA_MARK
,
/* struct xfrm_mark */
__XFRMA_MAX
__XFRMA_MAX
#define XFRMA_MAX (__XFRMA_MAX - 1)
#define XFRMA_MAX (__XFRMA_MAX - 1)
};
};
struct
xfrm_mark
{
__u32
v
;
/* value */
__u32
m
;
/* mask */
};
enum
xfrm_sadattr_type_t
{
enum
xfrm_sadattr_type_t
{
XFRMA_SAD_UNSPEC
,
XFRMA_SAD_UNSPEC
,
XFRMA_SAD_CNT
,
XFRMA_SAD_CNT
,
...
...
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