Searched refs:l2 (Results 1 - 25 of 124) sorted by relevance

12345

/freebsd-10.0-release/contrib/wpa/src/l2_packet/
H A Dl2_packet_none.c30 int l2_packet_get_own_addr(struct l2_packet_data *l2, u8 *addr) argument
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, argument
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
93 l2_packet_deinit(struct l2_packet_data *l2) argument
107 l2_packet_get_ip_addr(struct l2_packet_data *l2, char *buf, size_t len) argument
114 l2_packet_notify_auth_start(struct l2_packet_data *l2) argument
[all...]
H A Dl2_packet_privsep.c29 static int wpa_priv_cmd(struct l2_packet_data *l2, int cmd, argument
43 msg.msg_name = &l2->priv_addr;
44 msg.msg_namelen = sizeof(l2->priv_addr);
46 if (sendmsg(l2->fd, &msg, 0) < 0) {
55 int l2_packet_get_own_addr(struct l2_packet_data *l2, u8 *addr) argument
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, argument
81 msg.msg_name = &l2->priv_addr;
82 msg.msg_namelen = sizeof(l2->priv_addr);
84 if (sendmsg(l2
95 struct l2_packet_data *l2 = eloop_ctx; local
132 struct l2_packet_data *l2; local
231 l2_packet_deinit(struct l2_packet_data *l2) argument
251 l2_packet_get_ip_addr(struct l2_packet_data *l2, char *buf, size_t len) argument
258 l2_packet_notify_auth_start(struct l2_packet_data *l2) argument
[all...]
H A Dl2_packet_ndis.c56 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) argument
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, argument
102 if (l2 == NULL)
112 if (l2->l2_hdr) {
122 os_memcpy(eth->h_source, l2->own_addr, ETH_ALEN);
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) argument
165 if (!ReadFile(driver_ndis_get_ndisuio_handle(), l2
198 struct l2_packet_data *l2 = arg; local
250 l2_ndisuio_start_read(struct l2_packet_data *l2, int recursive) argument
279 l2_packet_callback(struct l2_packet_data *l2) argument
306 struct l2_packet_data *l2 = eloop_data; local
354 struct l2_packet_data *l2; local
453 l2_packet_deinit(struct l2_packet_data *l2) argument
508 l2_packet_get_ip_addr(struct l2_packet_data *l2, char *buf, size_t len) argument
514 l2_packet_notify_auth_start(struct l2_packet_data *l2) argument
[all...]
H A Dl2_packet_freebsd.c48 int l2_packet_get_own_addr(struct l2_packet_data *l2, u8 *addr) argument
50 os_memcpy(addr, l2->own_addr, ETH_ALEN);
55 int l2_packet_send(struct l2_packet_data *l2, const u8 *dst_addr, u16 proto, argument
58 if (!l2->l2_hdr) {
64 os_memcpy(eth->h_source, l2->own_addr, ETH_ALEN);
67 ret = pcap_inject(l2->pcap, (u8 *) eth, len + sizeof(*eth));
71 return pcap_inject(l2->pcap, buf, len);
77 struct l2_packet_data *l2 = eloop_ctx; local
91 if (l2->l2_hdr) {
98 l2
102 l2_packet_init_libpcap(struct l2_packet_data *l2, unsigned short protocol) argument
233 struct l2_packet_data *l2; local
259 l2_packet_deinit(struct l2_packet_data *l2) argument
272 l2_packet_get_ip_addr(struct l2_packet_data *l2, char *buf, size_t len) argument
308 l2_packet_notify_auth_start(struct l2_packet_data *l2) argument
[all...]
H A Dl2_packet.h67 * @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
[all...]
/freebsd-10.0-release/crypto/openssl/crypto/bf/
H A Dbf_locl.h71 #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)>>
[all...]
/freebsd-10.0-release/crypto/openssl/crypto/rc2/
H A Drc2_locl.h67 #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)>>
[all...]
/freebsd-10.0-release/crypto/openssl/crypto/cast/
H A Dcast_lcl.h75 #define c2ln(c,l1,l2,n) { \
77 l1=l2=0; \
79 case 8: l2 =((unsigned long)(*(--(c))))<<24L; \
80 case 7: l2|=((unsigned long)(*(--(c))))<<16L; \
81 case 6: l2|=((unsigned long)(*(--(c))))<< 8L; \
82 case 5: l2|=((unsigned long)(*(--(c)))); \
98 #define l2cn(l1,l2,c,n) { \
101 case 8: *(--(c))=(unsigned char)(((l2)>>24L)&0xff); \
102 case 7: *(--(c))=(unsigned char)(((l2)>>16L)&0xff); \
103 case 6: *(--(c))=(unsigned char)(((l2)>>
[all...]
/freebsd-10.0-release/crypto/openssl/crypto/idea/
H A Didea_lcl.h95 #define n2ln(c,l1,l2,n) { \
97 l1=l2=0; \
99 case 8: l2 =((unsigned long)(*(--(c)))) ; \
100 case 7: l2|=((unsigned long)(*(--(c))))<< 8; \
101 case 6: l2|=((unsigned long)(*(--(c))))<<16; \
102 case 5: l2|=((unsigned long)(*(--(c))))<<24; \
111 #define l2nn(l1,l2,c,n) { \
114 case 8: *(--(c))=(unsigned char)(((l2) )&0xff); \
115 case 7: *(--(c))=(unsigned char)(((l2)>> 8)&0xff); \
116 case 6: *(--(c))=(unsigned char)(((l2)>>1
[all...]
/freebsd-10.0-release/crypto/openssl/crypto/rc5/
H A Drc5_locl.h69 #define c2ln(c,l1,l2,n) { \
71 l1=l2=0; \
73 case 8: l2 =((unsigned long)(*(--(c))))<<24L; \
74 case 7: l2|=((unsigned long)(*(--(c))))<<16L; \
75 case 6: l2|=((unsigned long)(*(--(c))))<< 8L; \
76 case 5: l2|=((unsigned long)(*(--(c)))); \
92 #define l2cn(l1,l2,c,n) { \
95 case 8: *(--(c))=(unsigned char)(((l2)>>24L)&0xff); \
96 case 7: *(--(c))=(unsigned char)(((l2)>>16L)&0xff); \
97 case 6: *(--(c))=(unsigned char)(((l2)>>
[all...]
/freebsd-10.0-release/sys/crypto/blowfish/
H A Dbf_locl.h77 #define c2ln(c,l1,l2,n) { \
79 l1=l2=0; \
81 case 8: l2 =((BF_LONG)(*(--(c))))<<24L; \
82 case 7: l2|=((BF_LONG)(*(--(c))))<<16L; \
83 case 6: l2|=((BF_LONG)(*(--(c))))<< 8L; \
84 case 5: l2|=((BF_LONG)(*(--(c)))); \
100 #define l2cn(l1,l2,c,n) { \
103 case 8: *(--(c))=(unsigned char)(((l2)>>24L)&0xff); \
104 case 7: *(--(c))=(unsigned char)(((l2)>>16L)&0xff); \
105 case 6: *(--(c))=(unsigned char)(((l2)>>
[all...]
/freebsd-10.0-release/tools/regression/usr.bin/printf/
H A Dregress.sh11 REGRESSION_TEST(`l2', `LC_ALL=en_US.UTF-8 printf "%d\n" $(printf \"\\303\\244)')
/freebsd-10.0-release/crypto/heimdal/lib/wind/
H A Dgen-punycode-examples.py59 l2 = f.readline() variable
60 if not l2:
62 l2 = re.sub('^ *', '', l2) variable
63 l = l[:-2] + l2
/freebsd-10.0-release/contrib/atf/atf-c/detail/
H A Dlist_test.c184 atf_list_t l1, l2; local
187 RE(atf_list_init(&l2));
189 atf_list_append_list(&l1, &l2);
196 atf_list_t l1, l2; local
201 RE(atf_list_init(&l2));
203 atf_list_append_list(&l1, &l2);
211 atf_list_t l1, l2; local
215 RE(atf_list_init(&l2));
216 RE(atf_list_append(&l2, &item, false));
218 atf_list_append_list(&l1, &l2);
226 atf_list_t l1, l2; local
244 atf_list_t l1, l2; local
[all...]
H A Dtest_helpers_test.c102 const char *l2 = "Second line; much longer than the first one"; local
134 fprintf(f, "%s\n", l2);
159 ATF_REQUIRE(atf_equal_dynstr_cstring(&dest, l2));
/freebsd-10.0-release/sys/sparc64/sparc64/
H A Dmp_locore.S116 add %l6, (11f-3b), %l2
121 ldx [%l2 + TTE_VPN], %l4
122 ldx [%l2 + TTE_DATA], %l5
161 7: add %l2, 1 << TTE_SHIFT, %l2
212 2: mov CPU_STICKSYNC, %l2
214 stw %l2, [%l0 + CSA_STATE]
216 3: ldx [%l0 + CSA_STICK], %l2
217 brz %l2, 3b
219 wr %l2,
[all...]
H A Dswtch.S65 rd %fprs, %l2
66 andcc %l2, FPRS_FEF, %g0
78 1: sub PCB_REG, TF_SIZEOF, %l2
79 ldx [%l2 + TF_FPRS], %l3
86 stx %l3, [%l2 + TF_FPRS]
137 ldx [PCPU(PMAP)], %l2
145 stx %l2, [%g1 + KTR_PARM2]
152 cmp %l2, %l1
168 brz,pn %l2, 3f
186 add %l2,
[all...]
H A Dinterrupt.S205 lduw [%l0 + IR_VEC], %l2
217 /* intrcnt[intr_countp[%l2]]++ */
221 sllx %l2, 1, %l2 /* %l2 = vec << 1 */
222 lduh [%l4 + %l2], %l4 /* %l4 = intr_countp[%l2] */
223 sllx %l4, 3, %l4 /* %l4 = intr_countp[%l2] << 3 */
224 add %l4, %l3, %l4 /* %l4 = intrcnt[intr_countp[%l2]] */
225 ldx [%l4], %l2
[all...]
/freebsd-10.0-release/contrib/tcpdump/
H A Dprint-beep.c42 l_strnstart(const char *tstr1, u_int tl1, const char *str2, u_int l2) argument
45 if (tl1 > l2)
/freebsd-10.0-release/contrib/bmake/lst.lib/
H A DlstConcat.c66 * l1 The list to which l2 is to be appended
67 * l2 The list to append to l1
79 Lst_Concat(Lst l1, Lst l2, int flags) argument
86 List list2 = l2;
88 if (!LstValid (l1) || !LstValid (l2)) {
128 free(l2);
135 * datum field of the corresponding element in l2. The 'last' node
136 * follows the last of the new nodes along until the entire l2 has
/freebsd-10.0-release/contrib/binutils/binutils/
H A Dmcparse.y284 rc_uint_type l1,l2;
286 l2 = unichar_len ($2);
287 h = (unichar *) res_alloc ((l1 + l2 + 1) * sizeof (unichar));
289 if (l2) memcpy (&h[l1], $2, l2 * sizeof (unichar));
290 h[l1 + l2] = 0;
301 rc_uint_type l1,l2;
303 l2 = unichar_len ($2);
304 h = (unichar *) res_alloc ((l1 + l2 + 1) * sizeof (unichar));
306 if (l2) memcp
[all...]
/freebsd-10.0-release/sys/sparc64/include/
H A Dktr.h46 #define ATR(desc, r1, r2, r3, l1, l2) \
52 l2: add r2, 1, r3 ; \
58 bne %icc, l2 ## b ; \
76 #define CATR(mask, desc, r1, r2, r3, l1, l2, l3) \
104 ATR(desc, r1, r2, r3, l1, l2)
/freebsd-10.0-release/lib/libc/stdlib/
H A Dmerge.c107 u_char *f1, *f2, *t, *b, *tp2, *q, *l1, *l2; local
134 l2 = list1;
136 for (tp2 = p2 = list2; p2 != last; p1 = EVAL(l2)) {
138 f1 = l2;
142 l2 = list1 + (p2 - list2);
143 while (f1 < l1 && f2 < l2) {
150 b = f2, t = l2;
210 if (f2 < l2) {
212 ICOPY_LIST(f2, tp2, l2);
214 CCOPY_LIST(f2, tp2, l2);
268 u_char *f1, *f2, *s, *l2, *last, *p2; local
[all...]
/freebsd-10.0-release/contrib/opie/libopie/
H A Dgenerator.c294 goto l2;
301 goto l2;
308 goto l2;
315 goto l2;
330 goto l2;
342 goto l2;
350 goto l2;
361 goto l2;
368 goto l2;
388 l2
[all...]
/freebsd-10.0-release/crypto/openssl/crypto/x509/
H A Dx509_obj.c70 int n,lold,l,l1,l2,num,j,type; local
148 for (l2=j=0; j<num; j++)
151 l2++;
153 if ((q[j] < ' ') || (q[j] > '~')) l2+=3;
156 (os_toascii[q[j]] > os_toascii['~'])) l2+=3;
161 l+=1+l1+1+l2;

Completed in 156 milliseconds

12345