Home
last modified time | relevance | path

Searched refs:rt (Results 1 – 25 of 539) sorted by relevance

12345678910>>...22

/openbsd-src/regress/lib/libcrypto/rc2/
H A Drc2_test.c540 rc2_ecb_test(size_t test_number, const struct rc2_test *rt) in rc2_ecb_test() argument
547 RC2_set_key(&key, rt->key_len, rt->key, rt->key_bits); in rc2_ecb_test()
548 RC2_ecb_encrypt(rt->in, out, &key, 1); in rc2_ecb_test()
550 if (memcmp(rt->out, out, rt->out_len) != 0) { in rc2_ecb_test()
558 RC2_set_key(&key, rt->key_len, rt->key, rt->key_bits); in rc2_ecb_test()
559 RC2_ecb_encrypt(rt->out, out, &key, 0); in rc2_ecb_test()
561 if (memcmp(rt->in, out, rt->in_len) != 0) { in rc2_ecb_test()
571 rc2_cbc_test(size_t test_number, const struct rc2_test *rt) in rc2_cbc_test() argument
579 memcpy(iv, rt->iv, rt->iv_len); in rc2_cbc_test()
580 RC2_set_key(&key, rt->key_len, rt->key, rt->key_bits); in rc2_cbc_test()
[all …]
/openbsd-src/sys/net/
H A Droute.c315 * Returns 1 if the (cached) ``rt'' entry is still valid, 0 otherwise.
318 rtisvalid(struct rtentry *rt) in rtisvalid() argument
320 if (rt == NULL) in rtisvalid()
323 if (!ISSET(rt->rt_flags, RTF_UP)) in rtisvalid()
326 if (ISSET(rt->rt_flags, RTF_GATEWAY)) { in rtisvalid()
327 KASSERT(rt->rt_gwroute != NULL); in rtisvalid()
328 KASSERT(!ISSET(rt->rt_gwroute->rt_flags, RTF_GATEWAY)); in rtisvalid()
329 if (!ISSET(rt->rt_gwroute->rt_flags, RTF_UP)) in rtisvalid()
349 struct rtentry *rt = NULL; in rt_match() local
351 rt in rt_match()
369 struct rtentry *rt = *rtp; rt_clone() local
413 rt_hash(struct rtentry * rt,const struct sockaddr * dst,uint32_t * src) rt_hash() argument
497 rt_setgwroute(struct rtentry * rt,const struct sockaddr * gate,u_int rtableid) rt_setgwroute() argument
582 rt_putgwroute(struct rtentry * rt,struct rtentry * nhrt) rt_putgwroute() argument
608 rtref(struct rtentry * rt) rtref() argument
614 rtfree(struct rtentry * rt) rtfree() argument
666 struct rtentry *rt; rtredirect() local
777 rtdeletemsg(struct rtentry * rt,struct ifnet * ifp,u_int tableid) rtdeletemsg() argument
822 rtflushclone1(struct rtentry * rt,void * arg,u_int id) rtflushclone1() argument
852 struct rtentry *rt = NULL; rtflushclone() local
887 struct rtentry *rt; rtrequest_delete() local
950 struct rtentry *rt, *crt; rtrequest() local
1121 rt_setgate(struct rtentry * rt,const struct sockaddr * gate,u_int rtableid) rt_setgate() argument
1157 rt_getll(struct rtentry * rt) rt_getll() argument
1241 struct rtentry *rt; rt_ifa_add() local
1293 struct rtentry *rt; rt_ifa_del() local
1349 struct rtentry *rt; rt_ifa_addlocal() local
1396 struct rtentry *rt; rt_ifa_dellocal() local
1448 struct rtentry *rt = NULL; rt_ifa_purge() local
1480 rt_ifa_purge_walker(struct rtentry * rt,void * vifa,unsigned int rtableid) rt_ifa_purge_walker() argument
1604 rt_timer_remove_all(struct rtentry * rt) rt_timer_remove_all() argument
1625 rt_timer_get_expire(const struct rtentry * rt) rt_timer_get_expire() argument
1641 rt_timer_add(struct rtentry * rt,struct rttimer_queue * queue,u_int rtableid) rt_timer_add() argument
1705 rt_mpls_set(struct rtentry * rt,const struct sockaddr * src,uint8_t op) rt_mpls_set() argument
1732 rt_mpls_clear(struct rtentry * rt) rt_mpls_clear() argument
1872 struct rtentry *rt = NULL; rt_if_track() local
1907 rt_if_linkstate_change(struct rtentry * rt,void * arg,u_int id) rt_if_linkstate_change() argument
1993 rt_plen2mask(struct rtentry * rt,struct sockaddr_in6 * sa_mask) rt_plen2mask() argument
2049 db_show_rtentry(struct rtentry * rt,void * w,unsigned int id) db_show_rtentry() argument
[all...]
H A Drtable.c424 struct rtentry *rt = NULL; in rtable_lookup() local
452 SRPL_FOREACH(rt, &sr, &an->an_rtlist, rt_next) { in rtable_lookup()
454 (rt->rt_priority & RTP_MASK) != (prio & RTP_MASK)) in rtable_lookup()
460 if (rt->rt_gateway->sa_len == gateway->sa_len && in rtable_lookup()
461 memcmp(rt->rt_gateway, gateway, gateway->sa_len) == 0) in rtable_lookup()
464 if (rt != NULL) in rtable_lookup()
465 rtref(rt); in rtable_lookup()
471 return (rt); in rtable_lookup()
479 struct rtentry *rt = NULL; in rtable_match() local
494 rt = SRPL_FIRST(&sr, &an->an_rtlist); in rtable_match()
[all …]
H A Drtsock.c624 rtm_report(struct rtentry *rt, u_char type, int seq, int tableid) in rtm_report() argument
637 info.rti_info[RTAX_DST] = rt_key(rt); in rtm_report()
638 info.rti_info[RTAX_GATEWAY] = rt->rt_gateway; in rtm_report()
639 info.rti_info[RTAX_NETMASK] = rt_plen2mask(rt, &sa_mask); in rtm_report()
640 info.rti_info[RTAX_LABEL] = rtlabel_id2sa(rt->rt_labelid, &sa_rl); in rtm_report()
642 if (rt->rt_flags & RTF_BFD) { in rtm_report()
644 info.rti_info[RTAX_BFD] = bfd2sa(rt, &sa_bfd); in rtm_report()
649 if (rt->rt_flags & RTF_MPLS) { in rtm_report()
656 rt->rt_llinfo)->mpls_label; in rtm_report()
659 rt in rtm_report()
699 struct rtentry *rt = NULL; route_output() local
930 struct rtentry *rt = *prt; rtm_output() local
1257 struct rtentry *rt; ifa_ifwithroute() local
1342 route_cleargateway(struct rtentry * rt,void * arg,unsigned int rtableid) route_cleargateway() argument
1361 route_arp_conflict(struct rtentry * rt,struct rt_addrinfo * info) route_arp_conflict() argument
1409 rtm_getmetrics(const struct rtentry * rt,struct rt_metrics * out) rtm_getmetrics() argument
1734 rtm_send(struct rtentry * rt,int cmd,int error,unsigned int rtableid) rtm_send() argument
1961 sysctl_dumpentry(struct rtentry * rt,void * v,unsigned int id) sysctl_dumpentry() argument
[all...]
/openbsd-src/gnu/usr.bin/binutils-2.17/cpu/
H A Diq2000m.cpu24 "andoui $rt,$rs,$hi16"
25 (+ OP_ANDOUI rs rt hi16)
26 (set rt (and rs (or (sll hi16 16) #xFFFF)))
30 "andoui ${rt-rs},$hi16"
31 (+ OP_ANDOUI rt-rs hi16)
32 (set rt-rs (and rt-rs (or (sll hi16 16) #xFFFF)))
36 "orui ${rt-rs},$hi16"
37 (+ OP_ORUI rt-rs hi16)
38 (set rt-rs (or rt-rs (sll hi16 16)))
42 "orui $rt,$rs,$hi16"
[all …]
H A Diq10.cpu27 "andoui $rt,$rs,$hi16"
28 (+ OP10_ANDOUI rs rt hi16)
29 (set rt (and rs (or (sll hi16 16) #xFFFF)))
33 "andoui ${rt-rs},$hi16"
34 (+ OP10_ANDOUI rt-rs hi16)
35 (set rt-rs (and rt-rs (or (sll hi16 16) #xFFFF)))
39 "orui $rt,$rs,$hi16"
40 (+ OP10_ORUI rs rt hi16)
41 (set rt (or rs (sll hi16 16)))
45 "orui ${rt-rs},$hi16"
[all …]
H A Diq2000.cpu128 (dnf f-rt "register field Rt" () 20 5)
153 (name f-rd-rt)
157 (subfields f-rd f-rt)
159 (set (ifield f-rd) (ifield f-rd-rt))
160 (set (ifield f-rt) (ifield f-rd-rt))
163 (set (ifield f-rd-rt) (ifield f-rt))
168 (name f-rt-rs)
172 (subfields f-rt f-rs)
174 (set (ifield f-rt) (ifield f-rt-rs))
175 (set (ifield f-rs) (ifield f-rt-rs))
[all …]
/openbsd-src/gnu/usr.bin/binutils/cpu/
H A Diq2000m.cpu24 "andoui $rt,$rs,$hi16"
25 (+ OP_ANDOUI rs rt hi16)
26 (set rt (and rs (or (sll hi16 16) #xFFFF)))
30 "andoui ${rt-rs},$hi16"
31 (+ OP_ANDOUI rt-rs hi16)
32 (set rt-rs (and rt-rs (or (sll hi16 16) #xFFFF)))
36 "orui ${rt-rs},$hi16"
37 (+ OP_ORUI rt-rs hi16)
38 (set rt-rs (or rt-rs (sll hi16 16)))
42 "orui $rt,$rs,$hi16"
[all …]
H A Diq10.cpu27 "andoui $rt,$rs,$hi16"
28 (+ OP10_ANDOUI rs rt hi16)
29 (set rt (and rs (or (sll hi16 16) #xFFFF)))
33 "andoui ${rt-rs},$hi16"
34 (+ OP10_ANDOUI rt-rs hi16)
35 (set rt-rs (and rt-rs (or (sll hi16 16) #xFFFF)))
39 "orui $rt,$rs,$hi16"
40 (+ OP10_ORUI rs rt hi16)
41 (set rt (or rs (sll hi16 16)))
45 "orui ${rt-rs},$hi16"
[all …]
H A Diq2000.cpu145 (dnf f-rt "register field Rt" () 20 5)
170 (name f-rd-rt)
174 (subfields f-rd f-rt)
176 (set (ifield f-rd) (ifield f-rd-rt))
177 (set (ifield f-rt) (ifield f-rd-rt))
180 (set (ifield f-rd-rt) (ifield f-rt))
185 (name f-rt-rs)
189 (subfields f-rt f-rs)
191 (set (ifield f-rt) (ifield f-rt-rs))
192 (set (ifield f-rs) (ifield f-rt-rs))
[all …]
/openbsd-src/gnu/llvm/llvm/lib/Target/Mips/
H A DMipsMTInstrInfo.td45 dag OutOperandList = (outs GPR32Opnd:$rt);
47 string AsmString = !strconcat(instr_asm, "\t$rt");
54 dag InOperandList = (ins GPR32Opnd:$rt, uimm1:$u, uimm3:$sel, uimm1:$h);
55 string AsmString = "mftr\t$rd, $rt, $u, $sel, $h";
62 dag InOperandList = (ins GPR32Opnd:$rt, uimm1:$u, uimm3:$sel, uimm1:$h);
63 string AsmString = "mttr\t$rt, $rd, $u, $sel, $h";
70 dag InOperandList = (ins GPR32Opnd:$rt);
71 string AsmString = "fork\t$rd, $rs, $rt";
117 def MFTC0 : MipsAsmPseudoInst<(outs GPR32Opnd:$rd), (ins COP0Opnd:$rt,
119 "mftc0 $rd, $rt, $sel">, ASE_MT;
[all …]
H A DMicroMips32r6InstrFormats.td68 bits<5> rt;
75 let Inst{25-21} = rt;
81 bits<5> rt;
88 let Inst{25-21} = rt;
104 bits<2> rt;
110 let Inst{9-8} = rt;
117 bits<5> rt;
122 let Inst{25-21} = rt;
144 bits<5> rt;
150 let Inst{25-21} = rt;
[all …]
H A DMicroMipsDSPInstrFormats.td27 bits<5> rt;
30 let Inst{25-21} = rt;
37 bits<5> rt;
41 let Inst{25-21} = rt;
48 bits<5> rt;
53 let Inst{25-21} = rt;
63 bits<5> rt;
66 let Inst{25-21} = rt;
74 bits<5> rt;
79 let Inst{25-21} = rt;
[all …]
/openbsd-src/sys/netinet/
H A Dif_ether.c136 struct rtentry *rt = la->la_rt; in arptimer() local
138 if (rt->rt_expire && rt->rt_expire < uptime) in arptimer()
139 arptfree(rt); /* timer has expired; clear */ in arptimer()
158 arp_rtrequest(struct ifnet *ifp, int req, struct rtentry *rt) in arp_rtrequest() argument
160 struct sockaddr *gate = rt->rt_gateway; in arp_rtrequest()
166 if (ISSET(rt->rt_flags, in arp_rtrequest()
173 if (rt->rt_flags & RTF_CLONING) { in arp_rtrequest()
174 rt->rt_expire = 0; in arp_rtrequest()
177 if ((rt in arp_rtrequest()
340 struct rtentry *rt = NULL; arpresolve() local
555 struct rtentry *rt = NULL; in_arpinput() local
644 arpcache(struct ifnet * ifp,struct ether_arp * ea,struct rtentry * rt) arpcache() argument
730 arpinvalidate(struct rtentry * rt) arpinvalidate() argument
751 arptfree(struct rtentry * rt) arptfree() argument
772 struct rtentry *rt; arplookup() local
809 struct rtentry *rt; arpproxy() local
[all...]
H A Dip_mroute.c150 struct rtentry *rt; in mfc_find() local
158 rt = rtalloc(sintosa(&msin), 0, rtableid); in mfc_find()
160 if (!rtisvalid(rt)) { in mfc_find()
161 rtfree(rt); in mfc_find()
165 if (ISSET(rt->rt_flags, RTF_HOST | RTF_MULTICAST) != in mfc_find()
170 return (rt); in mfc_find()
171 if (rt->rt_ifidx == ifp->if_index) in mfc_find()
172 return (rt); in mfc_find()
173 } while ((rt = rtable_iterate(rt)) != NULL); in mfc_find()
297 struct rtentry *rt; in get_sg_cnt() local
[all …]
/openbsd-src/regress/lib/libcrypto/rc4/
H A Drc4_test.c321 const struct rc4_test *rt; in rc4_test() local
337 rt = &rc4_tests[i]; in rc4_test()
341 RC4_set_key(&key, rt->key_len, rt->key); in rc4_test()
342 RC4(&key, rt->len, rt->in, out); in rc4_test()
344 if (memcmp(rt->out, out, rt->len) != 0) { in rc4_test()
351 RC4_set_key(&key, rt->key_len, rt->key); in rc4_test()
352 RC4(&key, rt->len, rt->out, out); in rc4_test()
354 if (memcmp(rt->in, out, rt->len) != 0) { in rc4_test()
362 if (rt->key_len == 5) { in rc4_test()
364 } else if (rt->key_len == 16) { in rc4_test()
[all …]
/openbsd-src/sys/netinet6/
H A Dnd6.c277 struct rtentry *rt = ln->ln_rt; in nd6_timer() local
279 if (rt->rt_expire && rt->rt_expire <= uptime) in nd6_timer()
280 if (nd6_llinfo_timer(rt, i_am_router)) in nd6_timer()
283 if (rt->rt_expire && rt->rt_expire < expire) in nd6_timer()
284 expire = rt->rt_expire; in nd6_timer()
301 * Returns 1 if `rt' should no longer be used, 0 otherwise.
304 nd6_llinfo_timer(struct rtentry *rt, int i_am_router) in nd6_llinfo_timer() argument
306 struct llinfo_nd6 *ln = (struct llinfo_nd6 *)rt in nd6_llinfo_timer()
489 struct rtentry *rt; nd6_purge() local
506 struct rtentry *rt; nd6_lookup() local
602 struct rtentry *rt; nd6_is_addr_neighbor() local
644 nd6_invalidate(struct rtentry * rt) nd6_invalidate() argument
666 nd6_free(struct rtentry * rt,int i_am_router) nd6_free() argument
707 nd6_nud_hint(struct rtentry * rt) nd6_nud_hint() argument
746 nd6_rtrequest(struct ifnet * ifp,int req,struct rtentry * rt) nd6_rtrequest() argument
971 struct rtentry *rt; nd6_ioctl() local
1038 struct rtentry *rt; nd6_cache_lladdr() local
1269 struct rtentry *rt; nd6_resolve() local
[all...]
H A Dip6_mroute.c250 struct rtentry *rt; in get_sg6_cnt() local
253 rt = mf6c_find(NULL, &req->src.sin6_addr, &req->grp.sin6_addr, in get_sg6_cnt()
255 if (rt == NULL) { in get_sg6_cnt()
262 mf6c = (struct mf6c *)rt->rt_llinfo; in get_sg6_cnt()
269 } while ((rt = rtable_iterate(rt)) != NULL); in get_sg6_cnt()
348 mrt6_rtwalk_mf6csysctl(struct rtentry *rt, void *arg, unsigned int rtableid) in mrt6_rtwalk_mf6csysctl() argument
350 struct mf6c *mf6c = (struct mf6c *)rt->rt_llinfo; in mrt6_rtwalk_mf6csysctl()
362 if (ISSET(rt->rt_flags, RTF_HOST | RTF_MULTICAST) != in mrt6_rtwalk_mf6csysctl()
373 if ((ifp = if_get(rt->rt_ifidx)) == NULL) in mrt6_rtwalk_mf6csysctl()
386 &satosin6(rt->rt_gateway)->sin6_addr) || in mrt6_rtwalk_mf6csysctl()
[all …]
/openbsd-src/regress/sys/net/rtable/
H A Dutil.c112 struct rtentry *rt, *nrt; in route_insert() local
116 rt = calloc(1, sizeof(*rt)); in route_insert()
117 if (rt == NULL) in route_insert()
119 refcnt_init(&rt->rt_refcnt); in route_insert()
131 if ((error = rtable_insert(rid, ndst, mask, NULL, 0, rt)) != 0) { in route_insert()
136 if (nrt != rt) { in route_insert()
137 inet_net_satop(af, rt_key(rt), plen, ip, sizeof(ip)); in route_insert()
140 rtfree(rt); in route_insert()
153 struct rtentry *rt, *nr in route_delete() local
199 struct rtentry *rt; route_lookup() local
243 rtentry_dump(struct rtentry * rt,void * w,unsigned int rid) rtentry_dump() argument
255 rtentry_delete(struct rtentry * rt,void * w,unsigned int rid) rtentry_delete() argument
295 rtref(struct rtentry * rt) rtref() argument
301 rtfree(struct rtentry * rt) rtfree() argument
399 rt_plen2mask(struct rtentry * rt,struct sockaddr_in6 * sa_mask) rt_plen2mask() argument
519 rt_hash(struct rtentry * rt,const struct sockaddr * dst,uint32_t * src) rt_hash() argument
[all...]
/openbsd-src/usr.sbin/eigrpctl/
H A Deigrpctl.c495 struct ctl_rt *rt; in show_topology_msg() local
503 rt = imsg->data; in show_topology_msg()
505 if (res->family != AF_UNSPEC && res->family != rt->af) in show_topology_msg()
507 if (res->as != 0 && res->as != rt->as) in show_topology_msg()
510 if (rt->state & DUAL_STA_ACTIVE_ALL) in show_topology_msg()
512 else if (rt->flags & F_CTL_RT_SUCCESSOR) in show_topology_msg()
514 else if (rt->flags & F_CTL_RT_FSUCCESSOR) in show_topology_msg()
519 if (asprintf(&dstnet, "%s/%d", log_addr(rt->af, &rt->prefix), in show_topology_msg()
520 rt in show_topology_msg()
561 struct ctl_rt *rt; show_topology_detail_msg() local
[all...]
/openbsd-src/gnu/llvm/clang/runtime/
H A DCMakeLists.txt25 set(COMPILER_RT_SRC_ROOT ${LLVM_MAIN_SRC_DIR}/projects/compiler-rt)
38 # Add compiler-rt as an external project.
39 set(COMPILER_RT_PREFIX ${CMAKE_BINARY_DIR}/projects/compiler-rt)
41 set(STAMP_DIR ${CMAKE_CURRENT_BINARY_DIR}/compiler-rt-stamps/)
42 set(BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR}/compiler-rt-bins/)
44 add_custom_target(compiler-rt-clear
47 COMMENT "Clobberring compiler-rt build and stamp directories"
69 ExternalProject_Add(compiler-rt
105 ExternalProject_Add_Step(compiler-rt clean
107 COMMENT "Cleaning compiler-rt..."
[all …]
/openbsd-src/sys/netmpls/
H A Dmpls_input.c55 struct rtentry *rt; in mpls_input() local
167 rt = rtalloc(smplstosa(smpls), RT_RESOLVE, m->m_pkthdr.ph_rtableid); in mpls_input()
168 if (!rtisvalid(rt)) { in mpls_input()
177 rt_mpls = (struct rt_mpls *)rt->rt_llinfo; in mpls_input()
178 if (rt_mpls == NULL || (rt->rt_flags & RTF_MPLS) == 0) { in mpls_input()
188 if (ISSET(rt->rt_flags, RTF_LOCAL)) { in mpls_input()
189 mpls_input_local(rt, m); in mpls_input()
201 ifp = if_get(rt->rt_ifidx); in mpls_input()
207 KASSERT(rt->rt_gateway); in mpls_input()
209 switch(rt->rt_gateway->sa_family) { in mpls_input()
[all …]
/openbsd-src/regress/lib/libcrypto/rmd/
H A Drmd_test.c119 const struct rmd_test *rt; in rmd_test() local
132 rt = &rmd_tests[i]; in rmd_test()
136 RIPEMD160(rt->in, rt->in_len, out); in rmd_test()
137 if (memcmp(rt->out, out, RIPEMD160_DIGEST_LENGTH) != 0) { in rmd_test()
144 if (!EVP_Digest(rt->in, rt->in_len, out, NULL, EVP_ripemd160(), NULL)) { in rmd_test()
149 if (memcmp(rt->out, out, RIPEMD160_DIGEST_LENGTH) != 0) { in rmd_test()
161 in_len = rt->in_len / 2; in rmd_test()
162 if (!EVP_DigestUpdate(hash, rt->in, in_len)) { in rmd_test()
168 if (!EVP_DigestUpdate(hash, rt->in + in_len, in rmd_test()
169 rt->in_len - in_len)) { in rmd_test()
[all …]
/openbsd-src/usr.sbin/nsd/
H A Dradtree.h77 void radix_tree_init(struct radtree* rt);
83 void radix_tree_clear(struct radtree* rt);
89 void radix_tree_delete(struct radtree* rt);
102 struct radnode* radix_insert(struct radtree* rt, uint8_t* k,
111 void radix_delete(struct radtree* rt, struct radnode* n);
120 struct radnode* radix_search(struct radtree* rt, uint8_t* k,
133 int radix_find_less_equal(struct radtree* rt, uint8_t* k, radstrlen_type len,
141 struct radnode* radix_first(struct radtree* rt);
148 struct radnode* radix_last(struct radtree* rt);
198 struct radnode* radname_search(struct radtree* rt, const uint8_t* d,
[all …]
/openbsd-src/gnu/llvm/compiler-rt/include/
H A DCMakeLists.txt60 # Copy compiler-rt headers to the build tree.
68 COMMENT "Copying compiler-rt's ${f}...")
72 add_custom_target(compiler-rt-headers ALL DEPENDS ${out_files})
73 add_dependencies(compiler-rt compiler-rt-headers)
74 set_target_properties(compiler-rt-headers PROPERTIES FOLDER "Compiler-RT Misc")
78 COMPONENT compiler-rt-headers
83 COMPONENT compiler-rt-headers
89 COMPONENT compiler-rt-headers
95 COMPONENT compiler-rt-headers
100 COMPONENT compiler-rt-headers
[all …]

12345678910>>...22