Avoid IANA-assigned port numbers
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest4 patches 1 replyIn review
- v24 patches 0 repliesSuperseded
- v1 RFC3 patches 1 replySuperseded
Changes in v3 from the cover letter
- make port assignment more random across serial callers and processes
Patches in v3 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | Add an internal helper for binding to a dynamically-assigned portsrc/ src/ | +142 | 0 replies | |
| 2/4 | Avoid choosing reserved ports in svc_tli_create(3)src/ | +4 | 0 replies | |
| 3/4 | Avoid choosing reserved ports in clnt_tli_create(3)src/ | +3 | 0 replies | |
| 4/4 | Avoid choosing reserved ports in legacy RPC APIssrc/ | +4 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.
Cover letter [PATCH v3 0/4] Avoid IANA-assigned port numbers
Following up on https://bugzilla.linux-nfs.org/show_bug.cgi?id=320 .
Here's a possible way to get libtirpc to avoid IANA-assigned port numbers when a caller requests a dynamically-assigned port. This approach also reduces the number of reserved ports used by long running user space RPC daemons, and can be applied in combination with changing bindresvport(3) to skip port numbers that appear in /etc/services.
Changes since v2:
- make port assignment more random across serial callers and processes
Changes since RFC:
- fixed bugs
- re-organized the patches slightly
- clarified the patch descriptions
---
Chuck Lever (4):
Add an internal helper for binding to a dynamically-assigned port Avoid choosing reserved ports in svc_tli_create(3) Avoid choosing reserved ports in clnt_tli_create(3) Avoid choosing reserved ports in legacy RPC APIs
src/Makefile.am | 5 +- src/binddynport.c | 139 ++++++++++++++++++++++++++++++++++++++++++++++++++++ src/clnt_generic.c | 4 + src/rpc_soc.c | 10 +--- src/svc_generic.c | 12 +--- 5 files changed, 153 insertions(+), 17 deletions(-) create mode 100644 src/binddynport.c
--
Chuck Lever