Home
last modified time | relevance | path

Searched refs:lastport (Results 1 – 2 of 2) sorted by relevance

/xnu-8020.140.41/bsd/netinet6/
H A Din6_src.c1549 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()
[all …]
/xnu-8020.140.41/bsd/netinet/
H A Din_pcb.c748 unsigned short *lastport; in in_pcbbind() local
1025 lastport = &pcbinfo->ipi_lasthi; in in_pcbbind()
1038 lastport = &pcbinfo->ipi_lastlow; in in_pcbbind()
1042 lastport = &pcbinfo->ipi_lastport; in in_pcbbind()
1064 *lastport = in in_pcbbind()
1079 --*lastport; in in_pcbbind()
1080 if (*lastport > first || *lastport < last) { in in_pcbbind()
1081 *lastport = first; in in_pcbbind()
1083 lport = htons(*lastport); in in_pcbbind()
1125 *lastport = in in_pcbbind()
[all …]