Home
last modified time | relevance | path

Searched refs:l2 (Results 1 – 25 of 390) sorted by relevance

12345678910>>...16

/external/wpa_supplicant_8/src/l2_packet/
Dl2_packet_winpcap.c65 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 …]
Dl2_packet_pcap.c43 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 …]
Dl2_packet_linux.c88 int l2_packet_get_own_addr(struct l2_packet_data *l2, u8 *addr) in l2_packet_get_own_addr() argument
90 os_memcpy(addr, l2->own_addr, ETH_ALEN); in l2_packet_get_own_addr()
95 int l2_packet_send(struct l2_packet_data *l2, const u8 *dst_addr, u16 proto, in l2_packet_send() argument
99 if (l2 == NULL) in l2_packet_send()
101 if (l2->l2_hdr) { in l2_packet_send()
102 ret = send(l2->fd, buf, len, 0); in l2_packet_send()
110 ll.sll_ifindex = l2->ifindex; in l2_packet_send()
114 ret = sendto(l2->fd, buf, len, 0, (struct sockaddr *) &ll, in l2_packet_send()
127 struct l2_packet_data *l2 = eloop_ctx; in l2_packet_receive() local
147 if (l2->fd_br_rx >= 0) { in l2_packet_receive()
[all …]
Dl2_packet_ndis.c56 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 …]
Dl2_packet_privsep.c29 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 …]
Dl2_packet_freebsd.c48 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 …]
Dl2_packet_none.c30 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/std/containers/sequences/list/list.ops/
Dsplice_pos_list.pass.cpp29 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 …]
Dsplice_pos_list_iter.pass.cpp29 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 …]
Dsplice_pos_list_iter_iter.pass.cpp65 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/std/thread/thread.mutex/thread.lock.algorithm/
Dtry_lock.pass.cpp129 L0 l2; in main() local
130 assert(std::try_lock(l0, l1, l2) == -1); in main()
133 assert(l2.locked()); in main()
138 L1 l2; in main() local
139 assert(std::try_lock(l0, l1, l2) == 0); in main()
142 assert(!l2.locked()); in main()
147 L2 l2; in main() local
150 std::try_lock(l0, l1, l2); in main()
157 assert(!l2.locked()); in main()
163 L2 l2; in main() local
[all …]
Dlock.pass.cpp186 L0 l2; in main() local
187 std::lock(l0, l1, l2); in main()
190 assert(l2.locked()); in main()
195 L2 l2; in main() local
198 std::lock(l0, l1, l2); in main()
205 assert(!l2.locked()); in main()
211 L1 l2; in main() local
212 std::lock(l0, l1, l2); in main()
215 assert(l2.locked()); in main()
220 L0 l2; in main() local
[all …]
/external/libcxx/test/std/containers/sequences/vector/vector.cons/
Dassign_move.pass.cpp34 std::vector<MoveOnly, test_allocator<MoveOnly> > l2(test_allocator<MoveOnly>(5)); in main() local
35 l2 = std::move(l); in main()
36 assert(l2 == lo); in main()
38 assert(l2.get_allocator() == lo.get_allocator()); in main()
39 assert(is_contiguous_container_asan_correct(l2)); in main()
53 std::vector<MoveOnly, test_allocator<MoveOnly> > l2(test_allocator<MoveOnly>(6)); in main() local
54 l2 = std::move(l); in main()
55 assert(l2 == lo); in main()
57 assert(l2.get_allocator() == test_allocator<MoveOnly>(6)); in main()
58 assert(is_contiguous_container_asan_correct(l2)); in main()
[all …]
Dassign_copy.pass.cpp23 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 …]
Dmove_alloc.pass.cpp36 … std::vector<MoveOnly, test_allocator<MoveOnly> > l2(std::move(l), test_allocator<MoveOnly>(6)); in main() local
37 assert(l2 == lo); in main()
39 assert(l2.get_allocator() == test_allocator<MoveOnly>(6)); in main()
40 assert(is_contiguous_container_asan_correct(l2)); in main()
54 … std::vector<MoveOnly, test_allocator<MoveOnly> > l2(std::move(l), test_allocator<MoveOnly>(5)); in main() local
55 assert(l2 == lo); in main()
57 assert(l2.get_allocator() == test_allocator<MoveOnly>(5)); in main()
58 assert(is_contiguous_container_asan_correct(l2)); in main()
72 … std::vector<MoveOnly, other_allocator<MoveOnly> > l2(std::move(l), other_allocator<MoveOnly>(4)); in main() local
73 assert(l2 == lo); in main()
[all …]
/external/libcxx/test/std/containers/sequences/list/list.cons/
Dcopy.pass.cpp24 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 …]
Dassign_copy.pass.cpp23 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 …]
Dassign_move.pass.cpp31 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/std/containers/sequences/vector.bool/
Dassign_move.pass.cpp30 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 …]
Dassign_copy.pass.cpp23 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 …]
Dmove_alloc.pass.cpp30 std::vector<bool, test_allocator<bool> > l2(std::move(l), test_allocator<bool>(6)); in main()
31 assert(l2 == lo); in main()
33 assert(l2.get_allocator() == test_allocator<bool>(6)); in main()
43 std::vector<bool, test_allocator<bool> > l2(std::move(l), test_allocator<bool>(5)); in main()
44 assert(l2 == lo); in main()
46 assert(l2.get_allocator() == test_allocator<bool>(5)); in main()
56 std::vector<bool, other_allocator<bool> > l2(std::move(l), other_allocator<bool>(4)); in main()
57 assert(l2 == lo); in main()
59 assert(l2.get_allocator() == other_allocator<bool>(4)); in main()
70 std::vector<bool, min_allocator<bool> > l2(std::move(l), min_allocator<bool>()); in main()
[all …]
/external/apache-harmony/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/
DPropertyChangeSupportTest.java76 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 …]
/external/eigen/Eigen/src/Core/util/
DMemory.h785 inline void queryCacheSizes_intel_direct(int& l1, int& l2, int& l3)
788 l1 = l2 = l3 = 0;
808 case 2: l2 = cache_size; break;
817 inline void queryCacheSizes_intel_codes(int& l1, int& l2, int& l3)
821 l1 = l2 = l3 = 0;
840 case 0x1A: l2 = 96; break; // code and data L2 cache, 96 KB, 6 ways, 64 byte lines (IA-64)
845 … case 0x39: l2 = 128; break; // code and data L2 cache, 128 KB, 4 ways, 64 byte lines, sectored
846 … case 0x3A: l2 = 192; break; // code and data L2 cache, 192 KB, 6 ways, 64 byte lines, sectored
847 … case 0x3B: l2 = 128; break; // code and data L2 cache, 128 KB, 2 ways, 64 byte lines, sectored
848 … case 0x3C: l2 = 256; break; // code and data L2 cache, 256 KB, 4 ways, 64 byte lines, sectored
[all …]
/external/libcxx/test/std/containers/sequences/deque/deque.cons/
Dop_equal.pass.cpp37 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/boringssl/src/decrepit/
Dmacros.h62 #define n2ln(c, l1, l2, n) \ argument
65 l1 = l2 = 0; \
68 l2 = ((unsigned long)(*(--(c)))); \
70 l2 |= ((unsigned long)(*(--(c)))) << 8; \
72 l2 |= ((unsigned long)(*(--(c)))) << 16; \
74 l2 |= ((unsigned long)(*(--(c)))) << 24; \
87 #define l2nn(l1, l2, c, n) \ argument
92 *(--(c)) = (unsigned char)(((l2)) & 0xff); \
94 *(--(c)) = (unsigned char)(((l2) >> 8) & 0xff); \
96 *(--(c)) = (unsigned char)(((l2) >> 16) & 0xff); \
[all …]

12345678910>>...16