update kernel headers to 4.9-net-next
This commit is contained in:
parent
f3f339e959
commit
e770979cf1
|
|
@ -426,6 +426,12 @@ enum bpf_func_id {
|
|||
*/
|
||||
BPF_FUNC_set_hash_invalid,
|
||||
|
||||
/**
|
||||
* bpf_get_numa_node_id()
|
||||
* Returns the id of the current NUMA node.
|
||||
*/
|
||||
BPF_FUNC_get_numa_node_id,
|
||||
|
||||
__BPF_FUNC_MAX_ID,
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -35,6 +35,9 @@
|
|||
#define ETH_FRAME_LEN 1514 /* Max. octets in frame sans FCS */
|
||||
#define ETH_FCS_LEN 4 /* Octets in the FCS */
|
||||
|
||||
#define ETH_MIN_MTU 68 /* Min IPv4 MTU per RFC791 */
|
||||
#define ETH_MAX_MTU 0xFFFFU /* 65535, same as IP_MAX_MTU */
|
||||
|
||||
/*
|
||||
* These are the defined Ethernet Protocol ID's.
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -43,6 +43,23 @@ struct inet_diag_req_v2 {
|
|||
struct inet_diag_sockid id;
|
||||
};
|
||||
|
||||
/*
|
||||
* SOCK_RAW sockets require the underlied protocol to be
|
||||
* additionally specified so we can use @pad member for
|
||||
* this, but we can't rename it because userspace programs
|
||||
* still may depend on this name. Instead lets use another
|
||||
* structure definition as an alias for struct
|
||||
* @inet_diag_req_v2.
|
||||
*/
|
||||
struct inet_diag_req_raw {
|
||||
__u8 sdiag_family;
|
||||
__u8 sdiag_protocol;
|
||||
__u8 idiag_ext;
|
||||
__u8 sdiag_raw_protocol;
|
||||
__u32 idiag_states;
|
||||
struct inet_diag_sockid id;
|
||||
};
|
||||
|
||||
enum {
|
||||
INET_DIAG_REQ_NONE,
|
||||
INET_DIAG_REQ_BYTECODE,
|
||||
|
|
|
|||
Loading…
Reference in New Issue