History

net/sched: cls_flower: Support masking for matching on tcp/udp ports

Add the definitions for src/dst udp/tcp port masks and use them when setting && dumping the relevant keys.

Or Gerlitz committed 10 years ago

Commit aa72d701 parent 0ca4e202 files · +16 −8Browse files

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

Unified · Split

include/uapi/linux/pkt_cls.h+4−0
@@ -442,6 +442,10 @@ enum { · 441 unmodified lines
442442 TCA_FLOWER_KEY_ENC_IPV6_DST, /* struct in6_addr */
443443 TCA_FLOWER_KEY_ENC_IPV6_DST_MASK,/* struct in6_addr */
444444
445+ TCA_FLOWER_KEY_TCP_SRC_MASK, /* be16 */
446+ TCA_FLOWER_KEY_TCP_DST_MASK, /* be16 */
447+ TCA_FLOWER_KEY_UDP_SRC_MASK, /* be16 */
448+ TCA_FLOWER_KEY_UDP_DST_MASK, /* be16 */
445449 __TCA_FLOWER_MAX,
446450 };
447451

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