The protocols marked with PR_CONNREQUIRED can never go through pr_connect
after being disconnected. This is a tiny improvement of fdb987bebddf0.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Skipped - Unit
Tests Skipped - Build Status
Buildable 71597 Build 68480: arc lint + arc unit
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 | ||
|---|---|---|
| 515–516 | 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 | ||
|---|---|---|
| 1430–1436 | +1 | |