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

12345678

/freebsd-11-stable/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
106 l2_packet_deinit(struct l2_packet_data *l2) argument
120 l2_packet_get_ip_addr(struct l2_packet_data *l2, char *buf, size_t len) argument
127 l2_packet_notify_auth_start(struct l2_packet_data *l2) argument
133 l2_packet_set_packet_filter(struct l2_packet_data *l2, enum l2_packet_filter_type type) 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
96 struct l2_packet_data *l2 = eloop_ctx; local
134 struct l2_packet_data *l2; local
246 l2_packet_deinit(struct l2_packet_data *l2) argument
266 l2_packet_get_ip_addr(struct l2_packet_data *l2, char *buf, size_t len) argument
273 l2_packet_notify_auth_start(struct l2_packet_data *l2) argument
279 l2_packet_set_packet_filter(struct l2_packet_data *l2, enum l2_packet_filter_type type) 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
465 l2_packet_deinit(struct l2_packet_data *l2) argument
520 l2_packet_get_ip_addr(struct l2_packet_data *l2, char *buf, size_t len) argument
526 l2_packet_notify_auth_start(struct l2_packet_data *l2) argument
531 l2_packet_set_packet_filter(struct l2_packet_data *l2, enum l2_packet_filter_type type) 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
271 l2_packet_deinit(struct l2_packet_data *l2) argument
284 l2_packet_get_ip_addr(struct l2_packet_data *l2, char *buf, size_t len) argument
320 l2_packet_notify_auth_start(struct l2_packet_data *l2) argument
325 l2_packet_set_packet_filter(struct l2_packet_data *l2, enum l2_packet_filter_type type) argument
[all...]
H A Dl2_packet.h86 * @l2: Pointer to internal l2_packet data from l2_packet_init()
88 void l2_packet_deinit(struct l2_packet_data *l2);
92 * @l2: Pointer to internal l2_packet data from l2_packet_init()
96 int l2_packet_get_own_addr(struct l2_packet_data *l2, u8 *addr);
100 * @l2: Pointer to internal l2_packet data from l2_packet_init()
107 * @len: Length of the buffer (including l2 header only if l2_hdr == 1)
110 int l2_packet_send(struct l2_packet_data *l2, const u8 *dst_addr, u16 proto,
115 * @l2: Pointer to internal l2_packet data from l2_packet_init()
127 int l2_packet_get_ip_addr(struct l2_packet_data *l2, char *buf, size_t len);
132 * @l2
[all...]
/freebsd-11-stable/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-11-stable/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-11-stable/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-11-stable/crypto/openssl/crypto/cast/
H A Dcast_lcl.h73 #define c2ln(c,l1,l2,n) { \
75 l1=l2=0; \
77 case 8: l2 =((unsigned long)(*(--(c))))<<24L; \
78 case 7: l2|=((unsigned long)(*(--(c))))<<16L; \
79 case 6: l2|=((unsigned long)(*(--(c))))<< 8L; \
80 case 5: l2|=((unsigned long)(*(--(c)))); \
96 #define l2cn(l1,l2,c,n) { \
99 case 8: *(--(c))=(unsigned char)(((l2)>>24L)&0xff); \
100 case 7: *(--(c))=(unsigned char)(((l2)>>16L)&0xff); \
101 case 6: *(--(c))=(unsigned char)(((l2)>>
[all...]
/freebsd-11-stable/crypto/openssl/crypto/idea/
H A Didea_lcl.h97 #define n2ln(c,l1,l2,n) { \
99 l1=l2=0; \
101 case 8: l2 =((unsigned long)(*(--(c)))) ; \
102 case 7: l2|=((unsigned long)(*(--(c))))<< 8; \
103 case 6: l2|=((unsigned long)(*(--(c))))<<16; \
104 case 5: l2|=((unsigned long)(*(--(c))))<<24; \
113 #define l2nn(l1,l2,c,n) { \
116 case 8: *(--(c))=(unsigned char)(((l2) )&0xff); \
117 case 7: *(--(c))=(unsigned char)(((l2)>> 8)&0xff); \
118 case 6: *(--(c))=(unsigned char)(((l2)>>1
[all...]
/freebsd-11-stable/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-11-stable/contrib/wpa/src/ap/
H A Dx_snoop.c73 struct l2_packet_data *l2; local
75 l2 = l2_packet_init(conf->bridge, NULL, ETH_P_ALL, handler, hapd, 1);
76 if (l2 == NULL) {
83 if (l2_packet_set_packet_filter(l2, type)) {
87 l2_packet_deinit(l2);
91 return l2;
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/dfsan/
H A Ddfsan.cpp149 static atomic_dfsan_label *union_table(dfsan_label l1, dfsan_label l2) { argument
150 return &(*(dfsan_union_table_t *) UnionTableAddr())[l1][l2];
164 dfsan_label __dfsan_union(dfsan_label l1, dfsan_label l2) { argument
166 return l1 | l2;
167 DCHECK_NE(l1, l2);
170 return l2;
171 if (l2 == 0)
174 if (l1 > l2)
175 Swap(l1, l2);
177 atomic_dfsan_label *table_ent = union_table(l1, l2);
248 dfsan_union(dfsan_label l1, dfsan_label l2) argument
[all...]
/freebsd-11-stable/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-11-stable/contrib/atf/atf-c/detail/
H A Dlist_test.c180 atf_list_t l1, l2; local
183 RE(atf_list_init(&l2));
185 atf_list_append_list(&l1, &l2);
192 atf_list_t l1, l2; local
197 RE(atf_list_init(&l2));
199 atf_list_append_list(&l1, &l2);
207 atf_list_t l1, l2; local
211 RE(atf_list_init(&l2));
212 RE(atf_list_append(&l2, &item, false));
214 atf_list_append_list(&l1, &l2);
222 atf_list_t l1, l2; local
240 atf_list_t l1, l2; local
[all...]
/freebsd-11-stable/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
185 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-11-stable/contrib/tcpdump/
H A Dprint-beep.c32 const char *str2, u_int l2)
42 if (tl1 > l2)
31 l_strnstart(netdissect_options *ndo, const char *tstr1, u_int tl1, const char *str2, u_int l2) argument
/freebsd-11-stable/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-11-stable/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-11-stable/sys/sparc64/include/
H A Dktr.h42 #define ATR(desc, r1, r2, r3, l1, l2) \
48 l2: add r2, 1, r3 ; \
54 bne %icc, l2 ## b ; \
69 #define CATR(mask, desc, r1, r2, r3, l1, l2, l3) \
95 ATR(desc, r1, r2, r3, l1, l2)
/freebsd-11-stable/lib/libc/stdlib/
H A Dmerge.c121 u_char *f1, *f2, *t, *b, *tp2, *q, *l1, *l2; local
148 l2 = list1;
150 for (tp2 = p2 = list2; p2 != last; p1 = EVAL(l2)) {
152 f1 = l2;
156 l2 = list1 + (p2 - list2);
157 while (f1 < l1 && f2 < l2) {
164 b = f2, t = l2;
224 if (f2 < l2) {
226 ICOPY_LIST(f2, tp2, l2);
228 CCOPY_LIST(f2, tp2, l2);
279 u_char *f1, *f2, *s, *l2, *last, *p2; local
[all...]
/freebsd-11-stable/contrib/opie/libopie/
H A Dgenerator.c295 goto l2;
302 goto l2;
309 goto l2;
316 goto l2;
331 goto l2;
343 goto l2;
351 goto l2;
362 goto l2;
369 goto l2;
389 l2
[all...]
/freebsd-11-stable/sys/riscv/riscv/
H A Dpmap.c298 pd_entry_t *l2; local
301 l2 = (pd_entry_t *)PHYS_TO_DMAP(phys);
303 return (&l2[pmap_l2_index(va)]);
323 pmap_l2_to_l3(pd_entry_t *l2, vm_offset_t va) argument
328 phys = PTE_TO_PHYS(pmap_load(l2));
337 pd_entry_t *l2; local
339 l2 = pmap_l2(pmap, va);
340 if (l2 == NULL)
342 if ((pmap_load(l2) & PTE_VALID) == 0)
344 if ((pmap_load(l2)
438 pt_entry_t *l2; local
459 pt_entry_t *l2; local
506 pd_entry_t *l2; local
547 pt_entry_t *l2; local
787 pd_entry_t *l2p, l2; local
854 pd_entry_t *l2; local
1114 pd_entry_t *l2; local
1273 pd_entry_t *l1, *l2; local
1313 pd_entry_t *l2; local
1408 pd_entry_t *l1, *l2; local
1777 pd_entry_t *l1, *l2; local
1887 pd_entry_t *l2, tl2; local
1942 pd_entry_t *l1, *l2; local
2015 pd_entry_t *l1, *l2; local
2298 pd_entry_t *l2; local
2434 pd_entry_t *l1, *l2; local
2702 pd_entry_t ptepde, *l2; local
3015 pd_entry_t *l2; local
[all...]

Completed in 234 milliseconds

12345678