Home
last modified time | relevance | path

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

/xnu-10063.101.15/bsd/netinet6/
H A Din6_src.c1636 uint16_t lport = 0, first, last, *lastport, rand_port; in in6_pcbsetport() local
1682 lastport = &pcbinfo->ipi_lasthi; in in6_pcbsetport()
1695 lastport = &pcbinfo->ipi_lastlow; in in6_pcbsetport()
1699 lastport = &pcbinfo->ipi_lastport; in in6_pcbsetport()
1714 *lastport = first - (rand_port % (first - last)); in in6_pcbsetport()
1722 *lastport = first + (rand_port % (first - last)); in in6_pcbsetport()
1748 --*lastport; in in6_pcbsetport()
1749 if (*lastport > first || *lastport < last) { in in6_pcbsetport()
1750 *lastport = first; in in6_pcbsetport()
1753 ++*lastport; in in6_pcbsetport()
[all …]
/xnu-10063.101.15/bsd/netinet/
H A Din_pcb.c836 unsigned short *lastport; in in_pcbbind() local
1134 lastport = &pcbinfo->ipi_lasthi; in in_pcbbind()
1147 lastport = &pcbinfo->ipi_lastlow; in in_pcbbind()
1151 lastport = &pcbinfo->ipi_lastport; in in_pcbbind()
1173 *lastport = in in_pcbbind()
1189 --*lastport; in in_pcbbind()
1190 if (*lastport > first || *lastport < last) { in in_pcbbind()
1191 *lastport = first; in in_pcbbind()
1193 lport = htons(*lastport); in in_pcbbind()
1235 *lastport = in in_pcbbind()
[all …]