/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...] |
l2_packet.h | 84 * @l2: Pointer to internal l2_packet data from l2_packet_init() 86 void l2_packet_deinit(struct l2_packet_data *l2); 90 * @l2: Pointer to internal l2_packet data from l2_packet_init() 94 int l2_packet_get_own_addr(struct l2_packet_data *l2, u8 *addr); 98 * @l2: Pointer to internal l2_packet data from l2_packet_init() 105 * @len: Length of the buffer (including l2 header only if l2_hdr == 1) 108 int l2_packet_send(struct l2_packet_data *l2, const u8 *dst_addr, u16 proto, 113 * @l2: Pointer to internal l2_packet data from l2_packet_init() 125 int l2_packet_get_ip_addr(struct l2_packet_data *l2, char *buf, size_t len); 130 * @l2: Pointer to internal l2_packet data from l2_packet_init( [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...] |
l2_packet.h | 73 * @l2: Pointer to internal l2_packet data from l2_packet_init() 75 void l2_packet_deinit(struct l2_packet_data *l2); 79 * @l2: Pointer to internal l2_packet data from l2_packet_init() 83 int l2_packet_get_own_addr(struct l2_packet_data *l2, u8 *addr); 87 * @l2: Pointer to internal l2_packet data from l2_packet_init() 94 * @len: Length of the buffer (including l2 header only if l2_hdr == 1) 97 int l2_packet_send(struct l2_packet_data *l2, const u8 *dst_addr, u16 proto, 102 * @l2: Pointer to internal l2_packet data from l2_packet_init() 114 int l2_packet_get_ip_addr(struct l2_packet_data *l2, char *buf, size_t len); 119 * @l2: Pointer to internal l2_packet data from l2_packet_init( [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);
|
pkcs_1_test.c | 9 unsigned long x, y, l1, l2, l3, i1, i2, lparamlen, saltlen, modlen; local 44 l2 = sizeof(buf[2]); 45 DO(pkcs_1_oaep_decode(buf[1], l1, lparam, lparamlen, modlen, hash_idx, buf[2], &l2, &res1)); 47 if (res1 != 1 || l2 != l3 || memcmp(buf[2], buf[0], l3) != 0) { 48 fprintf(stderr, "Outsize == %lu, should have been %lu, res1 = %d, lparamlen = %lu, msg contents follow.\n", l2, l3, res1, lparamlen); 54 for (x = 0; x < l2; x++) {
|
/external/openssl/crypto/rc2/ |
rc2_locl.h | 67 #define c2ln(c,l1,l2,n) { \ 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) { \ 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...] |
/dalvik/libcore/xml/src/main/java/org/xml/sax/ext/ |
Locator2Impl.java | 52 Locator2 l2 = (Locator2) locator; local 54 version = l2.getXMLVersion (); 55 encoding = l2.getEncoding ();
|
/external/icu4c/tools/genprops/misc/ |
ucdmerge.c | 54 sameData(const char *l1, const char *l2) { 60 l2=strchr(l2, ';')+1; 64 end2=endOfData(l2); 68 return length==(end2-l2) && 0==memcmp(l1, l2, length);
|
/external/ipsec-tools/src/racoon/ |
genlist.c | 113 struct genlist *l1, *l2; 145 cf->l2 = genlist_init(); 152 genlist_append(cf->l2, "Curak"); 153 genlist_append(cf->l2, "Kozy"); 154 genlist_append(cf->l2, "Pica"); 155 genlist_append(cf->l2, "Prdel"); 158 dump_list(cf->l2); 163 for (cp = genlist_next (cf->l2, &gpb); cp; cp = genlist_next (0, &gpb))
|
/external/tcpdump/ |
print-beep.c | 42 l_strnstart(const char *tstr1, u_int tl1, const char *str2, u_int l2) 45 if (tl1 > l2)
|