]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
ip/bond: add arp_validate filter support
authorHangbin Liu <liuhangbin@gmail.com>
Mon, 16 Aug 2021 07:49:05 +0000 (15:49 +0800)
committerStephen Hemminger <stephen@networkplumber.org>
Wed, 18 Aug 2021 21:02:44 +0000 (14:02 -0700)
Add arp_validate filter support based on kernel commit 896149ff1b2c
("bonding: extend arp_validate to be able to receive unvalidated arp-only traffic")

Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
ip/iplink_bond.c

index d45845bd7fa0f9d711b925ec0ae7d37127489e09..0b4fe445dfe728b7e86ea48478b3b822fc11d592 100644 (file)
@@ -41,6 +41,9 @@ static const char *arp_validate_tbl[] = {
        "active",
        "backup",
        "all",
+       "filter",
+       "filter_active",
+       "filter_backup",
        NULL,
 };
 
@@ -145,7 +148,7 @@ static void print_explain(FILE *f)
                "                [ ad_actor_system LLADDR ]\n"
                "\n"
                "BONDMODE := balance-rr|active-backup|balance-xor|broadcast|802.3ad|balance-tlb|balance-alb\n"
-               "ARP_VALIDATE := none|active|backup|all\n"
+               "ARP_VALIDATE := none|active|backup|all|filter|filter_active|filter_backup\n"
                "ARP_ALL_TARGETS := any|all\n"
                "PRIMARY_RESELECT := always|better|failure\n"
                "FAIL_OVER_MAC := none|active|follow\n"