Lines Matching refs:lastport
1549 uint16_t lport = 0, first, last, *lastport, rand_port; in in6_pcbsetport() local
1595 lastport = &pcbinfo->ipi_lasthi; in in6_pcbsetport()
1608 lastport = &pcbinfo->ipi_lastlow; in in6_pcbsetport()
1612 lastport = &pcbinfo->ipi_lastport; in in6_pcbsetport()
1627 *lastport = first - (rand_port % (first - last)); in in6_pcbsetport()
1635 *lastport = first + (rand_port % (first - last)); in in6_pcbsetport()
1661 --*lastport; in in6_pcbsetport()
1662 if (*lastport > first || *lastport < last) { in in6_pcbsetport()
1663 *lastport = first; in in6_pcbsetport()
1666 ++*lastport; in in6_pcbsetport()
1667 if (*lastport < first || *lastport > last) { in in6_pcbsetport()
1668 *lastport = first; in in6_pcbsetport()
1671 lport = htons(*lastport); in in6_pcbsetport()