/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/l2_packet/ |
D | l2_packet_winpcap.c | 65 int l2_packet_get_own_addr(struct l2_packet_data *l2, u8 *addr) in l2_packet_get_own_addr() argument 67 os_memcpy(addr, l2->own_addr, ETH_ALEN); in l2_packet_get_own_addr() 72 int l2_packet_send(struct l2_packet_data *l2, const u8 *dst_addr, u16 proto, in l2_packet_send() argument 78 if (l2 == NULL) in l2_packet_send() 81 if (l2->l2_hdr) { in l2_packet_send() 82 ret = pcap_sendpacket(l2->pcap, buf, len); in l2_packet_send() 90 os_memcpy(eth->h_source, l2->own_addr, ETH_ALEN); in l2_packet_send() 93 ret = pcap_sendpacket(l2->pcap, (u8 *) eth, mlen); in l2_packet_send() 105 struct l2_packet_data *l2 = (struct l2_packet_data *) user; in l2_packet_receive_cb() local 112 if (l2->l2_hdr) { in l2_packet_receive_cb() [all …]
|
D | l2_packet_pcap.c | 43 int l2_packet_get_own_addr(struct l2_packet_data *l2, u8 *addr) in l2_packet_get_own_addr() argument 45 os_memcpy(addr, l2->own_addr, ETH_ALEN); in l2_packet_get_own_addr() 51 static int l2_packet_init_libdnet(struct l2_packet_data *l2) in l2_packet_init_libdnet() argument 55 l2->eth = eth_open(l2->ifname); in l2_packet_init_libdnet() 56 if (!l2->eth) { in l2_packet_init_libdnet() 59 l2->ifname, strerror(errno)); in l2_packet_init_libdnet() 63 if (eth_get(l2->eth, &own_addr) < 0) { in l2_packet_init_libdnet() 66 l2->ifname, strerror(errno)); in l2_packet_init_libdnet() 67 eth_close(l2->eth); in l2_packet_init_libdnet() 68 l2->eth = NULL; in l2_packet_init_libdnet() [all …]
|
D | l2_packet_linux.c | 110 int l2_packet_get_own_addr(struct l2_packet_data *l2, u8 *addr) in l2_packet_get_own_addr() argument 112 os_memcpy(addr, l2->own_addr, ETH_ALEN); in l2_packet_get_own_addr() 117 int l2_packet_send(struct l2_packet_data *l2, const u8 *dst_addr, u16 proto, in l2_packet_send() argument 124 if (l2 == NULL) in l2_packet_send() 128 l2->l2_hdr = 0; in l2_packet_send() 130 if (l2->l2_hdr) { in l2_packet_send() 131 ret = send(l2->fd, buf, len, 0); in l2_packet_send() 139 ll.sll_ifindex = l2->ifindex; in l2_packet_send() 143 ret = sendto(l2->fd, buf, len, 0, (struct sockaddr *) &ll, in l2_packet_send() 156 struct l2_packet_data *l2 = eloop_ctx; in l2_packet_receive() local [all …]
|
D | l2_packet_ndis.c | 56 struct l2_packet_data *l2[2]; member 84 int l2_packet_get_own_addr(struct l2_packet_data *l2, u8 *addr) in l2_packet_get_own_addr() argument 86 os_memcpy(addr, l2->own_addr, ETH_ALEN); in l2_packet_get_own_addr() 91 int l2_packet_send(struct l2_packet_data *l2, const u8 *dst_addr, u16 proto, in l2_packet_send() argument 102 if (l2 == NULL) in l2_packet_send() 112 if (l2->l2_hdr) { in l2_packet_send() 122 os_memcpy(eth->h_source, l2->own_addr, ETH_ALEN); in l2_packet_send() 157 static void l2_packet_callback(struct l2_packet_data *l2); 160 static void l2_packet_rx_thread_try_read(struct l2_packet_data *l2) in l2_packet_rx_thread_try_read() argument 165 if (!ReadFile(driver_ndis_get_ndisuio_handle(), l2->rx_buf, in l2_packet_rx_thread_try_read() [all …]
|
D | l2_packet_privsep.c | 29 static int wpa_priv_cmd(struct l2_packet_data *l2, int cmd, in wpa_priv_cmd() argument 43 msg.msg_name = &l2->priv_addr; in wpa_priv_cmd() 44 msg.msg_namelen = sizeof(l2->priv_addr); in wpa_priv_cmd() 46 if (sendmsg(l2->fd, &msg, 0) < 0) { in wpa_priv_cmd() 55 int l2_packet_get_own_addr(struct l2_packet_data *l2, u8 *addr) in l2_packet_get_own_addr() argument 57 os_memcpy(addr, l2->own_addr, ETH_ALEN); in l2_packet_get_own_addr() 62 int l2_packet_send(struct l2_packet_data *l2, const u8 *dst_addr, u16 proto, in l2_packet_send() argument 81 msg.msg_name = &l2->priv_addr; in l2_packet_send() 82 msg.msg_namelen = sizeof(l2->priv_addr); in l2_packet_send() 84 if (sendmsg(l2->fd, &msg, 0) < 0) { in l2_packet_send() [all …]
|
D | l2_packet_rtos.c | 27 int l2_packet_get_own_addr(const struct l2_packet_data *l2, u8 *addr) in l2_packet_get_own_addr() argument 30 if ((l2 == NULL) || (addr == NULL)) in l2_packet_get_own_addr() 32 if (memcpy_s(addr, sizeof(l2->own_addr), l2->own_addr, sizeof(l2->own_addr)) != EOK){ in l2_packet_get_own_addr() 38 int l2_packet_send(const struct l2_packet_data *l2, const u8 *dst_addr, u16 proto, in l2_packet_send() argument 44 if (l2 == NULL) in l2_packet_send() 47 ret = WifiEapolPacketSend(l2->ifname, l2->own_addr, dst_addr, (unsigned char *)buf, len); in l2_packet_send() 55 struct l2_packet_data *l2 = eloop_ctx; in l2_packet_receive() local 68 if (SUCC == WifiEapolPacketReceive(l2->ifname, &st_rx_eapol)) { in l2_packet_receive() 71 if (l2->rx_callback != NULL) { in l2_packet_receive() 73 l2->rx_callback(l2->rx_callback_ctx, puc_src, st_rx_eapol.buf, st_rx_eapol.len); in l2_packet_receive() [all …]
|
D | l2_packet_freebsd.c | 48 int l2_packet_get_own_addr(struct l2_packet_data *l2, u8 *addr) in l2_packet_get_own_addr() argument 50 os_memcpy(addr, l2->own_addr, ETH_ALEN); in l2_packet_get_own_addr() 55 int l2_packet_send(struct l2_packet_data *l2, const u8 *dst_addr, u16 proto, in l2_packet_send() argument 58 if (!l2->l2_hdr) { in l2_packet_send() 64 os_memcpy(eth->h_source, l2->own_addr, ETH_ALEN); in l2_packet_send() 67 ret = pcap_inject(l2->pcap, (u8 *) eth, len + sizeof(*eth)); in l2_packet_send() 71 return pcap_inject(l2->pcap, buf, len); in l2_packet_send() 77 struct l2_packet_data *l2 = eloop_ctx; in l2_packet_receive() local 87 if (!l2->rx_callback || !packet || hdr.caplen < sizeof(*ethhdr)) in l2_packet_receive() 91 if (l2->l2_hdr) { in l2_packet_receive() [all …]
|
D | l2_packet_none.c | 30 int l2_packet_get_own_addr(struct l2_packet_data *l2, u8 *addr) in l2_packet_get_own_addr() argument 32 os_memcpy(addr, l2->own_addr, ETH_ALEN); in l2_packet_get_own_addr() 37 int l2_packet_send(struct l2_packet_data *l2, const u8 *dst_addr, u16 proto, in l2_packet_send() argument 40 if (l2 == NULL) in l2_packet_send() 54 struct l2_packet_data *l2 = eloop_ctx; in l2_packet_receive() local 62 l2->rx_callback(l2->rx_callback_ctx, NULL /* TODO: src addr */, in l2_packet_receive() 73 struct l2_packet_data *l2; in l2_packet_init() local 75 l2 = os_zalloc(sizeof(struct l2_packet_data)); in l2_packet_init() 76 if (l2 == NULL) in l2_packet_init() 78 os_strlcpy(l2->ifname, ifname, sizeof(l2->ifname)); in l2_packet_init() [all …]
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/l2_packet/ |
D | l2_packet_winpcap.c | 65 int l2_packet_get_own_addr(struct l2_packet_data *l2, u8 *addr) in l2_packet_get_own_addr() argument 67 os_memcpy(addr, l2->own_addr, ETH_ALEN); in l2_packet_get_own_addr() 72 int l2_packet_send(struct l2_packet_data *l2, const u8 *dst_addr, u16 proto, in l2_packet_send() argument 78 if (l2 == NULL) in l2_packet_send() 81 if (l2->l2_hdr) { in l2_packet_send() 82 ret = pcap_sendpacket(l2->pcap, buf, len); in l2_packet_send() 90 os_memcpy(eth->h_source, l2->own_addr, ETH_ALEN); in l2_packet_send() 93 ret = pcap_sendpacket(l2->pcap, (u8 *) eth, mlen); in l2_packet_send() 105 struct l2_packet_data *l2 = (struct l2_packet_data *) user; in l2_packet_receive_cb() local 112 if (l2->l2_hdr) { in l2_packet_receive_cb() [all …]
|
D | l2_packet_pcap.c | 43 int l2_packet_get_own_addr(struct l2_packet_data *l2, u8 *addr) in l2_packet_get_own_addr() argument 45 os_memcpy(addr, l2->own_addr, ETH_ALEN); in l2_packet_get_own_addr() 51 static int l2_packet_init_libdnet(struct l2_packet_data *l2) in l2_packet_init_libdnet() argument 55 l2->eth = eth_open(l2->ifname); in l2_packet_init_libdnet() 56 if (!l2->eth) { in l2_packet_init_libdnet() 59 l2->ifname, strerror(errno)); in l2_packet_init_libdnet() 63 if (eth_get(l2->eth, &own_addr) < 0) { in l2_packet_init_libdnet() 66 l2->ifname, strerror(errno)); in l2_packet_init_libdnet() 67 eth_close(l2->eth); in l2_packet_init_libdnet() 68 l2->eth = NULL; in l2_packet_init_libdnet() [all …]
|
D | l2_packet_linux.c | 110 int l2_packet_get_own_addr(struct l2_packet_data *l2, u8 *addr) in l2_packet_get_own_addr() argument 112 os_memcpy(addr, l2->own_addr, ETH_ALEN); in l2_packet_get_own_addr() 117 int l2_packet_send(struct l2_packet_data *l2, const u8 *dst_addr, u16 proto, in l2_packet_send() argument 124 if (l2 == NULL) in l2_packet_send() 128 l2->l2_hdr = 0; in l2_packet_send() 130 if (l2->l2_hdr) { in l2_packet_send() 131 ret = send(l2->fd, buf, len, 0); in l2_packet_send() 139 ll.sll_ifindex = l2->ifindex; in l2_packet_send() 143 ret = sendto(l2->fd, buf, len, 0, (struct sockaddr *) &ll, in l2_packet_send() 156 struct l2_packet_data *l2 = eloop_ctx; in l2_packet_receive() local [all …]
|
D | l2_packet_ndis.c | 56 struct l2_packet_data *l2[2]; member 84 int l2_packet_get_own_addr(struct l2_packet_data *l2, u8 *addr) in l2_packet_get_own_addr() argument 86 os_memcpy(addr, l2->own_addr, ETH_ALEN); in l2_packet_get_own_addr() 91 int l2_packet_send(struct l2_packet_data *l2, const u8 *dst_addr, u16 proto, in l2_packet_send() argument 102 if (l2 == NULL) in l2_packet_send() 112 if (l2->l2_hdr) { in l2_packet_send() 122 os_memcpy(eth->h_source, l2->own_addr, ETH_ALEN); in l2_packet_send() 157 static void l2_packet_callback(struct l2_packet_data *l2); 160 static void l2_packet_rx_thread_try_read(struct l2_packet_data *l2) in l2_packet_rx_thread_try_read() argument 165 if (!ReadFile(driver_ndis_get_ndisuio_handle(), l2->rx_buf, in l2_packet_rx_thread_try_read() [all …]
|
D | l2_packet_privsep.c | 29 static int wpa_priv_cmd(struct l2_packet_data *l2, int cmd, in wpa_priv_cmd() argument 43 msg.msg_name = &l2->priv_addr; in wpa_priv_cmd() 44 msg.msg_namelen = sizeof(l2->priv_addr); in wpa_priv_cmd() 46 if (sendmsg(l2->fd, &msg, 0) < 0) { in wpa_priv_cmd() 55 int l2_packet_get_own_addr(struct l2_packet_data *l2, u8 *addr) in l2_packet_get_own_addr() argument 57 os_memcpy(addr, l2->own_addr, ETH_ALEN); in l2_packet_get_own_addr() 62 int l2_packet_send(struct l2_packet_data *l2, const u8 *dst_addr, u16 proto, in l2_packet_send() argument 81 msg.msg_name = &l2->priv_addr; in l2_packet_send() 82 msg.msg_namelen = sizeof(l2->priv_addr); in l2_packet_send() 84 if (sendmsg(l2->fd, &msg, 0) < 0) { in l2_packet_send() [all …]
|
D | l2_packet_rtos.c | 27 int l2_packet_get_own_addr(const struct l2_packet_data *l2, u8 *addr) in l2_packet_get_own_addr() argument 30 if ((l2 == NULL) || (addr == NULL)) in l2_packet_get_own_addr() 32 if (memcpy_s(addr, sizeof(l2->own_addr), l2->own_addr, sizeof(l2->own_addr)) != EOK){ in l2_packet_get_own_addr() 38 int l2_packet_send(const struct l2_packet_data *l2, const u8 *dst_addr, u16 proto, in l2_packet_send() argument 44 if (l2 == NULL) in l2_packet_send() 47 ret = WifiEapolPacketSend(l2->ifname, l2->own_addr, dst_addr, (unsigned char *)buf, len); in l2_packet_send() 55 struct l2_packet_data *l2 = eloop_ctx; in l2_packet_receive() local 68 if (SUCC == WifiEapolPacketReceive(l2->ifname, &st_rx_eapol)) { in l2_packet_receive() 71 if (l2->rx_callback != NULL) { in l2_packet_receive() 73 l2->rx_callback(l2->rx_callback_ctx, puc_src, st_rx_eapol.buf, st_rx_eapol.len); in l2_packet_receive() [all …]
|
D | l2_packet_freebsd.c | 48 int l2_packet_get_own_addr(struct l2_packet_data *l2, u8 *addr) in l2_packet_get_own_addr() argument 50 os_memcpy(addr, l2->own_addr, ETH_ALEN); in l2_packet_get_own_addr() 55 int l2_packet_send(struct l2_packet_data *l2, const u8 *dst_addr, u16 proto, in l2_packet_send() argument 58 if (!l2->l2_hdr) { in l2_packet_send() 64 os_memcpy(eth->h_source, l2->own_addr, ETH_ALEN); in l2_packet_send() 67 ret = pcap_inject(l2->pcap, (u8 *) eth, len + sizeof(*eth)); in l2_packet_send() 71 return pcap_inject(l2->pcap, buf, len); in l2_packet_send() 77 struct l2_packet_data *l2 = eloop_ctx; in l2_packet_receive() local 91 if (l2->l2_hdr) { in l2_packet_receive() 98 l2->rx_callback(l2->rx_callback_ctx, ethhdr->h_source, buf, len); in l2_packet_receive() [all …]
|
D | l2_packet_none.c | 30 int l2_packet_get_own_addr(struct l2_packet_data *l2, u8 *addr) in l2_packet_get_own_addr() argument 32 os_memcpy(addr, l2->own_addr, ETH_ALEN); in l2_packet_get_own_addr() 37 int l2_packet_send(struct l2_packet_data *l2, const u8 *dst_addr, u16 proto, in l2_packet_send() argument 40 if (l2 == NULL) in l2_packet_send() 54 struct l2_packet_data *l2 = eloop_ctx; in l2_packet_receive() local 62 l2->rx_callback(l2->rx_callback_ctx, NULL /* TODO: src addr */, in l2_packet_receive() 73 struct l2_packet_data *l2; in l2_packet_init() local 75 l2 = os_zalloc(sizeof(struct l2_packet_data)); in l2_packet_init() 76 if (l2 == NULL) in l2_packet_init() 78 os_strlcpy(l2->ifname, ifname, sizeof(l2->ifname)); in l2_packet_init() [all …]
|
/third_party/openssl/crypto/rc2/ |
D | rc2_local.h | 18 #define c2ln(c,l1,l2,n) { \ argument 20 l1=l2=0; \ 22 case 8: l2 =((unsigned long)(*(--(c))))<<24L; \ 24 case 7: l2|=((unsigned long)(*(--(c))))<<16L; \ 26 case 6: l2|=((unsigned long)(*(--(c))))<< 8L; \ 28 case 5: l2|=((unsigned long)(*(--(c)))); \ 48 #define l2cn(l1,l2,c,n) { \ argument 51 case 8: *(--(c))=(unsigned char)(((l2)>>24L)&0xff); \ 53 case 7: *(--(c))=(unsigned char)(((l2)>>16L)&0xff); \ 55 case 6: *(--(c))=(unsigned char)(((l2)>> 8L)&0xff); \ [all …]
|
/third_party/python/Lib/lib2to3/tests/ |
D | test_pytree.py | 46 l2 = pytree.Leaf(100, "foo", context=(" ", (10, 1))) 47 self.assertEqual(str(l2), " foo") 58 l2 = pytree.Leaf(100, "foo", context=(" ", (1, 0))) 59 self.assertEqual(l1, l2) 75 l2 = pytree.Leaf(200, "bar") 76 n1 = pytree.Node(1000, [l1, l2]) 78 self.assertEqual(n1.children, [l1, l2]) 82 l2 = pytree.Leaf(100, "bar", context=(" ", (1, 0))) 83 n1 = pytree.Node(1000, [l1, l2]) 85 "Node(1000, [%s, %s])" % (repr(l1), repr(l2))) [all …]
|
/third_party/boost/libs/math/test/ |
D | test_real_concept.cpp | 26 long double l1(2.5), l2(0.125), l3(45.5); in BOOST_AUTO_TEST_CASE() local 33 t2 += l2; in BOOST_AUTO_TEST_CASE() 36 t += l2; in BOOST_AUTO_TEST_CASE() 79 t2 -= l2; in BOOST_AUTO_TEST_CASE() 82 t -= l2; in BOOST_AUTO_TEST_CASE() 125 t2 *= l2; in BOOST_AUTO_TEST_CASE() 128 t *= l2; in BOOST_AUTO_TEST_CASE() 170 t2 /= l2; in BOOST_AUTO_TEST_CASE() 173 t /= l2; in BOOST_AUTO_TEST_CASE() 216 t2 = l1 + l2; in BOOST_AUTO_TEST_CASE() [all …]
|
/third_party/openssl/crypto/rc5/ |
D | rc5_local.h | 20 #define c2ln(c,l1,l2,n) { \ argument 22 l1=l2=0; \ 24 case 8: l2 =((unsigned long)(*(--(c))))<<24L; \ 26 case 7: l2|=((unsigned long)(*(--(c))))<<16L; \ 28 case 6: l2|=((unsigned long)(*(--(c))))<< 8L; \ 30 case 5: l2|=((unsigned long)(*(--(c)))); \ 50 #define l2cn(l1,l2,c,n) { \ argument 53 case 8: *(--(c))=(unsigned char)(((l2)>>24L)&0xff); \ 55 case 7: *(--(c))=(unsigned char)(((l2)>>16L)&0xff); \ 57 case 6: *(--(c))=(unsigned char)(((l2)>> 8L)&0xff); \ [all …]
|
/third_party/boost/libs/move/example/ |
D | doc_move_inserter.cpp | 26 void test_move_inserter(list_t &l2, MoveInsertIterator mit) in test_move_inserter() argument 31 l2.clear(); in test_move_inserter() 37 assert(l2.size() == l.size()); in test_move_inserter() 39 assert(!l2.begin()->moved()); in test_move_inserter() 44 list_t l2; in main() local 45 test_move_inserter(l2, boost::back_move_inserter(l2)); in main() 46 test_move_inserter(l2, boost::front_move_inserter(l2)); in main() 47 test_move_inserter(l2, boost::move_inserter(l2, l2.end())); in main()
|
/third_party/boost/libs/mpl/test/ |
D | list_c.cpp | 26 typedef list_c<bool,false>::type l2; in MPL_TEST_CASE() typedef 29 MPL_ASSERT(( is_same< l2::value_type, bool > )); in MPL_TEST_CASE() 32 MPL_ASSERT_RELATION( front<l2>::type::value, ==, false ); in MPL_TEST_CASE() 39 typedef list_c<int,0,1>::type l2; in MPL_TEST_CASE() typedef 43 MPL_ASSERT(( is_same< l2::value_type, int > )); in MPL_TEST_CASE() 47 MPL_ASSERT_RELATION( size<l2>::value, ==, 2 ); in MPL_TEST_CASE() 50 MPL_ASSERT_RELATION( front<l2>::type::value, ==, 0 ); in MPL_TEST_CASE() 57 typedef list_c<unsigned,1,2>::type l2; in MPL_TEST_CASE() typedef 60 MPL_ASSERT(( is_same< l2::value_type, unsigned > )); in MPL_TEST_CASE() 63 MPL_ASSERT_RELATION( size<l2>::value, ==, 2 ); in MPL_TEST_CASE() [all …]
|
/third_party/wayland_standard/tests/ |
D | newsignal-test.c | 57 struct wl_listener l2 = {.notify = (wl_notify_func_t) 0x2}; in TEST() local 65 wl_priv_signal_add(&signal, &l2); in TEST() 71 assert(wl_priv_signal_get(&signal, (wl_notify_func_t) 0x2) == &l2); in TEST() 77 assert(wl_priv_signal_get(&signal, (wl_notify_func_t) 0x2) == &l2); in TEST() 105 struct wl_listener l2 = {.notify = signal_notify}; in TEST() local 110 wl_priv_signal_add(&signal, &l2); in TEST() 122 struct wl_listener l1, l2, l3; member 138 wl_list_init(&signal.l2.link); \ 152 signal.l2.notify = notify_remove; in TEST() 164 wl_priv_signal_add(&signal.signal, &signal.l2); in TEST() [all …]
|
/third_party/openssl/crypto/cast/ |
D | cast_local.h | 22 #define c2ln(c,l1,l2,n) { \ argument 24 l1=l2=0; \ 26 case 8: l2 =((unsigned long)(*(--(c))))<<24L; \ 27 case 7: l2|=((unsigned long)(*(--(c))))<<16L; \ 28 case 6: l2|=((unsigned long)(*(--(c))))<< 8L; \ 29 case 5: l2|=((unsigned long)(*(--(c)))); \ 45 #define l2cn(l1,l2,c,n) { \ argument 48 case 8: *(--(c))=(unsigned char)(((l2)>>24L)&0xff); \ 49 case 7: *(--(c))=(unsigned char)(((l2)>>16L)&0xff); \ 50 case 6: *(--(c))=(unsigned char)(((l2)>> 8L)&0xff); \ [all …]
|
/third_party/openssl/crypto/bf/ |
D | bf_local.h | 15 # define n2ln(c,l1,l2,n) { \ argument 17 l1=l2=0; \ 19 case 8: l2 =((unsigned long)(*(--(c)))) ; \ 21 case 7: l2|=((unsigned long)(*(--(c))))<< 8; \ 23 case 6: l2|=((unsigned long)(*(--(c))))<<16; \ 25 case 5: l2|=((unsigned long)(*(--(c))))<<24; \ 38 # define l2nn(l1,l2,c,n) { \ argument 41 case 8: *(--(c))=(unsigned char)(((l2) )&0xff); \ 43 case 7: *(--(c))=(unsigned char)(((l2)>> 8)&0xff); \ 45 case 6: *(--(c))=(unsigned char)(((l2)>>16)&0xff); \ [all …]
|