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
04a9fc0a
Commit
04a9fc0a
authored
Aug 23, 2010
by
Stephen Hemminger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update kernel headers to 2.6.36-rc2
parent
daa10c8a
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
23 additions
and
26 deletions
+23
-26
include/linux/if.h
include/linux/if.h
+2
-0
include/linux/if_ether.h
include/linux/if_ether.h
+1
-1
include/linux/if_link.h
include/linux/if_link.h
+3
-2
include/linux/netdevice.h
include/linux/netdevice.h
+16
-23
include/linux/rtnetlink.h
include/linux/rtnetlink.h
+1
-0
No files found.
include/linux/if.h
View file @
04a9fc0a
...
...
@@ -73,6 +73,8 @@
#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 IFF_MACVLAN_PORT 0x4000
/* device used as macvlan port */
#define IFF_BRIDGE_PORT 0x8000
/* device used as bridge port */
#define IF_GET_IFACE 0x0001
/* for querying only */
#define IF_GET_PROTO 0x0002
...
...
include/linux/if_ether.h
View file @
04a9fc0a
...
...
@@ -119,7 +119,7 @@ struct ethhdr {
unsigned
char
h_dest
[
ETH_ALEN
];
/* destination eth addr */
unsigned
char
h_source
[
ETH_ALEN
];
/* source ether addr */
__be16
h_proto
;
/* packet type ID field */
}
__
attribute__
((
packed
))
;
}
__
packed
;
#endif
/* _LINUX_IF_ETHER_H */
include/linux/if_link.h
View file @
04a9fc0a
...
...
@@ -4,7 +4,7 @@
#include <linux/types.h>
#include <linux/netlink.h>
/* Th
e struct should be in sync with struct net_device_stats
*/
/* Th
is struct should be in sync with struct rtnl_link_stats64
*/
struct
rtnl_link_stats
{
__u32
rx_packets
;
/* total packets received */
__u32
tx_packets
;
/* total packets transmitted */
...
...
@@ -37,6 +37,7 @@ struct rtnl_link_stats {
__u32
tx_compressed
;
};
/* The main device statistics structure */
struct
rtnl_link_stats64
{
__u64
rx_packets
;
/* total packets received */
__u64
tx_packets
;
/* total packets transmitted */
...
...
@@ -231,7 +232,7 @@ enum macvlan_mode {
MACVLAN_MODE_BRIDGE
=
4
,
/* talk to bridge ports directly */
};
/* SR-IOV virtual function managment section */
/* SR-IOV virtual function manag
e
ment section */
enum
{
IFLA_VF_INFO_UNSPEC
,
...
...
include/linux/netdevice.h
View file @
04a9fc0a
...
...
@@ -35,43 +35,36 @@
/*
*
Network device statistics. Akin to the 2.0 ether stats but
*
with byte counters
.
*
Old network device statistics. Fields are native words
*
(unsigned long) so they can be read and written atomically
.
*/
struct
net_device_stats
{
unsigned
long
rx_packets
;
/* total packets received */
unsigned
long
tx_packets
;
/* total packets transmitted */
unsigned
long
rx_bytes
;
/* total bytes received */
unsigned
long
tx_bytes
;
/* total bytes transmitted */
unsigned
long
rx_errors
;
/* bad packets received */
unsigned
long
tx_errors
;
/* packet transmit problems */
unsigned
long
rx_dropped
;
/* no space in linux buffers */
unsigned
long
tx_dropped
;
/* no space available in linux */
unsigned
long
multicast
;
/* multicast packets received */
unsigned
long
rx_packets
;
unsigned
long
tx_packets
;
unsigned
long
rx_bytes
;
unsigned
long
tx_bytes
;
unsigned
long
rx_errors
;
unsigned
long
tx_errors
;
unsigned
long
rx_dropped
;
unsigned
long
tx_dropped
;
unsigned
long
multicast
;
unsigned
long
collisions
;
/* detailed rx_errors: */
unsigned
long
rx_length_errors
;
unsigned
long
rx_over_errors
;
/* receiver ring buff overflow */
unsigned
long
rx_crc_errors
;
/* recved pkt with crc error */
unsigned
long
rx_frame_errors
;
/* recv'd frame alignment error */
unsigned
long
rx_fifo_errors
;
/* recv'r fifo overrun */
unsigned
long
rx_missed_errors
;
/* receiver missed packet */
/* detailed tx_errors */
unsigned
long
rx_over_errors
;
unsigned
long
rx_crc_errors
;
unsigned
long
rx_frame_errors
;
unsigned
long
rx_fifo_errors
;
unsigned
long
rx_missed_errors
;
unsigned
long
tx_aborted_errors
;
unsigned
long
tx_carrier_errors
;
unsigned
long
tx_fifo_errors
;
unsigned
long
tx_heartbeat_errors
;
unsigned
long
tx_window_errors
;
/* for cslip etc */
unsigned
long
rx_compressed
;
unsigned
long
tx_compressed
;
};
/* Media selection options. */
enum
{
IF_PORT_UNKNOWN
=
0
,
...
...
include/linux/rtnetlink.h
View file @
04a9fc0a
...
...
@@ -282,6 +282,7 @@ enum rtattr_type_t {
RTA_SESSION
,
/* no longer used */
RTA_MP_ALGO
,
/* no longer used */
RTA_TABLE
,
RTA_MARK
,
__RTA_MAX
};
...
...
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