Lines Matching refs:tme

773 	tsol_mlp_entry_t *tme, *tme2, *newent;  in mlp_add_del()  local
789 for (tme = mlpl->mlpl_first; tme != NULL; tme = tme->mlpe_next) { in mlp_add_del()
791 if (tme->mlpe_mlp.mlp_port > port) in mlp_add_del()
794 if (tme->mlpe_mlp.mlp_port == port && in mlp_add_del()
795 tme->mlpe_mlp.mlp_ipp >= proto) in mlp_add_del()
798 if (tme->mlpe_mlp.mlp_ipp == proto && in mlp_add_del()
799 tme->mlpe_mlp.mlp_port_upper >= port) in mlp_add_del()
805 for (tme2 = tme; tme2 != NULL; tme2 = tme2->mlpe_next) { in mlp_add_del()
825 newent->mlpe_next = tme; in mlp_add_del()
826 if (tme == NULL) { in mlp_add_del()
830 tme2 = tme->mlpe_prev; in mlp_add_del()
831 tme->mlpe_prev = newent; in mlp_add_del()
845 if ((tme2 = tme->mlpe_prev) == NULL) in mlp_add_del()
846 mlpl->mlpl_first = tme->mlpe_next; in mlp_add_del()
848 tme2->mlpe_next = tme->mlpe_next; in mlp_add_del()
849 if ((tme2 = tme->mlpe_next) == NULL) in mlp_add_del()
850 mlpl->mlpl_last = tme->mlpe_prev; in mlp_add_del()
852 tme2->mlpe_prev = tme->mlpe_prev; in mlp_add_del()
853 newent = tme; in mlp_add_del()
893 tsol_mlp_entry_t *tme, *tme2, *tmnext; in mlp_flush() local
896 for (tme = mlpl->mlpl_first; tme != NULL; tme = tmnext) { in mlp_flush()
897 tmnext = tme->mlpe_next; in mlp_flush()
898 if (zoneid == ALL_ZONES || tme->mlpe_zoneid == zoneid) { in mlp_flush()
899 if ((tme2 = tme->mlpe_prev) == NULL) in mlp_flush()
907 kmem_free(tme, sizeof (*tme)); in mlp_flush()
923 tsol_mlp_entry_t *tme; in tnmlp() local
975 for (tme = mlpl->mlpl_first; tme != NULL; in tnmlp()
976 tme = tme->mlpe_next) { in tnmlp()
978 tme->mlpe_zoneid != tsme.tsme_zoneid) in tnmlp()
980 if (tme->mlpe_mlp.mlp_ipp >= tsme.tsme_mlp.mlp_ipp && in tnmlp()
981 tme->mlpe_mlp.mlp_port == tsme.tsme_mlp.mlp_port) in tnmlp()
983 if (tme->mlpe_mlp.mlp_port > tsme.tsme_mlp.mlp_port) in tnmlp()
986 if (tme == NULL) { in tnmlp()
989 tsme.tsme_zoneid = tme->mlpe_zoneid; in tnmlp()
990 tsme.tsme_mlp = tme->mlpe_mlp; in tnmlp()
1281 tsol_mlp_entry_t *tme; in tsol_next_port() local
1288 for (tme = zone->zone_mlps.mlpl_first; tme != NULL; in tsol_next_port()
1289 tme = tme->mlpe_next) { in tsol_next_port()
1290 if (proto == tme->mlpe_mlp.mlp_ipp && in tsol_next_port()
1291 newport >= tme->mlpe_mlp.mlp_port && in tsol_next_port()
1292 newport <= tme->mlpe_mlp.mlp_port_upper) in tsol_next_port()
1294 tme->mlpe_mlp.mlp_port_upper + 1 : in tsol_next_port()
1295 tme->mlpe_mlp.mlp_port - 1; in tsol_next_port()
1301 for (tme = shared_mlps.mlpl_first; tme != NULL; in tsol_next_port()
1302 tme = tme->mlpe_next) { in tsol_next_port()
1303 if (proto == tme->mlpe_mlp.mlp_ipp && in tsol_next_port()
1304 newport >= tme->mlpe_mlp.mlp_port && in tsol_next_port()
1305 newport <= tme->mlpe_mlp.mlp_port_upper) in tsol_next_port()
1307 tme->mlpe_mlp.mlp_port_upper + 1 : in tsol_next_port()
1308 tme->mlpe_mlp.mlp_port - 1; in tsol_next_port()
1333 tsol_mlp_entry_t *tme; in tsol_mlp_port_type() local
1336 tme = NULL; in tsol_mlp_port_type()
1339 for (tme = zone->zone_mlps.mlpl_first; tme != NULL; in tsol_mlp_port_type()
1340 tme = tme->mlpe_next) { in tsol_mlp_port_type()
1341 if (proto == tme->mlpe_mlp.mlp_ipp && in tsol_mlp_port_type()
1342 port >= tme->mlpe_mlp.mlp_port && in tsol_mlp_port_type()
1343 port <= tme->mlpe_mlp.mlp_port_upper) in tsol_mlp_port_type()
1348 if (tme == NULL) { in tsol_mlp_port_type()
1356 tme = NULL; in tsol_mlp_port_type()
1359 for (tme = shared_mlps.mlpl_first; tme != NULL; in tsol_mlp_port_type()
1360 tme = tme->mlpe_next) { in tsol_mlp_port_type()
1361 if (proto == tme->mlpe_mlp.mlp_ipp && in tsol_mlp_port_type()
1362 port >= tme->mlpe_mlp.mlp_port && in tsol_mlp_port_type()
1363 port <= tme->mlpe_mlp.mlp_port_upper) in tsol_mlp_port_type()
1368 if (tme == NULL) { in tsol_mlp_port_type()
1389 tsol_mlp_entry_t *tme; in tsol_mlp_findzone() local
1397 for (tme = shared_mlps.mlpl_first; tme != NULL; tme = tme->mlpe_next) { in tsol_mlp_findzone()
1398 if (proto == tme->mlpe_mlp.mlp_ipp && in tsol_mlp_findzone()
1399 port >= tme->mlpe_mlp.mlp_port && in tsol_mlp_findzone()
1400 port <= tme->mlpe_mlp.mlp_port_upper) in tsol_mlp_findzone()
1403 zoneid = tme == NULL ? ALL_ZONES : tme->mlpe_zoneid; in tsol_mlp_findzone()