History

net/sched: cls_flower: Support matching on ARP

Support matching on ARP operation, and hardware and protocol addresses for Ethernet hardware and IPv4 protocol addresses. Example usage: tc qdisc add dev eth0 ingress tc filter add dev eth0 protocol arp parent ffff: flower indev eth0 \ arp_op request arp_sip 10.0.0.1 action drop tc filter add dev eth0 protocol rarp parent ffff: flower indev eth0 \ arp_op reply arp_tha 52:54:3f:00:00:00/24 action drop

Simon Horman committed 9 years ago

Commit 99d31321 parent 55733352 files · +62 −0Browse files

Showing the changes to include/uapi/linux (1 of 2 files). Show all

Unified · Split

include/uapi/linux/pkt_cls.h+11−0
@@ -416,6 +416,17 @@ enum { · 415 unmodified lines
416416 TCA_FLOWER_KEY_ICMPV6_TYPE, /* u8 */
417417 TCA_FLOWER_KEY_ICMPV6_TYPE_MASK,/* u8 */
418418
419+ TCA_FLOWER_KEY_ARP_SIP, /* be32 */
420+ TCA_FLOWER_KEY_ARP_SIP_MASK, /* be32 */
421+ TCA_FLOWER_KEY_ARP_TIP, /* be32 */
422+ TCA_FLOWER_KEY_ARP_TIP_MASK, /* be32 */
423+ TCA_FLOWER_KEY_ARP_OP, /* u8 */
424+ TCA_FLOWER_KEY_ARP_OP_MASK, /* u8 */
425+ TCA_FLOWER_KEY_ARP_SHA, /* ETH_ALEN */
426+ TCA_FLOWER_KEY_ARP_SHA_MASK, /* ETH_ALEN */
427+ TCA_FLOWER_KEY_ARP_THA, /* ETH_ALEN */
428+ TCA_FLOWER_KEY_ARP_THA_MASK, /* ETH_ALEN */
429+
419430 __TCA_FLOWER_MAX,
420431 };
421432

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t