Lines Matching refs:a

425 static __init inline struct in_addr *ip4(u8 a, u8 b, u8 c, u8 d)  in ip4()  argument
430 split[0] = a; in ip4()
437 static __init inline struct in6_addr *ip6(u32 a, u32 b, u32 c, u32 d) in ip6() argument
442 split[0] = cpu_to_be32(a); in ip6()
493 struct wg_peer *a = init_peer(), *b = init_peer(), *c = init_peer(), in wg_allowedips_selftest() local
508 if (!a || !b || !c || !d || !e || !f || !g || !h) { in wg_allowedips_selftest()
513 insert(4, a, 192, 168, 4, 0, 24); in wg_allowedips_selftest()
528 insert(6, a, 0x24046800, 0x40040800, 0xdeadbeef, 0xdeadbeef, 128); in wg_allowedips_selftest()
534 insert(4, a, 10, 0, 0, 0, 25); in wg_allowedips_selftest()
536 insert(4, a, 10, 1, 0, 0, 30); in wg_allowedips_selftest()
548 test(4, a, 192, 168, 4, 20); in wg_allowedips_selftest()
549 test(4, a, 192, 168, 4, 0); in wg_allowedips_selftest()
564 test(6, a, 0x24046800, 0x40040800, 0xdeadbeef, 0xdeadbeef); in wg_allowedips_selftest()
570 test(4, a, 10, 0, 0, 52); in wg_allowedips_selftest()
572 test(4, a, 10, 1, 0, 2); in wg_allowedips_selftest()
577 insert(4, a, 1, 0, 0, 0, 32); in wg_allowedips_selftest()
578 insert(4, a, 64, 0, 0, 0, 32); in wg_allowedips_selftest()
579 insert(4, a, 128, 0, 0, 0, 32); in wg_allowedips_selftest()
580 insert(4, a, 192, 0, 0, 0, 32); in wg_allowedips_selftest()
581 insert(4, a, 255, 0, 0, 0, 32); in wg_allowedips_selftest()
582 wg_allowedips_remove_by_peer(&t, a, &mutex); in wg_allowedips_selftest()
583 test_negative(4, a, 1, 0, 0, 0); in wg_allowedips_selftest()
584 test_negative(4, a, 64, 0, 0, 0); in wg_allowedips_selftest()
585 test_negative(4, a, 128, 0, 0, 0); in wg_allowedips_selftest()
586 test_negative(4, a, 192, 0, 0, 0); in wg_allowedips_selftest()
587 test_negative(4, a, 255, 0, 0, 0); in wg_allowedips_selftest()
591 insert(4, a, 192, 168, 0, 0, 16); in wg_allowedips_selftest()
592 insert(4, a, 192, 168, 0, 0, 24); in wg_allowedips_selftest()
593 wg_allowedips_remove_by_peer(&t, a, &mutex); in wg_allowedips_selftest()
594 test_negative(4, a, 192, 168, 0, 1); in wg_allowedips_selftest()
603 wg_allowedips_insert_v6(&t, &ip, 128, a, &mutex); in wg_allowedips_selftest()
606 wg_allowedips_insert_v6(&t, &ip, 128, a, &mutex); in wg_allowedips_selftest()
609 wg_allowedips_insert_v6(&t, &ip, 128, a, &mutex); in wg_allowedips_selftest()
613 insert(4, a, 192, 95, 5, 93, 27); in wg_allowedips_selftest()
614 insert(6, a, 0x26075300, 0x60006b00, 0, 0xc05f0543, 128); in wg_allowedips_selftest()
615 insert(4, a, 10, 1, 0, 20, 29); in wg_allowedips_selftest()
616 insert(6, a, 0x26075300, 0x6d8a6bf8, 0xdab1f1df, 0xc05f1523, 83); in wg_allowedips_selftest()
617 insert(6, a, 0x26075300, 0x6d8a6bf8, 0xdab1f1df, 0xc05f1523, 21); in wg_allowedips_selftest()
618 list_for_each_entry(iter_node, &a->allowedips_list, peer_list) { in wg_allowedips_selftest()
661 kfree(a); in wg_allowedips_selftest()