in_pcbbind: Rearrange local port bind/select code path.
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Wed, 19 Mar 2014 11:52:08 +0000 (19:52 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Wed, 19 Mar 2014 11:56:59 +0000 (19:56 +0800)
commit3fde8eade952feccd3445cde2f59599171201ccd
tree2894111d951a0470a51711900321a15f315b4624
parent2f8763c17127540efcfcbbda603fee9cbd18c5fa
in_pcbbind: Rearrange local port bind/select code path.

- Group local port binding logic together.
- Group local port auto-selecting logic together and factor out
  in_pcbsetlport().

This paves way for the upcoming port token splitting.
sys/netinet/in_pcb.c