Skip to content

Add IPv6 (dual-stack) support for DICOM SCP connections in dcmnet module - #128

Closed
SobhitaMercy wants to merge 1 commit into
DCMTK:masterfrom
SobhitaMercy:IPV6SCP
Closed

Add IPv6 (dual-stack) support for DICOM SCP connections in dcmnet module#128
SobhitaMercy wants to merge 1 commit into
DCMTK:masterfrom
SobhitaMercy:IPV6SCP

Conversation

@SobhitaMercy

Copy link
Copy Markdown

This change adds IPv6 and dual-stack support to the DICOM network layer (dcmnet) for SCP (server/acceptor) roles. Prior to this patch, DCMTK’s initializeNetworkTCP() and related logic in dul.cc created and bound sockets using only the IPv4 family (AF_INET). As a result, SCP applications (e.g., storescp, movescu, dcmrecv, custom SCPs) could not accept incoming IPv6 connections even though the SCU side already supported IPv6.

This patch enables SCPs to accept both IPv4 and IPv6 associations transparently.

This change adds IPv6 and dual-stack support to the DICOM network layer (dcmnet) for SCP (server/acceptor) roles.
Prior to this patch, DCMTK’s initializeNetworkTCP() and related logic in dul.cc created and bound sockets using only the IPv4 family (AF_INET).
As a result, SCP applications (e.g., storescp, movescu, dcmrecv, custom SCPs) could not accept incoming IPv6 connections even though the SCU side already supported IPv6.

This patch enables SCPs to accept both IPv4 and IPv6 associations transparently.
@eichelberg

Copy link
Copy Markdown
Member

Thank you very much for your contribution! I have somewhat re-worked the implementation to make the protocol family selectable and today committed the implementation as commit #4215154c9 to our "testing" branch. It should appear in the public repository in a couple of days.

@eichelberg eichelberg closed this Nov 2, 2025
michaelonken pushed a commit that referenced this pull request Nov 4, 2025
Added support for explicitly selecting the IP protocol version (including
IPv6 and a dual-stack IPv4/v6 mode) to all DCMTK "server" applications
that accept incoming DICOM associations.

Thanks to Sobhita Mercy <sobhitamercy@gmail.com> for this contribution.
This closes GitHub pull request #128.
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