HomeSort by relevance Sort by last modified time
    Searched refs:l2 (Results 1 - 25 of 230) sorted by null

1 2 3 4 5 6 7 8 910

  /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/wpa_supplicant_8/src/l2_packet/
l2_packet_none.c 30 int l2_packet_get_own_addr(struct l2_packet_data *l2, u8 *addr)
32 os_memcpy(addr, l2->own_addr, ETH_ALEN);
37 int l2_packet_send(struct l2_packet_data *l2, const u8 *dst_addr, u16 proto,
40 if (l2 == NULL)
45 * whether l2->l2_hdr is set).
54 struct l2_packet_data *l2 = eloop_ctx; local
62 l2->rx_callback(l2->rx_callback_ctx, NULL /* TODO: src addr */,
73 struct l2_packet_data *l2; local
75 l2 = os_zalloc(sizeof(struct l2_packet_data))
    [all...]
l2_packet_winpcap.c 65 int l2_packet_get_own_addr(struct l2_packet_data *l2, u8 *addr)
67 os_memcpy(addr, l2->own_addr, ETH_ALEN);
72 int l2_packet_send(struct l2_packet_data *l2, const u8 *dst_addr, u16 proto,
78 if (l2 == NULL)
81 if (l2->l2_hdr) {
82 ret = pcap_sendpacket(l2->pcap, buf, len);
90 os_memcpy(eth->h_source, l2->own_addr, ETH_ALEN);
93 ret = pcap_sendpacket(l2->pcap, (u8 *) eth, mlen);
105 struct l2_packet_data *l2 = (struct l2_packet_data *) user; local
112 if (l2->l2_hdr)
130 struct l2_packet_data *l2 = arg; local
153 struct l2_packet_data *l2 = eloop_data; local
204 struct l2_packet_data *l2; local
253 struct l2_packet_data *l2 = eloop_ctx; local
    [all...]
l2_packet_pcap.c 43 int l2_packet_get_own_addr(struct l2_packet_data *l2, u8 *addr)
45 os_memcpy(addr, l2->own_addr, ETH_ALEN);
51 static int l2_packet_init_libdnet(struct l2_packet_data *l2)
55 l2->eth = eth_open(l2->ifname);
56 if (!l2->eth) {
57 printf("Failed to open interface '%s'.\n", l2->ifname);
62 if (eth_get(l2->eth, &own_addr) < 0) {
64 l2->ifname);
66 eth_close(l2->eth)
119 struct l2_packet_data *l2 = eloop_ctx; local
149 struct l2_packet_data *l2 = (struct l2_packet_data *) user; local
176 struct l2_packet_data *l2 = eloop_ctx; local
284 struct l2_packet_data *l2; local
    [all...]
l2_packet_privsep.c 29 static int wpa_priv_cmd(struct l2_packet_data *l2, int cmd,
43 msg.msg_name = &l2->priv_addr;
44 msg.msg_namelen = sizeof(l2->priv_addr);
46 if (sendmsg(l2->fd, &msg, 0) < 0) {
47 perror("L2: sendmsg(cmd)");
55 int l2_packet_get_own_addr(struct l2_packet_data *l2, u8 *addr)
57 os_memcpy(addr, l2->own_addr, ETH_ALEN);
62 int l2_packet_send(struct l2_packet_data *l2, const u8 *dst_addr, u16 proto,
81 msg.msg_name = &l2->priv_addr;
82 msg.msg_namelen = sizeof(l2->priv_addr)
95 struct l2_packet_data *l2 = eloop_ctx; local
132 struct l2_packet_data *l2; local
    [all...]
l2_packet_ndis.c 56 struct l2_packet_data *l2[2]; member in struct:l2_packet_ndisuio_global
84 int l2_packet_get_own_addr(struct l2_packet_data *l2, u8 *addr)
86 os_memcpy(addr, l2->own_addr, ETH_ALEN);
91 int l2_packet_send(struct l2_packet_data *l2, const u8 *dst_addr, u16 proto,
102 if (l2 == NULL)
112 if (l2->l2_hdr) {
122 os_memcpy(eth->h_source, l2->own_addr, ETH_ALEN);
134 wpa_printf(MSG_DEBUG, "L2(NDISUIO): Wait for pending "
140 wpa_printf(MSG_DEBUG, "L2(NDISUIO): "
148 wpa_printf(MSG_DEBUG, "L2(NDISUIO): WriteFile failed: %d"
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 32 int l2_packet_get_own_addr(struct l2_packet_data *l2, u8 *addr)
34 os_memcpy(addr, l2->own_addr, ETH_ALEN);
39 int l2_packet_send(struct l2_packet_data *l2, const u8 *dst_addr, u16 proto,
43 if (l2 == NULL)
45 if (l2->l2_hdr) {
46 ret = send(l2->fd, buf, len, 0);
54 ll.sll_ifindex = l2->ifindex;
58 ret = sendto(l2->fd, buf, len, 0, (struct sockaddr *) &ll,
71 struct l2_packet_data *l2 = eloop_ctx; local
87 l2->rx_callback(l2->rx_callback_ctx, ll.sll_addr, buf, res)
97 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...]
l2_packet.h 67 * @l2: Pointer to internal l2_packet data from l2_packet_init()
69 void l2_packet_deinit(struct l2_packet_data *l2);
73 * @l2: Pointer to internal l2_packet data from l2_packet_init()
77 int l2_packet_get_own_addr(struct l2_packet_data *l2, u8 *addr);
81 * @l2: Pointer to internal l2_packet data from l2_packet_init()
88 * @len: Length of the buffer (including l2 header only if l2_hdr == 1)
91 int l2_packet_send(struct l2_packet_data *l2, const u8 *dst_addr, u16 proto,
96 * @l2: Pointer to internal l2_packet data from l2_packet_init()
108 int l2_packet_get_ip_addr(struct l2_packet_data *l2, char *buf, size_t len);
113 * @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);
  /external/clang/test/SemaCXX/
exceptions.cpp 40 goto l2; // expected-error {{goto into protected scope}}
43 l2:
47 goto l2;
54 goto l2; // expected-error {{goto into protected scope}}
61 goto l2; // expected-error {{goto into protected scope}}
68 goto l2; // expected-error {{goto into protected scope}}
  /external/openssl/crypto/bf/
bf_locl.h 71 #define c2ln(c,l1,l2,n) { \
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) { \
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/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...]
  /external/sepolicy/
mls 23 ((h1 eq h2 and l1 eq l2) or t1 == mlstrustedsubject);
27 (l1 dom l2 or t1 == mlstrustedsubject);
31 (l1 domby l2 or t1 == mlstrustedsubject);
41 ((h1 eq h2 and l1 eq l2) or t1 == mlstrustedsubject or t2 == mlstrustedsubject);
46 (l1 domby l2 or t1 == mlstrustedsubject or t2 == mlstrustedsubject);
51 (l1 eq l2 or t1 == mlstrustedsubject or t2 == mlstrustedsubject);
61 (l2 eq h2 and (l1 eq l2 or t1 == mlstrustedsubject));
71 (t2 != app_data_file or l1 eq l2 or t1 == mlstrustedsubject);
73 (t2 != app_data_file or l1 eq l2 or t1 == mlstrustedsubject)
    [all...]
  /external/clang/test/CodeGen/
libcalls.c 21 long double l2 = sqrtl(a2); local
44 long double l2 = powl(a2, a2); local
67 long double l2 = fmal(a2, a2, a2); local

Completed in 429 milliseconds

1 2 3 4 5 6 7 8 910