Merge lp:~anj/epics-base/cas-intf-addr-list into lp:~epics-core/epics-base/3.15
Proposed by
Andrew Johnson
Status: | Merged |
---|---|
Merged at revision: | 12508 |
Proposed branch: | lp:~anj/epics-base/cas-intf-addr-list |
Merge into: | lp:~epics-core/epics-base/3.15 |
Diff against target: |
273 lines (+73/-57) 5 files modified
documentation/RELEASE_NOTES.html (+7/-0) src/ca/client/CAref.html (+10/-5) src/ioc/rsrv/caservertask.c (+46/-33) src/ioc/rsrv/cast_server.c (+9/-19) src/ioc/rsrv/server.h (+1/-0) |
To merge this branch: | bzr merge lp:~anj/epics-base/cas-intf-addr-list |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
mdavidsaver | Approve | ||
Review via email: mp+209803@code.launchpad.net |
Description of the change
Partially support EPICS_CAS_
This branch parses the environment parameter into a new global ELLIST.
If the resulting list is empty it adds a single entry of INADDR_ANY.
A warning message is printed if the list contains multiple entries.
The TCP and UDP servers then bind to the first entry in the list.
This approach can be extended to handle multiple entries in the future.
Did I miss anything?
To post a comment you must log in.
softIoc with default settings except EPICS_CA_ ADDR_LIST= localhost
> $ netstat -tulpn|grep soft
> tcp 0 0 0.0.0.0:41667 0.0.0.0:* LISTEN 12724/softIoc
> udp 0 0 0.0.0.0:5064 0.0.0.0:* 12724/softIoc
> udp 0 0 0.0.0.0:56316 0.0.0.0:* 12724/softIoc
softIoc with EPICS_CAS_ INTF_ADDR_ LIST=localhost
> tcp 0 0 127.0.0.1:36373 0.0.0.0:* LISTEN 12759/softIoc
> udp 0 0 127.0.0.1:5064 0.0.0.0:* 12759/softIoc
> udp 0 0 0.0.0.0:50936 0.0.0.0:* 12759/softIoc
softIoc with EPICS_CAS_ INTF_ADDR_ LIST=localhost and EPICS_CA_ SERVER_ PORT=5069
> tcp 0 0 127.0.0.1:5069 0.0.0.0:* LISTEN 12843/softIoc
> udp 0 0 127.0.0.1:5069 0.0.0.0:* 12843/softIoc
> udp 0 0 0.0.0.0:50907 0.0.0.0:* 12843/softIoc
softIoc with EPICS_CAS_ INTF_ADDR_ LIST=localhost: 5555
> tcp 0 0 127.0.0.1:5555 0.0.0.0:* LISTEN 12793/softIoc
> udp 0 0 0.0.0.0:54083 0.0.0.0:* 12793/softIoc
> udp 0 0 127.0.0.1:5555 0.0.0.0:* 12793/softIoc
In the final case the UDP port for name requests is 5555 regardless of EPICS_CA_ SERVER_ PORT (set or unset makes no differnce).
Is this intended behavior?