IRE_LOOPBACK
(IRE_INTERFACE|IRE_LOOPBACK)) != 0), ifp);
{ "LOOPBACK", IRE_LOOPBACK, IRE_LOOPBACK },
#define IRE_ONLINK (IRE_IF_ALL|IRE_LOCAL|IRE_LOOPBACK| \
!(ixa->ixa_ire->ire_type & (IRE_LOCAL | IRE_LOOPBACK)) &&
!(ixa->ixa_ire->ire_type & (IRE_LOCAL | IRE_LOOPBACK)) &&
if (ill->ill_isv6 == B_FALSE || ill->ill_net_type == IRE_LOOPBACK)
ill->ill_net_type == IRE_LOOPBACK)
{ IRE_LOOPBACK, "LOOPBACK" },
ire = ire_ftable_lookup_v4(addr, 0, 0, IRE_LOCAL | IRE_LOOPBACK,
ire = ire_ftable_lookup_v6(addr, NULL, NULL, IRE_LOCAL | IRE_LOOPBACK,
(prev_ire->ire_type & (IRE_LOCAL|IRE_LOOPBACK)) ||
(IRE_LOCAL|IRE_LOOPBACK), NULL, ira->ira_zoneid, NULL,
if (src_ire != NULL && (src_ire->ire_type & (IRE_LOCAL|IRE_LOOPBACK))) {
if (!(ire->ire_type & (IRE_LOOPBACK|IRE_LOCAL|IRE_MULTICAST))) {
!(ire->ire_type & (IRE_LOCAL|IRE_LOOPBACK|IRE_MULTICAST)) &&
uinfo->iulp_loopback = (ire->ire_type & IRE_LOOPBACK) != 0;
if (ire->ire_type & (IRE_LOCAL|IRE_LOOPBACK)) {
(prev_ire->ire_type & (IRE_LOCAL|IRE_LOOPBACK)) ||
(IRE_LOCAL|IRE_LOOPBACK), ill, ira->ira_zoneid, NULL,
if (src_ire != NULL && (src_ire->ire_type & (IRE_LOCAL|IRE_LOOPBACK))) {
if (!(ire->ire_type & (IRE_LOOPBACK|IRE_LOCAL|IRE_MULTICAST))) {
!(ire->ire_type & (IRE_LOCAL|IRE_LOOPBACK|IRE_MULTICAST)) &&
uinfo->iulp_loopback = (ire->ire_type & IRE_LOOPBACK) != 0;
ipif->ipif_ire_type = IRE_LOOPBACK;
if (ill->ill_net_type != IRE_LOOPBACK)
ipif->ipif_ire_type != IRE_LOOPBACK) {
if ((ipif != NULL) && (ipif->ipif_ire_type == IRE_LOOPBACK)) {
ire = ire_ftable_lookup_v6(dst_addr, 0, 0, IRE_LOOPBACK,
if (type == IRE_LOOPBACK) {
type = IRE_INTERFACE | IRE_LOCAL | IRE_LOOPBACK;
if (gw_ire->ire_type & (IRE_LOCAL|IRE_LOOPBACK)) {
if (ipif->ipif_ire_type == IRE_LOOPBACK) {
IRE_LOOPBACK, ill_match, ALL_ZONES, NULL,
case IRE_LOOPBACK:
uint_t maskoff = (IRE_LOCAL|IRE_LOOPBACK);
case IRE_LOOPBACK:
if (ire->ire_type & IRE_LOOPBACK)
uint_t maskoff = (IRE_LOCAL|IRE_LOOPBACK|IRE_BROADCAST);
ASSERT(ipif->ipif_ill->ill_net_type == IRE_LOOPBACK ||
ASSERT(ire_type == IRE_LOOPBACK || IAM_WRITER_ILL(ill));
if ((err = ipif_insert(ipif, ire_type != IRE_LOOPBACK)) != 0) {
if (ill->ill_net_type != IRE_LOOPBACK) {
if (ill->ill_net_type != IRE_LOOPBACK)
if (ill->ill_net_type == IRE_LOOPBACK && id == 0)
ire_type = IRE_LOOPBACK;
if (ill->ill_net_type == IRE_LOOPBACK)
ipif->ipif_ire_type = IRE_LOOPBACK;
if (ill->ill_net_type != IRE_LOOPBACK)
ipif->ipif_ire_type != IRE_LOOPBACK &&
ill->ill_net_type = IRE_LOOPBACK;
ipif = ipif_allocate(ill, 0L, IRE_LOOPBACK, B_TRUE, B_TRUE, NULL);
if (ill->ill_net_type != IRE_LOOPBACK)
if ((ipif != NULL) && (ipif->ipif_ire_type == IRE_LOOPBACK)) {
ire = ire_ftable_lookup_v4(dst_addr, 0, 0, IRE_LOOPBACK,
if (type == IRE_LOOPBACK) {
type = IRE_INTERFACE | IRE_LOCAL | IRE_LOOPBACK;
if (gw_ire->ire_type & (IRE_LOCAL|IRE_LOOPBACK)) {
if (ipif->ipif_ire_type == IRE_LOOPBACK) {
IRE_LOOPBACK, ill_match, ALL_ZONES, NULL,
IRE_LOCAL|IRE_LOOPBACK, NULL, zoneid, NULL,
IRE_LOCAL|IRE_LOOPBACK, NULL, zoneid, NULL,
IRE_LOCAL|IRE_LOOPBACK, NULL, zoneid,
if (ipif->ipif_id == 0 && ill->ill_net_type == IRE_LOOPBACK) {
if (ipif->ipif_id == 0 && ill->ill_net_type == IRE_LOOPBACK) {
if (ire->ire_type & IRE_LOOPBACK)
ire_type = (IRE_ONLINK | IRE_OFFLINK) & ~(IRE_LOCAL|IRE_LOOPBACK);
if (ire->ire_type & (IRE_LOCAL|IRE_LOOPBACK)) {
case IRE_LOOPBACK:
case IRE_LOOPBACK:
if ((type & (IRE_LOCAL | IRE_LOOPBACK | IRE_BROADCAST |
} else if (ill->ill_net_type == IRE_LOOPBACK) {
if (!(ire->ire_type & (IRE_LOCAL | IRE_LOOPBACK)))
(ixa->ixa_ire->ire_type & (IRE_LOCAL | IRE_LOOPBACK)) ||
!(ixa->ixa_ire->ire_type & (IRE_LOCAL | IRE_LOOPBACK)) &&
(ixa->ixa_ire->ire_type & (IRE_LOCAL | IRE_LOOPBACK)) ||
!(ixa->ixa_ire->ire_type & (IRE_LOCAL | IRE_LOOPBACK)) &&
ire_type &= ~(IRE_LOCAL|IRE_LOOPBACK|IRE_BROADCAST);
ire_type &= ~(IRE_LOCAL|IRE_LOOPBACK);
if (!(type & (IRE_LOCAL|IRE_LOOPBACK))) {
if (!(type & (IRE_LOCAL|IRE_LOOPBACK))) {
IRE_LOCAL | IRE_LOOPBACK, NULL, zoneid,
&gw_addr_v6, IRE_LOCAL | IRE_LOOPBACK, NULL,
(IRE_LOCAL|IRE_LOOPBACK))) {
(IRE_LOCAL|IRE_LOOPBACK))) {
if (ire->ire_type & (IRE_LOCAL | IRE_LOOPBACK))
if (ire->ire_type & (IRE_LOCAL | IRE_LOOPBACK |
if (ire->ire_type & (IRE_BROADCAST | IRE_LOCAL | IRE_LOOPBACK |
(ire->ire_type & (IRE_LOCAL | IRE_LOOPBACK | IRE_BROADCAST |
ire = ire_ftable_lookup_v4(in4, 0, 0, IRE_LOCAL|IRE_LOOPBACK,
ire = ire_ftable_lookup_v6(addr, 0, 0, IRE_LOCAL|IRE_LOOPBACK,
if (ip_type_v4(addr, ipst) != IRE_LOOPBACK) {