Home
last modified time | relevance | path

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

12345678910>>...40

/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.c108 int l2_packet_get_own_addr(struct l2_packet_data *l2, u8 *addr) in l2_packet_get_own_addr() argument
110 os_memcpy(addr, l2->own_addr, ETH_ALEN); in l2_packet_get_own_addr()
115 int l2_packet_send(struct l2_packet_data *l2, const u8 *dst_addr, u16 proto, in l2_packet_send() argument
122 if (l2 == NULL) in l2_packet_send()
124 if (l2->l2_hdr) { in l2_packet_send()
125 ret = send(l2->fd, buf, len, 0); in l2_packet_send()
133 ll.sll_ifindex = l2->ifindex; in l2_packet_send()
137 ret = sendto(l2->fd, buf, len, 0, (struct sockaddr *) &ll, in l2_packet_send()
150 struct l2_packet_data *l2 = eloop_ctx; in l2_packet_receive() local
170 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.cpp26 std::list<int> l2; in main() local
27 l1.splice(l1.end(), l2); in main()
30 assert(l2.size() == 0); in main()
31 assert(distance(l2.begin(), l2.end()) == 0); in main()
35 std::list<int> l2(a2, a2+1); in main() local
36 l1.splice(l1.end(), l2); in main()
39 assert(l2.size() == 0); in main()
40 assert(distance(l2.begin(), l2.end()) == 0); in main()
46 std::list<int> l2(a2, a2+2); in main() local
47 l1.splice(l1.end(), l2); in main()
[all …]
Dsplice_pos_list_iter.pass.cpp26 std::list<int> l2(a2, a2+1); in main() local
27 l1.splice(l1.end(), l2, l2.begin()); in main()
30 assert(l2.size() == 0); in main()
31 assert(distance(l2.begin(), l2.end()) == 0); in main()
37 std::list<int> l2(a2, a2+2); in main() local
38 l1.splice(l1.end(), l2, l2.begin()); in main()
41 assert(l2.size() == 1); in main()
42 assert(distance(l2.begin(), l2.end()) == 1); in main()
45 i = l2.begin(); in main()
50 std::list<int> l2(a2, a2+2); in main() local
[all …]
Dsplice_pos_list_iter_iter.pass.cpp62 std::list<int> l2(a2, a2+3); in main() local
63 l1.splice(l1.begin(), l2, next(l2.begin()), l2.end()); in main()
76 assert(l2.size() == 1); in main()
77 i = l2.begin(); in main()
82 std::list<int> l2(a2, a2+3); in main() local
83 l1.splice(next(l1.begin()), l2, next(l2.begin()), l2.end()); in main()
96 assert(l2.size() == 1); in main()
97 i = l2.begin(); in main()
102 std::list<int> l2(a2, a2+3); in main() local
103 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.cpp133 L0 l2; in main() local
134 assert(std::try_lock(l0, l1, l2) == -1); in main()
137 assert(l2.locked()); in main()
142 L1 l2; in main() local
143 assert(std::try_lock(l0, l1, l2) == 0); in main()
146 assert(!l2.locked()); in main()
152 L2 l2; in main() local
155 (void)std::try_lock(l0, l1, l2); in main()
162 assert(!l2.locked()); in main()
168 L2 l2; in main() local
[all …]
Dlock.pass.cpp195 L0 l2; in main() local
196 std::lock(l0, l1, l2); in main()
199 assert(l2.locked()); in main()
205 L2 l2; in main() local
208 std::lock(l0, l1, l2); in main()
215 assert(!l2.locked()); in main()
222 L1 l2; in main() local
223 std::lock(l0, l1, l2); in main()
226 assert(l2.locked()); in main()
231 L0 l2; in main() local
[all …]
/external/python/cpython3/Lib/lib2to3/tests/
Dtest_pytree.py46 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 …]
/external/python/cpython2/Lib/lib2to3/tests/
Dtest_pytree.py68 l2 = pytree.Leaf(100, "foo", context=(" ", (10, 1)))
69 self.assertEqual(str(l2), " foo")
80 l2 = pytree.Leaf(100, "foo", context=(" ", (1, 0)))
81 self.assertEqual(l1, l2)
97 l2 = pytree.Leaf(200, "bar")
98 n1 = pytree.Node(1000, [l1, l2])
100 self.assertEqual(n1.children, [l1, l2])
104 l2 = pytree.Leaf(100, "bar", context=(" ", (1, 0)))
105 n1 = pytree.Node(1000, [l1, l2])
107 "Node(1000, [%s, %s])" % (repr(l1), repr(l2)))
[all …]
/external/javaparser/javaparser-core/generated-sources/javacc/com/github/javaparser/
DGeneratedJavaParserTokenManager.java2234 long l2 = 1L << (curChar & 077); in jjMoveNfa_0() local
2241 if (!jjCanMove_3(hiByte, i1, i2, l1, l2)) in jjMoveNfa_0()
2248 if (jjCanMove_0(hiByte, i1, i2, l1, l2)) in jjMoveNfa_0()
2253 if (jjCanMove_2(hiByte, i1, i2, l1, l2)) in jjMoveNfa_0()
2261 if (jjCanMove_1(hiByte, i1, i2, l1, l2)) in jjMoveNfa_0()
2265 if (jjCanMove_1(hiByte, i1, i2, l1, l2)) in jjMoveNfa_0()
2269 if (!jjCanMove_2(hiByte, i1, i2, l1, l2)) in jjMoveNfa_0()
2276 if (!jjCanMove_1(hiByte, i1, i2, l1, l2)) in jjMoveNfa_0()
2283 if (jjCanMove_1(hiByte, i1, i2, l1, l2) && kind > 6) in jjMoveNfa_0()
2286 default : if (i1 == 0 || l1 == 0 || i2 == 0 || l2 == 0) break; else break; in jjMoveNfa_0()
[all …]
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_src/generated/com/github/javaparser/
DASTParserTokenManager.java1903 long l2 = 1L << (curChar & 077); in jjMoveNfa_0() local
1909 if (!jjCanMove_1(hiByte, i1, i2, l1, l2)) in jjMoveNfa_0()
1916 if (jjCanMove_0(hiByte, i1, i2, l1, l2)) in jjMoveNfa_0()
1920 if (jjCanMove_0(hiByte, i1, i2, l1, l2)) in jjMoveNfa_0()
1924 if (!jjCanMove_2(hiByte, i1, i2, l1, l2)) in jjMoveNfa_0()
1931 if (!jjCanMove_0(hiByte, i1, i2, l1, l2)) in jjMoveNfa_0()
1938 if (jjCanMove_0(hiByte, i1, i2, l1, l2) && kind > 7) in jjMoveNfa_0()
2026 private static final boolean jjCanMove_0(int hiByte, int i1, int i2, long l1, long l2) in jjCanMove_0() argument
2031 return ((jjbitVec2[i2] & l2) != 0L); in jjCanMove_0()
2038 private static final boolean jjCanMove_1(int hiByte, int i1, int i2, long l1, long l2) in jjCanMove_1() argument
[all …]
/external/libcxx/test/std/containers/sequences/vector/vector.cons/
Dassign_move.pass.cpp35 std::vector<MoveOnly, test_allocator<MoveOnly> > l2(test_allocator<MoveOnly>(5)); in main() local
36 l2 = std::move(l); in main()
37 assert(l2 == lo); in main()
39 assert(l2.get_allocator() == lo.get_allocator()); in main()
40 assert(is_contiguous_container_asan_correct(l2)); in main()
54 std::vector<MoveOnly, test_allocator<MoveOnly> > l2(test_allocator<MoveOnly>(6)); in main() local
55 l2 = std::move(l); in main()
56 assert(l2 == lo); in main()
58 assert(l2.get_allocator() == test_allocator<MoveOnly>(6)); in main()
59 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 …]
/external/libcxx/test/std/containers/sequences/vector.bool/
Dassign_move.pass.cpp31 std::vector<bool, test_allocator<bool> > l2(test_allocator<bool>(5)); in main()
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<bool, test_allocator<bool> > l2(test_allocator<bool>(6)); in main()
46 l2 = std::move(l); in main()
47 assert(l2 == lo); in main()
49 assert(l2.get_allocator() == test_allocator<bool>(6)); in main()
59 std::vector<bool, other_allocator<bool> > l2(other_allocator<bool>(6)); in main()
60 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 …]
/external/libcxx/test/std/containers/sequences/list/list.cons/
Dcopy.pass.cpp26 std::list<int> l2 = l; in main() local
27 assert(l2 == l); in main()
31 std::list<int, test_allocator<int> > l2 = l; in main() local
32 assert(l2 == l); in main()
33 assert(l2.get_allocator() == l.get_allocator()); in main()
38 std::list<int, other_allocator<int> > l2 = l; in main() local
39 assert(l2 == l); in main()
40 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.cpp32 std::list<MoveOnly, test_allocator<MoveOnly> > l2(test_allocator<MoveOnly>(5)); in main() local
33 l2 = std::move(l); in main()
34 assert(l2 == lo); in main()
36 assert(l2.get_allocator() == lo.get_allocator()); in main()
46 std::list<MoveOnly, test_allocator<MoveOnly> > l2(test_allocator<MoveOnly>(6)); in main() local
47 l2 = std::move(l); in main()
48 assert(l2 == lo); in main()
50 assert(l2.get_allocator() == test_allocator<MoveOnly>(6)); in main()
60 std::list<MoveOnly, other_allocator<MoveOnly> > l2(other_allocator<MoveOnly>(6)); in main() local
61 l2 = std::move(l); in main()
[all …]
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_new_src/javaparser-generated-sources/com/github/javaparser/
DASTParserTokenManager.java1979 long l2 = 1L << (curChar & 077); in jjMoveNfa_0() local
1985 if (!jjCanMove_1(hiByte, i1, i2, l1, l2)) in jjMoveNfa_0()
1992 if (jjCanMove_0(hiByte, i1, i2, l1, l2)) in jjMoveNfa_0()
1996 if (jjCanMove_0(hiByte, i1, i2, l1, l2)) in jjMoveNfa_0()
2000 if (!jjCanMove_2(hiByte, i1, i2, l1, l2)) in jjMoveNfa_0()
2007 if (!jjCanMove_0(hiByte, i1, i2, l1, l2)) in jjMoveNfa_0()
2014 if (jjCanMove_0(hiByte, i1, i2, l1, l2) && kind > 32) in jjMoveNfa_0()
2017 default : if (i1 == 0 || l1 == 0 || i2 == 0 || l2 == 0) break; else break; in jjMoveNfa_0()
2098 private static final boolean jjCanMove_0(int hiByte, int i1, int i2, long l1, long l2) in jjCanMove_0() argument
2103 return ((jjbitVec2[i2] & l2) != 0L); in jjCanMove_0()
[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()
92 assertSame(l2, unwindProxyListener(listeners[0], 1)); in testAddPropertyChangeListener_PropertyChangeListener_Normal()
100 assertSame(l2, unwindProxyListener(listeners[0], 2)); in testAddPropertyChangeListener_PropertyChangeListener_Normal()
143 PropertyChangeListener l2 = new MockPropertyChangeListener(); in testAddPropertyChangeListener_PropertyChangeListener_String_Normal() local
145 l2); in testAddPropertyChangeListener_PropertyChangeListener_String_Normal()
159 assertSame(l2, unwindProxyListener(listeners[0], 2)); in testAddPropertyChangeListener_PropertyChangeListener_String_Normal()
167 assertSame(l2, unwindProxyListener(listeners[0], 1)); in testAddPropertyChangeListener_PropertyChangeListener_String_Normal()
197 PropertyChangeListener l2 = new MockPropertyChangeListener(); in testAddPropertyChangeListener_PropertyChangeListener_String_NullProperty() local
199 l2); in testAddPropertyChangeListener_PropertyChangeListener_String_NullProperty()
[all …]

12345678910>>...40