/external/wpa_supplicant_8/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() 57 printf("Failed to open interface '%s'.\n", l2->ifname); in l2_packet_init_libdnet() 62 if (eth_get(l2->eth, &own_addr) < 0) { in l2_packet_init_libdnet() 64 l2->ifname); in l2_packet_init_libdnet() 66 eth_close(l2->eth); in l2_packet_init_libdnet() 67 l2->eth = NULL; in l2_packet_init_libdnet() [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_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_linux.c | 32 int l2_packet_get_own_addr(struct l2_packet_data *l2, u8 *addr) in l2_packet_get_own_addr() argument 34 os_memcpy(addr, l2->own_addr, ETH_ALEN); in l2_packet_get_own_addr() 39 int l2_packet_send(struct l2_packet_data *l2, const u8 *dst_addr, u16 proto, in l2_packet_send() argument 43 if (l2 == NULL) in l2_packet_send() 45 if (l2->l2_hdr) { in l2_packet_send() 46 ret = send(l2->fd, buf, len, 0); in l2_packet_send() 54 ll.sll_ifindex = l2->ifindex; in l2_packet_send() 58 ret = sendto(l2->fd, buf, len, 0, (struct sockaddr *) &ll, in l2_packet_send() 71 struct l2_packet_data *l2 = eloop_ctx; in l2_packet_receive() local 87 l2->rx_callback(l2->rx_callback_ctx, ll.sll_addr, buf, res); 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 …]
|
/external/libcxx/test/containers/sequences/list/list.ops/ |
D | splice_pos_list.pass.cpp | 29 std::list<int> l2; in main() local 30 l1.splice(l1.end(), l2); in main() 33 assert(l2.size() == 0); in main() 34 assert(distance(l2.begin(), l2.end()) == 0); in main() 38 std::list<int> l2(a2, a2+1); in main() local 39 l1.splice(l1.end(), l2); in main() 42 assert(l2.size() == 0); in main() 43 assert(distance(l2.begin(), l2.end()) == 0); in main() 49 std::list<int> l2(a2, a2+2); in main() local 50 l1.splice(l1.end(), l2); in main() [all …]
|
D | splice_pos_list_iter.pass.cpp | 29 std::list<int> l2(a2, a2+1); in main() local 30 l1.splice(l1.end(), l2, l2.begin()); in main() 33 assert(l2.size() == 0); in main() 34 assert(distance(l2.begin(), l2.end()) == 0); in main() 40 std::list<int> l2(a2, a2+2); in main() local 41 l1.splice(l1.end(), l2, l2.begin()); in main() 44 assert(l2.size() == 1); in main() 45 assert(distance(l2.begin(), l2.end()) == 1); in main() 48 i = l2.begin(); in main() 53 std::list<int> l2(a2, a2+2); in main() local [all …]
|
D | splice_pos_list_iter_iter.pass.cpp | 65 std::list<int> l2(a2, a2+3); in main() local 66 l1.splice(l1.begin(), l2, next(l2.begin()), l2.end()); in main() 79 assert(l2.size() == 1); in main() 80 i = l2.begin(); in main() 85 std::list<int> l2(a2, a2+3); in main() local 86 l1.splice(next(l1.begin()), l2, next(l2.begin()), l2.end()); in main() 99 assert(l2.size() == 1); in main() 100 i = l2.begin(); in main() 105 std::list<int> l2(a2, a2+3); in main() local 106 l1.splice(l1.end(), l2, next(l2.begin()), l2.end()); in main() [all …]
|
/external/libcxx/test/thread/thread.mutex/thread.lock.algorithm/ |
D | try_lock.pass.cpp | 127 L0 l2; in main() local 128 assert(std::try_lock(l0, l1, l2) == -1); in main() 131 assert(l2.locked()); in main() 136 L1 l2; in main() local 137 assert(std::try_lock(l0, l1, l2) == 0); in main() 140 assert(!l2.locked()); in main() 145 L2 l2; in main() local 148 std::try_lock(l0, l1, l2); in main() 155 assert(!l2.locked()); in main() 161 L2 l2; in main() local [all …]
|
D | lock.pass.cpp | 184 L0 l2; in main() local 185 std::lock(l0, l1, l2); in main() 188 assert(l2.locked()); in main() 193 L2 l2; in main() local 196 std::lock(l0, l1, l2); in main() 203 assert(!l2.locked()); in main() 209 L1 l2; in main() local 210 std::lock(l0, l1, l2); in main() 213 assert(l2.locked()); in main() 218 L0 l2; in main() local [all …]
|
/external/openssl/crypto/rc2/ |
D | rc2_locl.h | 67 #define c2ln(c,l1,l2,n) { \ argument 69 l1=l2=0; \ 71 case 8: l2 =((unsigned long)(*(--(c))))<<24L; \ 72 case 7: l2|=((unsigned long)(*(--(c))))<<16L; \ 73 case 6: l2|=((unsigned long)(*(--(c))))<< 8L; \ 74 case 5: l2|=((unsigned long)(*(--(c)))); \ 90 #define l2cn(l1,l2,c,n) { \ argument 93 case 8: *(--(c))=(unsigned char)(((l2)>>24L)&0xff); \ 94 case 7: *(--(c))=(unsigned char)(((l2)>>16L)&0xff); \ 95 case 6: *(--(c))=(unsigned char)(((l2)>> 8L)&0xff); \ [all …]
|
/external/chromium_org/third_party/openssl/openssl/crypto/rc2/ |
D | rc2_locl.h | 67 #define c2ln(c,l1,l2,n) { \ argument 69 l1=l2=0; \ 71 case 8: l2 =((unsigned long)(*(--(c))))<<24L; \ 72 case 7: l2|=((unsigned long)(*(--(c))))<<16L; \ 73 case 6: l2|=((unsigned long)(*(--(c))))<< 8L; \ 74 case 5: l2|=((unsigned long)(*(--(c)))); \ 90 #define l2cn(l1,l2,c,n) { \ argument 93 case 8: *(--(c))=(unsigned char)(((l2)>>24L)&0xff); \ 94 case 7: *(--(c))=(unsigned char)(((l2)>>16L)&0xff); \ 95 case 6: *(--(c))=(unsigned char)(((l2)>> 8L)&0xff); \ [all …]
|
/external/chromium_org/third_party/openssl/openssl/crypto/bf/ |
D | bf_locl.h | 71 #define c2ln(c,l1,l2,n) { \ argument 73 l1=l2=0; \ 75 case 8: l2 =((unsigned long)(*(--(c))))<<24L; \ 76 case 7: l2|=((unsigned long)(*(--(c))))<<16L; \ 77 case 6: l2|=((unsigned long)(*(--(c))))<< 8L; \ 78 case 5: l2|=((unsigned long)(*(--(c)))); \ 94 #define l2cn(l1,l2,c,n) { \ argument 97 case 8: *(--(c))=(unsigned char)(((l2)>>24L)&0xff); \ 98 case 7: *(--(c))=(unsigned char)(((l2)>>16L)&0xff); \ 99 case 6: *(--(c))=(unsigned char)(((l2)>> 8L)&0xff); \ [all …]
|
/external/openssl/crypto/bf/ |
D | bf_locl.h | 71 #define c2ln(c,l1,l2,n) { \ argument 73 l1=l2=0; \ 75 case 8: l2 =((unsigned long)(*(--(c))))<<24L; \ 76 case 7: l2|=((unsigned long)(*(--(c))))<<16L; \ 77 case 6: l2|=((unsigned long)(*(--(c))))<< 8L; \ 78 case 5: l2|=((unsigned long)(*(--(c)))); \ 94 #define l2cn(l1,l2,c,n) { \ argument 97 case 8: *(--(c))=(unsigned char)(((l2)>>24L)&0xff); \ 98 case 7: *(--(c))=(unsigned char)(((l2)>>16L)&0xff); \ 99 case 6: *(--(c))=(unsigned char)(((l2)>> 8L)&0xff); \ [all …]
|
/external/libcxx/test/containers/sequences/list/list.cons/ |
D | copy.pass.cpp | 24 std::list<int> l2 = l; in main() local 25 assert(l2 == l); in main() 29 std::list<int, test_allocator<int> > l2 = l; in main() local 30 assert(l2 == l); in main() 31 assert(l2.get_allocator() == l.get_allocator()); in main() 36 std::list<int, other_allocator<int> > l2 = l; in main() local 37 assert(l2 == l); in main() 38 assert(l2.get_allocator() == other_allocator<int>(-2)); in main() 44 std::list<int, min_allocator<int>> l2 = l; in main() local 45 assert(l2 == l); in main() [all …]
|
D | assign_copy.pass.cpp | 23 std::list<int, test_allocator<int> > l2(l, test_allocator<int>(3)); in main() 24 l2 = l; in main() 25 assert(l2 == l); in main() 26 assert(l2.get_allocator() == test_allocator<int>(3)); in main() 30 std::list<int, other_allocator<int> > l2(l, other_allocator<int>(3)); in main() 31 l2 = l; in main() 32 assert(l2 == l); in main() 33 assert(l2.get_allocator() == other_allocator<int>(5)); in main() 38 std::list<int, min_allocator<int> > l2(l, min_allocator<int>()); in main() 39 l2 = l; in main() [all …]
|
D | assign_move.pass.cpp | 31 std::list<MoveOnly, test_allocator<MoveOnly> > l2(test_allocator<MoveOnly>(5)); in main() local 32 l2 = std::move(l); in main() 33 assert(l2 == lo); in main() 35 assert(l2.get_allocator() == lo.get_allocator()); in main() 45 std::list<MoveOnly, test_allocator<MoveOnly> > l2(test_allocator<MoveOnly>(6)); in main() local 46 l2 = std::move(l); in main() 47 assert(l2 == lo); in main() 49 assert(l2.get_allocator() == test_allocator<MoveOnly>(6)); in main() 59 std::list<MoveOnly, other_allocator<MoveOnly> > l2(other_allocator<MoveOnly>(6)); in main() local 60 l2 = std::move(l); in main() [all …]
|
/external/libcxx/test/containers/sequences/vector/vector.cons/ |
D | assign_copy.pass.cpp | 23 std::vector<int, test_allocator<int> > l2(l, test_allocator<int>(3)); in main() 24 l2 = l; in main() 25 assert(l2 == l); in main() 26 assert(l2.get_allocator() == test_allocator<int>(3)); in main() 30 std::vector<int, other_allocator<int> > l2(l, other_allocator<int>(3)); in main() 31 l2 = l; in main() 32 assert(l2 == l); in main() 33 assert(l2.get_allocator() == other_allocator<int>(5)); in main() 38 std::vector<int, min_allocator<int> > l2(l, min_allocator<int>()); in main() 39 l2 = l; in main() [all …]
|
D | assign_move.pass.cpp | 31 std::vector<MoveOnly, test_allocator<MoveOnly> > l2(test_allocator<MoveOnly>(5)); in main() local 32 l2 = std::move(l); in main() 33 assert(l2 == lo); in main() 35 assert(l2.get_allocator() == lo.get_allocator()); in main() 45 std::vector<MoveOnly, test_allocator<MoveOnly> > l2(test_allocator<MoveOnly>(6)); in main() local 46 l2 = std::move(l); in main() 47 assert(l2 == lo); in main() 49 assert(l2.get_allocator() == test_allocator<MoveOnly>(6)); in main() 59 std::vector<MoveOnly, other_allocator<MoveOnly> > l2(other_allocator<MoveOnly>(6)); in main() local 60 l2 = std::move(l); in main() [all …]
|
/external/libcxx/test/containers/sequences/vector.bool/ |
D | assign_copy.pass.cpp | 23 std::vector<bool, test_allocator<bool> > l2(l, test_allocator<bool>(3)); in main() 24 l2 = l; in main() 25 assert(l2 == l); in main() 26 assert(l2.get_allocator() == test_allocator<bool>(3)); in main() 30 std::vector<bool, other_allocator<bool> > l2(l, other_allocator<bool>(3)); in main() 31 l2 = l; in main() 32 assert(l2 == l); in main() 33 assert(l2.get_allocator() == other_allocator<bool>(5)); in main() 38 std::vector<bool, min_allocator<bool> > l2(l, min_allocator<bool>()); in main() 39 l2 = l; in main() [all …]
|
D | assign_move.pass.cpp | 30 std::vector<bool, test_allocator<bool> > l2(test_allocator<bool>(5)); in main() 31 l2 = std::move(l); in main() 32 assert(l2 == lo); in main() 34 assert(l2.get_allocator() == lo.get_allocator()); in main() 44 std::vector<bool, test_allocator<bool> > l2(test_allocator<bool>(6)); in main() 45 l2 = std::move(l); in main() 46 assert(l2 == lo); in main() 48 assert(l2.get_allocator() == test_allocator<bool>(6)); in main() 58 std::vector<bool, other_allocator<bool> > l2(other_allocator<bool>(6)); in main() 59 l2 = std::move(l); in main() [all …]
|
/external/libcxx/test/containers/sequences/deque/deque.cons/ |
D | op_equal.pass.cpp | 37 std::deque<int, test_allocator<int> > l2(l, test_allocator<int>(3)); in main() 38 l2 = l; in main() 39 assert(l2 == l); in main() 40 assert(l2.get_allocator() == test_allocator<int>(3)); in main() 44 std::deque<int, other_allocator<int> > l2(l, other_allocator<int>(3)); in main() 45 l2 = l; in main() 46 assert(l2 == l); in main() 47 assert(l2.get_allocator() == other_allocator<int>(5)); in main() 57 std::deque<int, min_allocator<int> > l2(l, min_allocator<int>()); in main() 58 l2 = l; in main() [all …]
|
/external/apache-harmony/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/ |
D | PropertyChangeSupportTest.java | 76 PropertyChangeListener l2 = new MockPropertyChangeListener(); in testAddPropertyChangeListener_PropertyChangeListener_Normal() local 78 l2); in testAddPropertyChangeListener_PropertyChangeListener_Normal() 90 assertSame(l2, ((PropertyChangeListenerProxy) sup in testAddPropertyChangeListener_PropertyChangeListener_Normal() 102 l2, in testAddPropertyChangeListener_PropertyChangeListener_Normal() 147 PropertyChangeListener l2 = new MockPropertyChangeListener(); in testAddPropertyChangeListener_PropertyChangeListener_String_Normal() local 149 l2); in testAddPropertyChangeListener_PropertyChangeListener_String_Normal() 168 l2, in testAddPropertyChangeListener_PropertyChangeListener_String_Normal() 181 assertSame(l2, ((PropertyChangeListenerProxy) listeners[0]) in testAddPropertyChangeListener_PropertyChangeListener_String_Normal() 213 PropertyChangeListener l2 = new MockPropertyChangeListener(); in testAddPropertyChangeListener_PropertyChangeListener_String_NullProperty() local 215 l2); in testAddPropertyChangeListener_PropertyChangeListener_String_NullProperty() [all …]
|