/external/wpa_supplicant/ |
l2_packet_none.c | 36 int l2_packet_get_own_addr(struct l2_packet_data *l2, u8 *addr) 38 os_memcpy(addr, l2->own_addr, ETH_ALEN); 43 int l2_packet_send(struct l2_packet_data *l2, const u8 *dst_addr, u16 proto, 46 if (l2 == NULL) 51 * whether l2->l2_hdr is set). 60 struct l2_packet_data *l2 = eloop_ctx; local 68 l2->rx_callback(l2->rx_callback_ctx, NULL /* TODO: src addr */, 79 struct l2_packet_data *l2; local 81 l2 = os_zalloc(sizeof(struct l2_packet_data)) [all...] |
l2_packet_winpcap.c | 71 int l2_packet_get_own_addr(struct l2_packet_data *l2, u8 *addr) 73 os_memcpy(addr, l2->own_addr, ETH_ALEN); 78 int l2_packet_send(struct l2_packet_data *l2, const u8 *dst_addr, u16 proto, 84 if (l2 == NULL) 87 if (l2->l2_hdr) { 88 ret = pcap_sendpacket(l2->pcap, buf, len); 96 os_memcpy(eth->h_source, l2->own_addr, ETH_ALEN); 99 ret = pcap_sendpacket(l2->pcap, (u8 *) eth, mlen); 111 struct l2_packet_data *l2 = (struct l2_packet_data *) user; local 118 if (l2->l2_hdr) 136 struct l2_packet_data *l2 = arg; local 159 struct l2_packet_data *l2 = eloop_data; local 210 struct l2_packet_data *l2; local 259 struct l2_packet_data *l2 = eloop_ctx; local [all...] |
l2_packet_pcap.c | 49 int l2_packet_get_own_addr(struct l2_packet_data *l2, u8 *addr) 51 os_memcpy(addr, l2->own_addr, ETH_ALEN); 57 static int l2_packet_init_libdnet(struct l2_packet_data *l2) 61 l2->eth = eth_open(l2->ifname); 62 if (!l2->eth) { 63 printf("Failed to open interface '%s'.\n", l2->ifname); 68 if (eth_get(l2->eth, &own_addr) < 0) { 70 l2->ifname); 72 eth_close(l2->eth) 125 struct l2_packet_data *l2 = eloop_ctx; local 155 struct l2_packet_data *l2 = (struct l2_packet_data *) user; local 182 struct l2_packet_data *l2 = eloop_ctx; local 290 struct l2_packet_data *l2; local [all...] |
l2_packet_freebsd.c | 47 int l2_packet_get_own_addr(struct l2_packet_data *l2, u8 *addr) 49 os_memcpy(addr, l2->own_addr, ETH_ALEN); 54 int l2_packet_send(struct l2_packet_data *l2, const u8 *dst_addr, u16 proto, 57 if (!l2->l2_hdr) { 63 os_memcpy(eth->h_source, l2->own_addr, ETH_ALEN); 66 ret = pcap_inject(l2->pcap, (u8 *) eth, len + sizeof(*eth)); 70 return pcap_inject(l2->pcap, buf, len); 76 struct l2_packet_data *l2 = eloop_ctx; local 90 if (l2->l2_hdr) { 97 l2->rx_callback(l2->rx_callback_ctx, ethhdr->h_source, buf, len) 205 struct l2_packet_data *l2; local [all...] |
l2_packet_ndis.c | 62 struct l2_packet_data *l2[2]; member in struct:l2_packet_ndisuio_global 90 int l2_packet_get_own_addr(struct l2_packet_data *l2, u8 *addr) 92 os_memcpy(addr, l2->own_addr, ETH_ALEN); 97 int l2_packet_send(struct l2_packet_data *l2, const u8 *dst_addr, u16 proto, 108 if (l2 == NULL) 118 if (l2->l2_hdr) { 128 os_memcpy(eth->h_source, l2->own_addr, ETH_ALEN); 148 wpa_printf(MSG_DEBUG, "L2(NDISUIO): WriteFile failed: %d", 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) 198 struct l2_packet_data *l2 = arg; local 306 struct l2_packet_data *l2 = eloop_data; local 354 struct l2_packet_data *l2; local [all...] |
l2_packet_linux.c | 38 int l2_packet_get_own_addr(struct l2_packet_data *l2, u8 *addr) 40 os_memcpy(addr, l2->own_addr, ETH_ALEN); 45 int l2_packet_send(struct l2_packet_data *l2, const u8 *dst_addr, u16 proto, 49 if (l2 == NULL) 51 if (l2->l2_hdr) { 52 ret = send(l2->fd, buf, len, 0); 59 ll.sll_ifindex = l2->ifindex; 63 ret = sendto(l2->fd, buf, len, 0, (struct sockaddr *) &ll, 74 struct l2_packet_data *l2 = eloop_ctx; local 89 l2->rx_callback(l2->rx_callback_ctx, ll.sll_addr, buf, res) 99 struct l2_packet_data *l2; local [all...] |
/external/wpa_supplicant_6/wpa_supplicant/src/l2_packet/ |
l2_packet_none.c | 36 int l2_packet_get_own_addr(struct l2_packet_data *l2, u8 *addr) 38 os_memcpy(addr, l2->own_addr, ETH_ALEN); 43 int l2_packet_send(struct l2_packet_data *l2, const u8 *dst_addr, u16 proto, 46 if (l2 == NULL) 51 * whether l2->l2_hdr is set). 60 struct l2_packet_data *l2 = eloop_ctx; local 68 l2->rx_callback(l2->rx_callback_ctx, NULL /* TODO: src addr */, 79 struct l2_packet_data *l2; local 81 l2 = os_zalloc(sizeof(struct l2_packet_data)) [all...] |
l2_packet_winpcap.c | 71 int l2_packet_get_own_addr(struct l2_packet_data *l2, u8 *addr) 73 os_memcpy(addr, l2->own_addr, ETH_ALEN); 78 int l2_packet_send(struct l2_packet_data *l2, const u8 *dst_addr, u16 proto, 84 if (l2 == NULL) 87 if (l2->l2_hdr) { 88 ret = pcap_sendpacket(l2->pcap, buf, len); 96 os_memcpy(eth->h_source, l2->own_addr, ETH_ALEN); 99 ret = pcap_sendpacket(l2->pcap, (u8 *) eth, mlen); 111 struct l2_packet_data *l2 = (struct l2_packet_data *) user; local 118 if (l2->l2_hdr) 136 struct l2_packet_data *l2 = arg; local 159 struct l2_packet_data *l2 = eloop_data; local 210 struct l2_packet_data *l2; local 259 struct l2_packet_data *l2 = eloop_ctx; local [all...] |
l2_packet_pcap.c | 49 int l2_packet_get_own_addr(struct l2_packet_data *l2, u8 *addr) 51 os_memcpy(addr, l2->own_addr, ETH_ALEN); 57 static int l2_packet_init_libdnet(struct l2_packet_data *l2) 61 l2->eth = eth_open(l2->ifname); 62 if (!l2->eth) { 63 printf("Failed to open interface '%s'.\n", l2->ifname); 68 if (eth_get(l2->eth, &own_addr) < 0) { 70 l2->ifname); 72 eth_close(l2->eth) 125 struct l2_packet_data *l2 = eloop_ctx; local 155 struct l2_packet_data *l2 = (struct l2_packet_data *) user; local 182 struct l2_packet_data *l2 = eloop_ctx; local 290 struct l2_packet_data *l2; local [all...] |
l2_packet_privsep.c | 35 static int wpa_priv_cmd(struct l2_packet_data *l2, int cmd, 49 msg.msg_name = &l2->priv_addr; 50 msg.msg_namelen = sizeof(l2->priv_addr); 52 if (sendmsg(l2->fd, &msg, 0) < 0) { 53 perror("L2: sendmsg(cmd)"); 61 int l2_packet_get_own_addr(struct l2_packet_data *l2, u8 *addr) 63 os_memcpy(addr, l2->own_addr, ETH_ALEN); 68 int l2_packet_send(struct l2_packet_data *l2, const u8 *dst_addr, u16 proto, 87 msg.msg_name = &l2->priv_addr; 88 msg.msg_namelen = sizeof(l2->priv_addr) 101 struct l2_packet_data *l2 = eloop_ctx; local 138 struct l2_packet_data *l2; local [all...] |
l2_packet_freebsd.c | 50 int l2_packet_get_own_addr(struct l2_packet_data *l2, u8 *addr) 52 os_memcpy(addr, l2->own_addr, ETH_ALEN); 57 int l2_packet_send(struct l2_packet_data *l2, const u8 *dst_addr, u16 proto, 60 if (!l2->l2_hdr) { 66 os_memcpy(eth->h_source, l2->own_addr, ETH_ALEN); 69 ret = pcap_inject(l2->pcap, (u8 *) eth, len + sizeof(*eth)); 73 return pcap_inject(l2->pcap, buf, len); 79 struct l2_packet_data *l2 = eloop_ctx; local 93 if (l2->l2_hdr) { 100 l2->rx_callback(l2->rx_callback_ctx, ethhdr->h_source, buf, len) 208 struct l2_packet_data *l2; local [all...] |
l2_packet_ndis.c | 62 struct l2_packet_data *l2[2]; member in struct:l2_packet_ndisuio_global 90 int l2_packet_get_own_addr(struct l2_packet_data *l2, u8 *addr) 92 os_memcpy(addr, l2->own_addr, ETH_ALEN); 97 int l2_packet_send(struct l2_packet_data *l2, const u8 *dst_addr, u16 proto, 108 if (l2 == NULL) 118 if (l2->l2_hdr) { 128 os_memcpy(eth->h_source, l2->own_addr, ETH_ALEN); 148 wpa_printf(MSG_DEBUG, "L2(NDISUIO): WriteFile failed: %d", 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) 198 struct l2_packet_data *l2 = arg; local 306 struct l2_packet_data *l2 = eloop_data; local 354 struct l2_packet_data *l2; local [all...] |
l2_packet_linux.c | 38 int l2_packet_get_own_addr(struct l2_packet_data *l2, u8 *addr) 40 os_memcpy(addr, l2->own_addr, ETH_ALEN); 45 int l2_packet_send(struct l2_packet_data *l2, const u8 *dst_addr, u16 proto, 49 if (l2 == NULL) 51 if (l2->l2_hdr) { 52 ret = send(l2->fd, buf, len, 0); 59 ll.sll_ifindex = l2->ifindex; 63 ret = sendto(l2->fd, buf, len, 0, (struct sockaddr *) &ll, 74 struct l2_packet_data *l2 = eloop_ctx; local 89 l2->rx_callback(l2->rx_callback_ctx, ll.sll_addr, buf, res) 99 struct l2_packet_data *l2; local [all...] |
/external/wpa_supplicant_8/src/l2_packet/ |
l2_packet_none.c | 36 int l2_packet_get_own_addr(struct l2_packet_data *l2, u8 *addr) 38 os_memcpy(addr, l2->own_addr, ETH_ALEN); 43 int l2_packet_send(struct l2_packet_data *l2, const u8 *dst_addr, u16 proto, 46 if (l2 == NULL) 51 * whether l2->l2_hdr is set). 60 struct l2_packet_data *l2 = eloop_ctx; local 68 l2->rx_callback(l2->rx_callback_ctx, NULL /* TODO: src addr */, 79 struct l2_packet_data *l2; local 81 l2 = os_zalloc(sizeof(struct l2_packet_data)) [all...] |
l2_packet_winpcap.c | 71 int l2_packet_get_own_addr(struct l2_packet_data *l2, u8 *addr) 73 os_memcpy(addr, l2->own_addr, ETH_ALEN); 78 int l2_packet_send(struct l2_packet_data *l2, const u8 *dst_addr, u16 proto, 84 if (l2 == NULL) 87 if (l2->l2_hdr) { 88 ret = pcap_sendpacket(l2->pcap, buf, len); 96 os_memcpy(eth->h_source, l2->own_addr, ETH_ALEN); 99 ret = pcap_sendpacket(l2->pcap, (u8 *) eth, mlen); 111 struct l2_packet_data *l2 = (struct l2_packet_data *) user; local 118 if (l2->l2_hdr) 136 struct l2_packet_data *l2 = arg; local 159 struct l2_packet_data *l2 = eloop_data; local 210 struct l2_packet_data *l2; local 259 struct l2_packet_data *l2 = eloop_ctx; local [all...] |
l2_packet_pcap.c | 49 int l2_packet_get_own_addr(struct l2_packet_data *l2, u8 *addr) 51 os_memcpy(addr, l2->own_addr, ETH_ALEN); 57 static int l2_packet_init_libdnet(struct l2_packet_data *l2) 61 l2->eth = eth_open(l2->ifname); 62 if (!l2->eth) { 63 printf("Failed to open interface '%s'.\n", l2->ifname); 68 if (eth_get(l2->eth, &own_addr) < 0) { 70 l2->ifname); 72 eth_close(l2->eth) 125 struct l2_packet_data *l2 = eloop_ctx; local 155 struct l2_packet_data *l2 = (struct l2_packet_data *) user; local 182 struct l2_packet_data *l2 = eloop_ctx; local 290 struct l2_packet_data *l2; local [all...] |
l2_packet_privsep.c | 35 static int wpa_priv_cmd(struct l2_packet_data *l2, int cmd, 49 msg.msg_name = &l2->priv_addr; 50 msg.msg_namelen = sizeof(l2->priv_addr); 52 if (sendmsg(l2->fd, &msg, 0) < 0) { 53 perror("L2: sendmsg(cmd)"); 61 int l2_packet_get_own_addr(struct l2_packet_data *l2, u8 *addr) 63 os_memcpy(addr, l2->own_addr, ETH_ALEN); 68 int l2_packet_send(struct l2_packet_data *l2, const u8 *dst_addr, u16 proto, 87 msg.msg_name = &l2->priv_addr; 88 msg.msg_namelen = sizeof(l2->priv_addr) 101 struct l2_packet_data *l2 = eloop_ctx; local 138 struct l2_packet_data *l2; local [all...] |
l2_packet_ndis.c | 62 struct l2_packet_data *l2[2]; member in struct:l2_packet_ndisuio_global 90 int l2_packet_get_own_addr(struct l2_packet_data *l2, u8 *addr) 92 os_memcpy(addr, l2->own_addr, ETH_ALEN); 97 int l2_packet_send(struct l2_packet_data *l2, const u8 *dst_addr, u16 proto, 108 if (l2 == NULL) 118 if (l2->l2_hdr) { 128 os_memcpy(eth->h_source, l2->own_addr, ETH_ALEN); 140 wpa_printf(MSG_DEBUG, "L2(NDISUIO): Wait for pending " 146 wpa_printf(MSG_DEBUG, "L2(NDISUIO): " 154 wpa_printf(MSG_DEBUG, "L2(NDISUIO): WriteFile failed: %d" 204 struct l2_packet_data *l2 = arg; local 312 struct l2_packet_data *l2 = eloop_data; local 360 struct l2_packet_data *l2; local [all...] |
l2_packet_linux.c | 38 int l2_packet_get_own_addr(struct l2_packet_data *l2, u8 *addr) 40 os_memcpy(addr, l2->own_addr, ETH_ALEN); 45 int l2_packet_send(struct l2_packet_data *l2, const u8 *dst_addr, u16 proto, 49 if (l2 == NULL) 51 if (l2->l2_hdr) { 52 ret = send(l2->fd, buf, len, 0); 60 ll.sll_ifindex = l2->ifindex; 64 ret = sendto(l2->fd, buf, len, 0, (struct sockaddr *) &ll, 77 struct l2_packet_data *l2 = eloop_ctx; local 93 l2->rx_callback(l2->rx_callback_ctx, ll.sll_addr, buf, res) 103 struct l2_packet_data *l2; local [all...] |
l2_packet_freebsd.c | 54 int l2_packet_get_own_addr(struct l2_packet_data *l2, u8 *addr) 56 os_memcpy(addr, l2->own_addr, ETH_ALEN); 61 int l2_packet_send(struct l2_packet_data *l2, const u8 *dst_addr, u16 proto, 64 if (!l2->l2_hdr) { 70 os_memcpy(eth->h_source, l2->own_addr, ETH_ALEN); 73 ret = pcap_inject(l2->pcap, (u8 *) eth, len + sizeof(*eth)); 77 return pcap_inject(l2->pcap, buf, len); 83 struct l2_packet_data *l2 = eloop_ctx; local 97 if (l2->l2_hdr) { 104 l2->rx_callback(l2->rx_callback_ctx, ethhdr->h_source, buf, len) 239 struct l2_packet_data *l2; local [all...] |
/external/libffi/testsuite/libffi.call/ |
return_sl.c | 9 static long return_sl(long l1, long l2) 11 return l1 - l2; 20 unsigned long l1, l2; local 25 values[1] = &l2; 31 l2 = 1073741824L; 34 printf("res: %ld, %ld\n", (long)res, l1 - l2);
|
/bootable/bootloader/legacy/libc/ |
strstr.c | 34 int l2 = strlen(s2); local 36 while (l1 >= l2) { 37 if (memcmp(s1, s2, l2) == 0) {
|
/dalvik/dx/tests/044-dex-math-ops/ |
Blort.java | 40 public void blort(long l1, long l2) { 43 l = l1 + l2; 44 l = l1 - l2; 45 l = l1 * l2; 46 l = l1 / l2; 47 l = l1 % l2; 48 l = l1 & l2; 49 l = l1 | l2; 50 l = l1 ^ l2; 51 l = l1 << l2; [all...] |
/external/dropbear/libtomcrypt/testprof/ |
base64_test.c | 6 unsigned long x, l1, l2; local 12 l2 = sizeof(tmp); 13 DO(base64_decode(out, l1, tmp, &l2)); 14 if (l2 != x || memcmp(tmp, in, x)) { 15 fprintf(stderr, "base64 failed %lu %lu %lu", x, l1, l2);
|
/external/clang/test/SemaCXX/ |
exceptions.cpp | 40 goto l2; // expected-error {{illegal goto into protected scope}} 43 l2: 47 goto l2; 54 goto l2; // expected-error {{illegal goto into protected scope}} 61 goto l2; // expected-error {{illegal goto into protected scope}} 68 goto l2; // expected-error {{illegal goto into protected scope}}
|