Lines Matching defs:tme

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