Home
last modified time | relevance | path

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

/xnu-8792.41.9/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-8792.41.9/bsd/netinet/
H A Din_pcb.c754 unsigned short *lastport; in in_pcbbind() local
1031 lastport = &pcbinfo->ipi_lasthi; in in_pcbbind()
1044 lastport = &pcbinfo->ipi_lastlow; in in_pcbbind()
1048 lastport = &pcbinfo->ipi_lastport; in in_pcbbind()
1070 *lastport = in in_pcbbind()
1085 --*lastport; in in_pcbbind()
1086 if (*lastport > first || *lastport < last) { in in_pcbbind()
1087 *lastport = first; in in_pcbbind()
1089 lport = htons(*lastport); in in_pcbbind()
1131 *lastport = in in_pcbbind()
[all …]