X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=datapath%2Fflow.h;h=80a5b66b1018a84aa193d92b9009c5c9f30ac1f6;hb=401eeb92d32ac0fa07f34f5b803d67b8032b6403;hp=534c7af24c3f8d4157c7c7427bcaf3f58261dbc6;hpb=e5ae7df8c7f44cb2d6f42daaab1d3c26c7a88ae3;p=sliver-openvswitch.git diff --git a/datapath/flow.h b/datapath/flow.h index 534c7af24..80a5b66b1 100644 --- a/datapath/flow.h +++ b/datapath/flow.h @@ -14,6 +14,7 @@ #include #include #include +#include #include #include @@ -42,6 +43,21 @@ struct sw_flow { u8 tcp_flags; /* Union of seen TCP flags. */ }; +struct arp_eth_header +{ + __be16 ar_hrd; /* format of hardware address */ + __be16 ar_pro; /* format of protocol address */ + unsigned char ar_hln; /* length of hardware address */ + unsigned char ar_pln; /* length of protocol address */ + __be16 ar_op; /* ARP opcode (command) */ + + /* Ethernet+IPv4 specific members. */ + unsigned char ar_sha[ETH_ALEN]; /* sender hardware address */ + unsigned char ar_sip[4]; /* sender IP address */ + unsigned char ar_tha[ETH_ALEN]; /* target hardware address */ + unsigned char ar_tip[4]; /* target IP address */ +} __attribute__((packed)); + extern struct kmem_cache *flow_cache; struct sw_flow_actions *flow_actions_alloc(size_t n_actions);