The protocols marked with PR_CONNREQUIRED can never go through pr_connect
after being disconnected. This is a tiny improvement of fdb987bebddf0.
Details
Details
- Reviewers
markj pouria - Group Reviewers
network - Commits
- rG202370905f11: inpcb: apply smr_advance(9)/smr_wait(9) trick only to reusable sockets
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
This removes the smr_advance() calls, but also the clearing of the addr/port. Is it intentional?
Comment Actions
I don't see a point in clearing the addresses either. Speculatively (didn't check!) it should even fix getsockname(2) on a disconnected TCP connection.
Comment Actions
I don't see much point either, but the code has done this since at least 1994. But ok, I think this change is functionally a no-op anyway, since only the UDP code uses these functions...?
| sys/netinet6/in6_pcb.c | ||
|---|---|---|
| 512–513 | This comment applies to the smr_advance() call, so should be moved to make that more clear. Same thing above. | |
| sys/netinet/in_pcb.c | ||
|---|---|---|
| 1436–1442 | +1 | |