Searched refs:lastport (Results 1 – 2 of 2) sorted by relevance
1641 uint16_t lport = 0, first, last, *lastport, rand_port; in in6_pcbsetport() local1687 lastport = &pcbinfo->ipi_lasthi; in in6_pcbsetport()1700 lastport = &pcbinfo->ipi_lastlow; in in6_pcbsetport()1704 lastport = &pcbinfo->ipi_lastport; in in6_pcbsetport()1719 *lastport = first - (rand_port % (first - last)); in in6_pcbsetport()1727 *lastport = first + (rand_port % (first - last)); in in6_pcbsetport()1753 --*lastport; in in6_pcbsetport()1754 if (*lastport > first || *lastport < last) { in in6_pcbsetport()1755 *lastport = first; in in6_pcbsetport()1758 ++*lastport; in in6_pcbsetport()[all …]
754 unsigned short *lastport; in in_pcbbind() local1031 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 …]