[PATCH] tests: add a test for mesh gate forwarding

Jouni Malinen j at w1.fi
Fri Mar 4 11:03:51 PST 2016


On Sat, Feb 27, 2016 at 08:51:25PM -0500, Bob Copeland wrote:
> This test checks that mesh nodes forward frames for unknown
> destinations to the mesh gates.

Does this need some special kernel configuration or fixes?

> +    external_sta = '02:11:22:33:44:55'
> +    # data frame from dev2 -> external sta should be sent to both gates
> +    dev[2].request("DATA_TEST_CONFIG 1")
> +    dev[2].request("DATA_TEST_TX {} {} 0".format(external_sta, addr2))
> +    dev[2].request("DATA_TEST_CONFIG 0")

I see no sign of that frame in hwsim0.pcapng and the test case fails
every time here:

> +    capfile = os.path.join(p['logdir'], "hwsim0.pcapng")
> +    check_frame_at_gate(capfile, addr0, addr2, external_sta)

with:
Exception: frame to gate 02:00:00:00:00:00 not observed
 
-- 
Jouni Malinen                                            PGP id EFC895FA



More information about the Hostap mailing list