• Hangbin Liu's avatar
    selftests/net: specify the interface when do arping · 7f770d28
    Hangbin Liu authored
    When do arping, the interface need to be specified. Or we will
    get error: Interface "lo" is not ARPable. And the test failed.
    ]# ./arp_ndisc_untracked_subnets.sh
        TEST: test_arp:  accept_arp=0                                       [ OK ]
        TEST: test_arp:  accept_arp=1                                       [FAIL]
        TEST: test_arp:  accept_arp=2  same_subnet=0                        [ OK ]
        TEST: test_arp:  accept_arp=2  same_subnet=1                        [FAIL]
    
    After fix:
    ]# ./arp_ndisc_untracked_subnets.sh
        TEST: test_arp:  accept_arp=0                                       [ OK ]
        TEST: test_arp:  accept_arp=1                                       [ OK ]
        TEST: test_arp:  accept_arp=2  same_subnet=0                        [ OK ]
        TEST: test_arp:  accept_arp=2  same_subnet=1                        [ OK ]
    
    Fixes: 0ea7b0a4 ("selftests: net: arp_ndisc_untracked_subnets: test for arp_accept and accept_untracked_na")
    Signed-off-by: default avatarHangbin Liu <liuhangbin@gmail.com>
    Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
    7f770d28
arp_ndisc_untracked_subnets.sh 7.39 KB