flow disector: ARP support
Allow dissection of (R)ARP operation hardware and protocol addresses for Ethernet hardware and IPv4 protocol addresses. There are currently no users of FLOW_DISSECTOR_KEY_ARP. A follow-up patch will allow FLOW_DISSECTOR_KEY_ARP to be used by the flower classifier. Signed-off-by: Simon Horman <simon.horman@netronome.com> Acked-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
380043b9de
commit
55733350e5
@@ -88,6 +88,24 @@ struct flow_dissector_key_addrs {
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* flow_dissector_key_arp:
|
||||
* @ports: Operation, source and target addresses for an ARP header
|
||||
* for Ethernet hardware addresses and IPv4 protocol addresses
|
||||
* sip: Sender IP address
|
||||
* tip: Target IP address
|
||||
* op: Operation
|
||||
* sha: Sender hardware address
|
||||
* tpa: Target hardware address
|
||||
*/
|
||||
struct flow_dissector_key_arp {
|
||||
__u32 sip;
|
||||
__u32 tip;
|
||||
__u8 op;
|
||||
unsigned char sha[ETH_ALEN];
|
||||
unsigned char tha[ETH_ALEN];
|
||||
};
|
||||
|
||||
/**
|
||||
* flow_dissector_key_tp_ports:
|
||||
* @ports: port numbers of Transport header
|
||||
@@ -141,6 +159,7 @@ enum flow_dissector_key_id {
|
||||
FLOW_DISSECTOR_KEY_ICMP, /* struct flow_dissector_key_icmp */
|
||||
FLOW_DISSECTOR_KEY_ETH_ADDRS, /* struct flow_dissector_key_eth_addrs */
|
||||
FLOW_DISSECTOR_KEY_TIPC_ADDRS, /* struct flow_dissector_key_tipc_addrs */
|
||||
FLOW_DISSECTOR_KEY_ARP, /* struct flow_dissector_key_arp */
|
||||
FLOW_DISSECTOR_KEY_VLAN, /* struct flow_dissector_key_flow_vlan */
|
||||
FLOW_DISSECTOR_KEY_FLOW_LABEL, /* struct flow_dissector_key_flow_tags */
|
||||
FLOW_DISSECTOR_KEY_GRE_KEYID, /* struct flow_dissector_key_keyid */
|
||||
|
Reference in New Issue
Block a user