| /onnv/onnv-gate/usr/src/uts/common/inet/ip/ |
| ip6_ire.c | 63 #define IS_DEFAULT_ROUTE_V6(ire) \ 64 (((ire)->ire_type & IRE_DEFAULT) || \ 65 (((ire)->ire_type & IRE_INTERFACE) && \ 66 (IN6_IS_ADDR_UNSPECIFIED(&(ire)->ire_addr_v6)))) 77 * Initialize the ire that is specific to IPv6 part and call 82 ire_init_v6(ire_t *ire, const in6_addr_t *v6addr, const in6_addr_t *v6mask, 89 * Reject IRE security attmakeribute creation/initialization 97 ire->ire_addr_v6 = *v6addr; 99 ire->ire_gateway_addr_v6 = *v6gateway; 104 ire->ire_gateway_addr_v6 = ire->ire_addr_v6 189 ire_t *ire; local 234 ire_t *ire; local 481 (char *), "ire", (void *), ire); local 504 ire_t *ire; local 863 ire_t *ire; local 903 ire_t *ire = NULL; local 1006 ire_t *ire = NULL; local 1103 ire_t *ire; local 1444 ire_t *ire; local [all...] |
| ip_ire.c | 85 * - bucket lock of the forwarding table in which is ire stored. 122 * ire_dep_parent (To next IRE in recursive lookup chain) 152 * Each irb_t - ire bucket structure has a lock to protect 164 * The ire_refhold/ire_refrele functions operate on the ire which increments/ 165 * decrements the reference count, ire_refcnt, atomically on the ire. 166 * ire_refcnt is modified only using those functions. Operations on the IRE 169 * CREATE an ire with reference count initialized to 1. 171 * ADDITION of an ire holds the bucket lock, checks for duplicates 172 * and then adds the ire. ire_add returns the ire afte 418 ire_t *ire; local 631 ire_t *ire; local 752 ire_t *ire; local 958 ire_t *ire; local 990 ire_t *ire; local 1370 ire_t *ire; local 1664 (char *), "ire", (void *), ire); local 1729 ire_t *ire; local 2039 ire_t *ire; local 2232 ire_t *ire; local 2611 ire_t *ire; local 2629 ire_t *ire; local 2647 ire_t *ire = ill->ill_ire_multicast; local 2729 ire_t *ire; local 2897 ire_t *ire = ires[0]; local 3393 ire_t *ire; local [all...] |
| ip_ftable.c | 76 #define IS_DEFAULT_ROUTE(ire) \ 77 (((ire)->ire_type & IRE_DEFAULT) || \ 78 (((ire)->ire_type & IRE_INTERFACE) && ((ire)->ire_addr == 0))) 96 ire_t *ire; local 145 ire = margs.ift_best_ire; 150 ASSERT(ire != NULL); 152 DTRACE_PROBE2(ire__found, ire_ftable_args_t *, &margs, ire_t *, ire); 161 if (ire->ire_bucket->irb_ire_cnt > 1 && !(flags & MATCH_IRE_GW)) { 164 IS_DEFAULT_ROUTE(ire))) { 222 ire_t *ire; local 341 ire_t *ire; local 477 ire_t *ire; local 517 ire_t *ire = NULL; local 661 ire_t *ire; local 805 ire_t *ire, *maybe_ire = NULL; local 983 ire_t *ire; local 1191 ire_t *ire; local 1522 ire_t *ire; local [all...] |
| ip_rts.c | 91 static int rts_getmetrics(ire_t *ire, rt_metrics_t *metrics); 92 static mblk_t *rts_rtmget(mblk_t *mp, ire_t *ire, ire_t *ifire, 94 static void rts_setmetrics(ire_t *ire, uint_t which, rt_metrics_t *metrics); 183 * Takes an ire and sends an ack to all the routing sockets. This 189 ip_rts_rtmsg(int type, ire_t *ire, int error, ip_stack_t *ipst) 197 if (ire == NULL) 199 ASSERT(ire->ire_ipversion == IPV4_VERSION || 200 ire->ire_ipversion == IPV6_VERSION); 202 ASSERT(!(ire->ire_type & IRE_IF_CLONE)); 204 if (ire->ire_flags & RTF_SETSRC 286 ire_t *ire = NULL; local 987 ire_t *ire; local 1047 ire_t *ire; local [all...] |
| ip6_output.c | 109 ire_t *ire; local 153 ire = ip_select_route_v6(&firsthop, ixa, NULL, &setsrc, &error, 155 ASSERT(ire != NULL); /* IRE_NOROUTE if none found */ 164 if (ire->ire_flags & (RTF_BLACKHOLE|RTF_REJECT)) { 169 ire->ire_ob_pkt_count++; 172 error = (ire->ire_sendfn)(ire, mp, ip6h, ixa, 178 nce = ire_to_nce(ire, INADDR_ANY, &ip6h->ip6_dst); 189 nce1 = ire_handle_condemned_nce(nce, ire, NULL, ip6h, B_TRUE); 193 /* Try finding a better IRE */ 1149 ire_t *ire; local [all...] |
| ip_output.c | 139 ire_t *ire; local 162 ire = ixa->ixa_ire; 165 * If the ULP says the (old) IRE resulted in reachability we 166 * record this before determine whether to use a new IRE. 170 ire->ire_badcnt = 0; 176 * - the cached ire being deleted (by means of the special 178 * - A potentially better ire being added (ire_generation being 180 * - A deletion of the nexthop ire that was used when we did the 182 * - An addition of a potentially better nexthop ire. 187 * since we ensure that each time we set ixa_ire to such an IRE w 447 ire_t *ire; local 531 ire_t *ire = ixa->ixa_ire; local 808 ire_t *ire; local 2208 ire_t *ire; local 2397 ire_t *ire = ixa->ixa_ire; local [all...] |
| ip6_if.c | 391 * If ire_arg is set, then we return the held IRE in that location. 400 ire_t *ire, *nire; local 455 ire = ire_ftable_lookup_v6(dst_addr, 0, 0, IRE_LOOPBACK, 458 if (ire != NULL) { 459 ire_refrele(ire); 463 ip1dbg(("ip_rt_add_v6: 0x%p creating IRE 0x%x" 467 ire = ire_create_v6( 478 if (ire == NULL) { 485 ire->ire_setsrc_addr_v6 = *src_addr; 487 nire = ire_add(ire); 921 ire_t *ire = NULL; local 2691 ire_t *ire; local 2813 ire_t *ire; local [all...] |
| ip_input.c | 246 * We do ire caching from one iteration to 558 ire_t *ire; local 775 ire = ire_multicast(ill); 778 ire = ire_route_recursive_v4(nexthop, 0, NULL, 784 ASSERT(ire != NULL); 787 rtc->rtc_ire = ire; 792 ire = rtc->rtc_ire; 796 ire = ire_multicast(ill); 799 ire = ire_route_recursive_dstonly_v4(nexthop, 803 ASSERT(ire != NULL) [all...] |
| ip6_input.c | 243 * We do ire caching from one iteration to 474 * We update ira_ruifindex if we find the IRE on the upper interface. 481 ire_t *ire; local 484 ire = ire_route_recursive_v6(nexthop, 0, ill, ALL_ZONES, ira->ira_tsl, 486 if (!(ire->ire_flags & (RTF_REJECT|RTF_BLACKHOLE)) || 488 return (ire); 491 * When we are using IMP we need to look for an IRE on both the 497 return (ire); 501 ire_refrele(ire); 502 ire = ire_route_recursive_v6(nexthop, 0, ill, ALL_ZONES, ira->ira_tsl 516 ire_t *ire; local [all...] |
| tnet.c | 62 * Some notes on the Trusted Solaris IRE gateway security attributes: 86 * In Trusted mode, all of the IRE entries (except LOCAL/LOOPBACK/BROADCAST/ 89 * and associated with the IRE during the time of the IRE creation. The 119 * The fields of the tsol_ire_gw_secattr_t used from within the IRE are: 129 * configured for the IRE. 134 * IREs. If this is non-NULL, the prefix IRE has been associated 383 * - A prefix IRE that points to an igsa_gc contributes a reference 1961 ire_t *ire; local [all...] |
| tn_ipopt.c | 472 ire_t *ire; local 495 ire = ire_route_recursive_v4(dst, 0, NULL, zoneid, tsl, 497 ASSERT(ire != NULL); 498 if (ire->ire_flags & (RTF_REJECT|RTF_BLACKHOLE)) { 500 ire_refrele(ire); 507 if (ire->ire_type & (IRE_BROADCAST | IRE_LOCAL | IRE_LOOPBACK | 509 ire_refrele(ire); 523 ire_refrele(ire); 526 ire_refrele(ire); 974 ire_t *ire; local [all...] |
| ip_if.c | 425 * ill_down will arrange to blow off any IRE's dependent on this 434 * Walk all CONNs that can have a reference on an ire or nce for this 723 * ipif/ill/ire refcnts to drop to zero in bringing down an ipif. 5392 ire_t *ire, *nire; local 5939 ire_t *ire = NULL; local 7859 ire_t *ire; local 7993 ire_t *ire; local 8073 ire_t *ire = NULL; local 8404 ire_t *ire = NULL; local 10530 ire_t *ire; local 13585 ire_t *ire, *nire; local 14015 ire_t *ire; local 14555 ire_t *ire; local 14621 ire_t *ire; local 15163 ire_t *ire; local [all...] |
| ip6.c | 1009 ire_t *ire, *nire; local 1091 * Note: this merely says that there is some IRE which matches that 1106 ip_drop_input("ipv6IfIcmpInBadRedirects - ire", mp, ill); 1147 ire = ire_create_v6( 1180 ire = ire_create_v6 1323 ire_t *ire; local 1964 ire_t *ire; local [all...] |
| ip.c | 248 * Simiarly lookup of an ire by a thread also returns a refheld ire. 249 * In addition ipif's and ill's referenced by the ire are also indirectly 270 * - ire_lock to protect some of the fields of the ire, IRE tables 407 * irb_refcnt, after the node is added to the tree. The ire itself is 417 * IRE dependencies - In some cases we hold ips_ire_dep_lock across ire_refrele 614 * IRE type Shared/exclusive 2789 ire_t *ire, *nire; local 2945 ire_t *ire; local 3527 ire_t *ire = NULL; local 3868 ire_t *ire; local 5743 ire_t *ire; local 5765 ire_t *ire; local 6418 ire_t *ire; local 6538 ire_t *ire; local 9510 ire_t *ire; local 13035 ire_t *ire; local 15266 ire_t *ire; local 15289 ire_t *ire; local [all...] |
| ip_attr.c | 575 * The caller needs to release any references on the pointers inside the ire 1125 * Function to help release any IRE, NCE, or DCEs that 1133 ire_t *ire; local 1137 ire = ixa->ixa_ire; 1141 if (ire != NULL && IRE_IS_CONDEMNED(ire)) { 1142 ire_refrele_notr(ire); 1143 ire = ire_blackhole(ixa->ixa_ipst, 1145 ASSERT(ire != NULL); 1147 ire_refhold_notr(ire); [all...] |
| ip_netinfo.c | 1071 ire_t *ire; local 1079 ire = ire_route_recursive_v6(&sin6->sin6_addr, 0, NULL, 1083 ire = ire_route_recursive_v4(sin->sin_addr.s_addr, 0, NULL, 1087 ASSERT(ire != NULL); 1093 if (ire->ire_flags & (RTF_REJECT|RTF_BLACKHOLE)) { 1094 ire_refrele(ire); 1098 nexthop_ire = ire_nexthop(ire); 1100 ire_refrele(ire); 1105 ire_refrele(ire); 1120 ire_refrele(ire); [all...] |
| ip_mroute.c | 2484 ire_t *ire; local 2614 ire_t *ire; local [all...] |
| ipmp.c | [all...] |
| conn_opt.c | 1220 ire_t *ire; local 1632 ire_t *ire; local [all...] |
| ip_ndp.c | 826 ire_t *ire; local 833 ire = ire_ftable_lookup_v6(&ipv6_all_zeros, &ipv6_all_zeros, 836 if (ire != NULL) { 837 ip_rts_rtmsg(RTM_DELETE, ire, 0, ipst); 838 ire_delete(ire); 839 ire_refrele(ire); 871 * back to ip this time ire will be added. [all...] |
| /onnv/onnv-gate/usr/src/cmd/mdb/common/modules/genunix/ |
| net.c | 854 get_ifname(const ire_t *ire, char *intf) 859 if (ire->ire_ill != NULL) { 861 (uintptr_t)ire->ire_ill) == -1) 872 get_ireflags(const ire_t *ire, char *flags) 876 if (ire->ire_flags & RTF_INDIRECT) 878 else if (ire->ire_type & IRE_OFFLINK) 882 if (ire->ire_type & IRE_IF_CLONE) 884 else if (ire->ire_ipversion == IPV4_VERSION) { 885 if (ire->ire_mask == IP_HOST_MASK) 888 if (IN6_ARE_ADDR_EQUAL(&ire->ire_mask_v6, &ipv6_all_ones) 915 const ire_t *ire = walk_data; local 994 const ire_t *ire = walk_data; local [all...] |
| /onnv/onnv-gate/usr/src/uts/common/io/ib/mgt/ibcm/ |
| ibcm_arp_link.c | 109 ire_t *ire = NULL; local 144 * get an ire for the destination adress. 150 ire = ire_route_recursive_v4(dst_addr->un.ip4addr, 0, NULL, 154 ASSERT(ire != NULL); 155 if (ire->ire_flags & (RTF_REJECT|RTF_BLACKHOLE)) { 161 ill = ire_nexthop_ill(ire); 175 wqnp->gateway.un.ip4addr = ire->ire_gateway_addr; 176 wqnp->netmask.un.ip4addr = ire->ire_mask; 197 * get an ire for the destination adress. 203 ire = ire_route_recursive_v6(&dst_addr->un.ip6addr, 0, NULL [all...] |
| /onnv/onnv-gate/usr/src/lib/libast/common/misc/ |
| glob.c | 303 regex_t* ire; local 505 ire = gp->gl_ignorei; 508 ire = 0; 519 ire = gp->gl_ignore; 527 if (ire && !regexec(ire, name, 0, NiL, 0))
|
| /onnv/onnv-gate/usr/src/uts/common/inet/ |
| ip_ire.h | 83 * match parameter definitions for IRE lookup routines. 86 #define MATCH_IRE_TYPE 0x0001 /* Match IRE type */ 87 #define MATCH_IRE_MASK 0x0002 /* Match IRE mask */ 89 #define MATCH_IRE_GW 0x0008 /* Match IRE gateway */ 90 #define MATCH_IRE_ILL 0x0010 /* Match IRE on the ill */ 139 extern int ire_atomic_start(irb_t *irb_ptr, ire_t *ire); 140 extern void ire_atomic_end(irb_t *irb_ptr, ire_t *ire); 274 extern ire_t *ire_route_recursive_impl_v4(ire_t *ire, ipaddr_t, uint_t, 277 extern ire_t *ire_route_recursive_impl_v6(ire_t *ire, const in6_addr_t *,
|
| /onnv/onnv-gate/usr/src/cmd/mdb/common/modules/ip/ |
| ip.c | 732 ire_t ire; local 734 if (mdb_vread(&ire, sizeof (ire), wsp->walk_addr) == -1) { 735 mdb_warn("can't read ire at %p", wsp->walk_addr); 740 if ((wsp->walk_data != NULL) && (wsp->walk_data != ire.ire_ipst)) 743 return (wsp->walk_callback(wsp->walk_addr, &ire, wsp->walk_cbdata)); 756 ire_t ire; local 763 if (mdb_vread(&ire, sizeof (ire), wsp->walk_addr) == -1) { 764 mdb_warn("can't read ire at %p", wsp->walk_addr) 1331 ire(uintptr_t addr, uint_t flags, int argc, const mdb_arg_t *argv) function 1334 ire_t ire; local [all...] |