eiwd

no dbus iwd with iwctl functionality
git clone https://git.daat.foo/repos/eiwd.git
Log | Files | Refs | Submodules | README | LICENSE

commit f8af73f2c7d0e53bdb7a60215210fef34482de1c
parent aca70beeffd6ab42484e0e846ed2feae98a6cbeb
Author: Denis Kenzior <denkenz@gmail.com>
Date:   Wed,  3 Apr 2019 11:47:51 -0500

unit: Use l_container_of

Diffstat:
Munit/test-eapol.c | 10+++++-----
Munit/test-sae.c | 2+-
Munit/test-wsc.c | 2+-
3 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/unit/test-eapol.c b/unit/test-eapol.c @@ -81,7 +81,7 @@ struct test_handshake_state { static void test_handshake_state_free(struct handshake_state *hs) { struct test_handshake_state *ths = - container_of(hs, struct test_handshake_state, super); + l_container_of(hs, struct test_handshake_state, super); l_free(ths); } @@ -2474,7 +2474,7 @@ static void verify_install_tk(struct handshake_state *hs, const uint8_t *tk, uint32_t cipher) { struct test_handshake_state *ths = - container_of(hs, struct test_handshake_state, super); + l_container_of(hs, struct test_handshake_state, super); assert(hs->ifindex == 1); assert(!memcmp(hs->aa, aa, 6)); @@ -3094,7 +3094,7 @@ static void eapol_sm_test_tls(struct eapol_8021x_tls_test_state *s, __eapol_set_tx_packet_func(verify_step4); __handshake_set_install_tk_func(verify_install_tk); - ths = container_of(hs, struct test_handshake_state, super); + ths = l_container_of(hs, struct test_handshake_state, super); ths->tk = ptk + 16 + 16; __eapol_rx_packet(1, ap_address, ETH_P_PAE, step3_buf, sizeof(eapol_key_data_15), false); @@ -3211,7 +3211,7 @@ static void test_handshake_event(struct handshake_state *hs, void *user_data) { struct test_handshake_state *ths = - container_of(hs, struct test_handshake_state, super); + l_container_of(hs, struct test_handshake_state, super); switch (event) { case HANDSHAKE_EVENT_FAILED: @@ -3283,7 +3283,7 @@ static void eapol_sm_test_eap_nak(const void *data) __handshake_set_get_nonce_func(test_nonce); hs = test_handshake_state_new(1); - ths = container_of(hs, struct test_handshake_state, super); + ths = l_container_of(hs, struct test_handshake_state, super); sm = eapol_sm_new(hs); eapol_register(sm); diff --git a/unit/test-sae.c b/unit/test-sae.c @@ -67,7 +67,7 @@ static char *passphrase = "secret123"; static void test_handshake_state_free(struct handshake_state *hs) { struct test_handshake_state *ths = - container_of(hs, struct test_handshake_state, super); + l_container_of(hs, struct test_handshake_state, super); l_free(ths); } diff --git a/unit/test-wsc.c b/unit/test-wsc.c @@ -48,7 +48,7 @@ struct test_handshake_state { static void test_handshake_state_free(struct handshake_state *hs) { struct test_handshake_state *ths = - container_of(hs, struct test_handshake_state, super); + l_container_of(hs, struct test_handshake_state, super); l_free(ths); }