Skip to content

Conversation

@jinhao2
Copy link
Contributor

@jinhao2 jinhao2 commented Jan 5, 2019

Bind( Xport) will inhash the struct inpcb, tcp_connect() also inhashes the inp. This inp inhashes twice.
If in_pcbconnect_setup() using the input local port, which means inp had already been inhashed when binding the port, inp will be rehashed instead of inhashing.

@whl739 whl739 merged commit 85fd2e4 into F-Stack:master Jan 16, 2019
jfb8856606 added a commit that referenced this pull request Mar 14, 2019
jfb8856606 pushed a commit that referenced this pull request Jun 25, 2019
support binding one specific port before connecting to server.
jfb8856606 added a commit that referenced this pull request Jun 25, 2019
jfb8856606 added a commit that referenced this pull request Jun 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants